Timeline for comedy list by climagic
-
awk '$1>250 { x++ } END {print x}' data # Print the number of lines in the file data where the first column is a number greater than 250.
-
RT @jamesmslocum: Draw from the commmand line convert -size 100x100 xc:white -fill black -draw 'circle 50,50 60,60' circle.png
-
li(){ space=$(printf "%${1:-2}s");sed "s/^/$space/"; } # This will turn it into a function you can pipe too. Example: ls -1 | li 5
-
ls -l | sed 's/^/ /' # Indent every line by two characters on a console display where the far left side is hard to see.
-
http://bit.ly/17SUs09 # Inspiring story about a child from a broken home who through perseverance became a leader in Comp. Sci.
-
Apple: Do --everything different.
-
for i in $(seq 2012 -1 1950);do [ $( diff <(ncal -h 6 2013|tail -n+2) <(ncal -h 6 $i|tail -n+2) |wc -l ) == 0 ] && echo $i;done # June match
-
http://bit.ly/12LhDIC # What a mom's keyboard might look like. Then again, some moms know 68K Assembly.
-
Famous user quotes: I didn't change anything. I swear!
-
http://bit.ly/RnlsNV # Find yourself typing gti instead of git, this will "train" you just like sl does.
-
sudo apt-get install sl # This will "train" you. Thanks @Scooter789
-
find . -printf "%TY\n" | sort -n | uniq -c # Show a file count by year file last modified starting from the current directory descending.
-
sudo tcpdump -n -w- | play --buffer 10000 -r 8000 -b 8 -c 1 -e signed-integer -t raw - band 2k # *Turn volume down* and listen to network.
-
ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq ./out.mpg # Using ffmpeg to Record screen buffer content as video. Thanks @_gowdru
-
du -hxd1 . # Show space usage of one level deep subdirectories of CWD without descending into other filesystems.
-
detach_smallest(){ tmux detach -t$(tmux list-clients |awk -F'[:[x ]' 'BEGIN {l=99999}{s=$5*$6;if (s<l){l=s;t=$1}} END{print t}'); } #tmux
-
ssh you@friendscomputer 'write friend <<<"You want to have lunch? -- $USER"' # Be sure nobody else sees private communication.
-
while ! pgrep -f trigger ; do sleep 1 ; done ; fg # Wait for trigger to show up in process list and then fg the current backgrounded job.
-
sha1sum access_log <(zcat access_log.gz) # See if access_log and the decompressed form of access_log.gz are actually the same.
-
find . -maxdepth 1 -type d -empty # Find directories directly below the current one that are empty. BTW, omitting '.' is a GNU only thing.