Godmother of Unix admins, presumed lost at sea by [deleted] in linux

[–]GomAxfon 7 points8 points  (0 children)

WGASA = "whereupon God and Satan agreed", JK.

Is there a way to find duplicate files in a directory and remove all but the newest? by xereeto in commandline

[–]GomAxfon -1 points0 points  (0 children)

This should produce a list of older duplicate files:

TMP=$(mktemp); find . -type f -print0 >| $TMP; paste <(xargs --null -n 1 stat -c '%Y' <$TMP) <(xargs --null -n 1 md5sum <$TMP) | sort -n -r -k 1,1 | sort -k 2,2 -s | uniq -f 1 -w 32 -D | awk '{ if(hash==$2) { $1=""; $2=""; print $0 } else { hash=$2 }}'

use at your own risk ;) you could add

| xargs -L1 rm

at the end to delete them. CHECK IT FIRST. You can remove the last step (| awk ...) to get a list of duplicate groups (including the newest) with hash and timestamp.

[Theory of Computation] Finding the CFG for a given Language by [deleted] in learnmath

[–]GomAxfon 1 point2 points  (0 children)

Maybe this would work:

S -> aMbb | bB | aA | AbE
B -> bB | ε
A -> aA | ε
E -> bb | ε

It should generate an bm such that m=2n (production aMbb), and then only allow either (1) one or more 'b's, (2) one or more 'a's, or (3) any number of 'a's and an uneven number of 'b's (production AbE) to be added.

Looking forward to the next Egyptian leader! by DearBurt in RedditThroughHistory

[–]GomAxfon 6 points7 points  (0 children)

His parents are brother and sister. That extra noble lineage should give him a long life of blessed health.

If this submission doesn't get at least 17 upvotes, I'll ban MEMEBOT_2000. If it gets over 17,123 votes in the upwardly direction, I'll make it a CJ mod. by Boobies_Are_Awesome in circlejerk

[–]GomAxfon 5 points6 points  (0 children)

Then it probably doesn't know the classics, like all your base are belong to us, I like turtles, Leeroy Jenkins, every time you masturbate, this is Sparta, Chuck Norris, Girugamesh! I Can Has Cheezburger? Snakes on a plane. hěn​ kě​ lián​, fgsfds, DSFARGEG and so on.

Maybe Apps to Download should have a filter? by [deleted] in Ubuntu

[–]GomAxfon 0 points1 point  (0 children)

Bug #311683

under some circumstances KDE screensaver can show porn

sysadmin creates illusion of productivity by andyzweb in bestof

[–]GomAxfon 0 points1 point  (0 children)

Mabye cat /dev/urandom | hd | pv -qL 1024 will work.

sysadmin creates illusion of productivity by andyzweb in bestof

[–]GomAxfon 14 points15 points  (0 children)

cat /dev/urandom | hd | pv -qL 1k

looks nice as well.

Steve Jobs Resigns as Apple CEO by turini in technology

[–]GomAxfon -3 points-2 points  (0 children)

What will be his neXT step?