Twopcharts
Favorite Tweets on TwitterYou can check up to the last 200 tweets that are favorited by any unprotected Twitter user.
@
You can also check out this feature on our mobile website
ImageNameLocationTwitter sinceLinks
Philipp HolziPhone: 48.009489,7.7679692009-04-28
@ePex2k91,816 days
Nerd, Geek, Papa von einem Wundervollen Sohn, Ziehpapa von noch einem tollen Jungen :) und bessere hälfte von @Athenuvielle
FollowersFollowingTweetsListsFavorites
20717710,91317793
We found 194 favorite tweets.
Command Line Magic @climagic
convert -size 1920x1080 plasma:fractal background.png # Create an HD color plasma image. Different each time. Uses ImageMagick
10d               
115
52
Command Line Magic @climagic
ack-grep --thpppt # Display an ASCII art cat. There, after 4 years I finally posted an ack command.
16d               
36
25
heute-show Fanblock @heuteshowf
Die awesomen Themen für heute Abend: heuteshow.zdf.de/ZDF/zdfportal/… #heuteshow
20d               
4
4
Epic Meal Time @EpicMealTime
Mini Epic Meal instagram.com/p/mEh3SLvsNB/
21d               
19
15
ゆこたん @yukotan
これみて会社の人と涙流して笑ってた pic.twitter.com/oeZlzo9YmP
21d               
7,221
6,409
Command Line Magic @climagic
"There is a band called 1023MB, but you haven't heard of them because they haven't made it to a gig yet." *Ta dit boom*
23d               
272
606
Robert @kventil
:D pic.twitter.com/71HdIB5DoN
25d               
8
14
Alvaro Videla @old_sound
PHP also has dependent types. What's the type of a zval? It depends #badumtss
37d               
29
55
iFunny.de @iFunnyDE
Mathematische Schönheit pic.twitter.com/zJWhYgMlh3
46d               
32
39
manu @codePrincess
garnelen in kokos curry sauce mit mangos und buntem gemuese :) mahlzeit! pic.twitter.com/rvCuQWcfUc
68d               
4
Deine Mutter @Deine_Mutter_
macht mehr Dreier als BMW und schluckt mehr als ein Siebener.
71d               
2
3
ɱartiɳ ɰebeɾ @web_martin
17" MacBook Pro (aus 2010, mit Beule) anyone?
Gerne auch ohne eBay.
ebay.eu/LuY6UA
72d               
1
1
Command Line Magic @climagic
last reboot # See when your previous reboots were.
77d               
53
39
Command Line Magic @climagic
github.com/harelba/q # q is a neat command that lets you treat column data like an SQL database. By @harelba
104d               
149
96
Command Line Magic @climagic
asciinema.org # Another site that allows you to share your recorded terminal sessions. Check out that ASCII fluid dynamics one.
104d               
90
59
Command Line Magic @climagic
shok.io # shok: An interesting new shell that narrows the gap between command line syntax and scripting. Thx @brimston3
105d               
80
42
Command Line Magic @climagic
ps wu -U someuser # An easier way of selecting the processes owned by someuser. Thanks @mattcen
109d               
87
27
Command Line Magic @climagic
find . -maxdepth 1 -type f -printf '%TY-%Tm\n' | sort | uniq -c # counts files in the current path by modification month. Thx @aSheepie
109d               
70
21
Command Line Magic @climagic
pidstat 2 5 # Show % reports of CPU statistics for every active task in the server at two second intervals.
109d               
104
18
Command Line Magic @climagic
sc # Terminal based spreadsheet program. Has some degree of vi key support.
110d               
74
19
Command Line Magic @climagic
identify -format "%f F:%[EXIF:Flash]\n" *.jpg | egrep " F:(0|16|24|32)$" # Show photo filenames where no flash was used. Req. Imagemagick
110d               
59
32
Command Line Magic @climagic
egrep -o "(Donnie|Frank|Roberta|Grandma)" story.txt |sort|uniq -c|sort -r # Search for names and build a frequency count for each name.
110d               
119
31
Command Line Magic @climagic
df -lP |awk '{sum += $3} END {printf "%d GiB\n", sum/2**20}' # Show the total space used on all your local disk partitions.
110d               
91
30
Command Line Magic @climagic
scrot - command line screen capture utility # Said in snobby tone: We're not a screenshot utility, we're a screen capture utility.
110d               
85
27
Command Line Magic @climagic
youtube.com/watch?v=GaAfhO… # New climagic video - Aliases vs Functions and where to use $1.
111d               
71
19
Command Line Magic @climagic
sudo shutdown -h 60 & mpg123 ambientmusic/*.mp3 # Play music for 60 minutes and then shutdown. Like sleep on alarm clock.
111d               
79
43
Command Line Magic @climagic
climagic.org/coolstuff/curs… # More cool visuals you can make in your terminal with your cursor.
111d               
59
22
Command Line Magic @climagic
eatwhat(){ echo "Tacos,Burgers,Pizza,Sushi,Salad,Pasta" | tr ',' '\n' | sort -R | head -1; } # Simple meal location decider function
111d               
52
46
Command Line Magic @climagic
less +F filename.log # Using +F option or pressing F in less is similar to `tail -f filename.log` but can use less's features. Thx @gazoombo
111d               
124
66
Command Line Magic @climagic
vim 'cl.cam.ac.uk/~mgk25/ucs/exa…' # Nice little demo of the potential of UTF-8 in plain text files.
111d               
76
34
Command Line Magic @climagic
stedolan.github.com/jq/ # jq is a command line processor for JSON data. Thx @brimston3
111d               
118
45
Command Line Magic @climagic
( xsel -b || pbpaste ) | hexdump -c # Give a character by character dump of that suspicious looking URL you just copied from e-mail.
111d               
66
27
Command Line Magic @climagic
bit.ly/OWlBEI # "You can tell a lot about a shell user by looking at their prompt." Thanks @brimston3
112d               
99
44
Command Line Magic @climagic
arping 10.0.8.5 # Like ping, but it uses an ARP request to check, which gets around host firewalls blocking ICMP. Only works on same subnet
112d               
63
28
Command Line Magic @climagic
alias hideprev='history -d $((HISTCMD-2)) && history -d $((HISTCMD-1))' # Hide the previous command you just ran and forgot to use space.
112d               
56
21
Command Line Magic @climagic
You can also use chmod's symbolic syntax (a+x, g+w, o-rwx, etc), but its just as important to know the numeric syntax.
112d               
34
16
Command Line Magic @climagic
Unix permissions3: If there are 4 numbers, the first specifies a special mode 1= sticky bit (think /tmp), 2 = setgid bit, 4 = setuid bit.
112d               
73
34
Command Line Magic @climagic
Unix permissions2: The full mode is 3 or 4 numbers. The last 3 specify the mode number for user, group and other people respectively.
112d               
65
32
Command Line Magic @climagic
Unix permissions1: 1 = execute, 2 = write, 4 = read. Add them up to get the permissions mode. ie. 6 = read/write, but not execute.
112d               
137
57
Command Line Magic @climagic
curl 'web.host/trip[001-105].jpg' -o "image#1.jpg" # Download images named trip001.jpg through trip105.jpg and save with different name.
112d               
130
30
Command Line Magic @climagic
ssh you@friendscomputer 'write friend <<<"You want to have lunch? -- $USER"' # Be sure nobody else sees private communication.
112d               
73
24
Command Line Magic @climagic
curl -Ns http://www.climagic\.org/uxmas/[1-12] # curl supports numeric ranges. This is the full 12 days of unix-mas from last year.
114d               
40
20
Regular Expression @RegexTip
Regex golf: regex.alf.nu via @Dokopuffs
115d               
32
20
Command Line Magic @climagic
bit.ly/gregsbashfaq # Greg's BASH FAQ is a great place for BASH questions and teaches you "the right way" to do things.
116d               
149
31
Command Line Magic @climagic
ionice -c 3 cp vm1.img vm1-clone.img # Copy a file using "ionice -c 3" to give it idle priority to reduce load on the system.
116d               
91
21
Command Line Magic @climagic
fdupes -r dir > dupes.txt # Find file duplicates in 'dir' recursively based on size and mdsum and log to dupes.txt. Thx @sizeof
116d               
134
32
Command Line Magic @climagic
One of the best fonts i had in a terminal: levien.com/type/myfonts/i…
117d               
172
38
Command Line Magic @climagic
exiv2 -k -F rename *.jpg # Use the exiv2 EXIF program to rename your jpg files according to their exif date/time data. Thx @mvuets
117d               
94
29
Command Line Magic @climagic
sleep 15m; notify-send "Go pick up the pizza" # Remember to go get the food. In X, this will send a notification to the screen.
117d               
104
49
Command Line Magic @climagic
qalc "145Gibyte / 1.35(Mibyte/second) to day" # How many days will it take to transfer 145GiB at 1.35MiB/sec? Use qalc! Thx @kkovacs
117d               
168
76
Command Line Magic @climagic
lsof -Pan -i tcp -i udp # show all listening TCP/UDP ports #guestweek
117d               
189
46
Command Line Magic @climagic
pv bigdump.sql.gz | gunzip | mysql # restore a #mysql dump with progressbar and ETA. Thx @SkyGreg
117d               
114
31
Command Line Magic @climagic
diff <(grep = config.txt) <(grep = config.txt-new) # Compare just the assignment lines of two config files that use = for value assignment.
118d               
63
13
Command Line Magic @climagic
ps aux | awk '{if ($8=="Z") { print $2 }}' # On Linux, print out a list of the process IDs that are in the zombie state.
118d               
77
25
Command Line Magic @climagic
exec -a vim nethack # Now if your boss runs ps aux on your system, they will think you're working, not playing a game.
118d               
71
45
Command Line Magic @climagic
HISTIGNORE="clear:bg:fg:cd:cd -:exit:date:w:* --help" # Colon seperated list of exact commands to ignore for storing in history in BASH.
118d               
102
31
Command Line Magic @climagic
dd if=/dev/cdrom of=image.iso ; mkdir CDroot ; mount -o loop image.iso CDroot ; cd CDroot # Mount a CDROM disc from its ISO image file.
118d               
78
18
Command Line Magic @climagic
zcat access_log*.gz |cat - access_log |awk '{print $7}' |sed 's/\?.*//' |sort|uniq -c|sort -nr # Get list of top URLs from all logs combined
118d               
65
19
Command Line Magic @climagic
t matrix # Imagine being able to run tail -f /dev/world (You can get the t command for twitter here: github.com/sferik/t)
118d               
58
12
Command Line Magic @climagic
"Death by command line": 7 results; "Death by windows": 33,900 results. Proof that the command line is safer.
118d               
67
207
Command Line Magic @climagic
github.com/klange/nyancat # Now you can run Nyan Cat at home, or over mosh, or in apple2, or in screen or.... Thx @kevinlange
118d               
49
38
Command Line Magic @climagic
git log --date=short --format="%ci"|awk '{print $1}'|uniq # Which days I've worked... By @d1eg0_garc1a
119d               
84
26
Command Line Magic @climagic
du -h . | grep "^[0-9\.]\+G" # # Find out which of your directories(below the current directory) occupy at least 1GB of space. Thx @xMorgawr
119d               
68
26
Command Line Magic @climagic
bit.ly/SFu5UU # 15 Greatest Open Source Terminal Applications Of 2012. Thanks @_c_o_n_t_a_c_t_
119d               
116
56
Command Line Magic @climagic
fliptable() { echo "(╯°□°)╯ ┻━┻"; } # Flip a table. Example usage: fsck -y /dev/sdb1 || fliptable
119d               
114
122
Command Line Magic @climagic
du -cms .[^.]*/ */ | sort -rn | head # Show the 10 largest directories at top level along with total usage. All in megabytes. Thx @listrophy
119d               
102
18
Command Line Magic @climagic
tail -F firewall.log |while read -r line;do printf "\033[38;5;%dm%s\033[0m\n" $(($RANDOM%255)) "$line";done # Random color per log line.
119d               
79
14
Command Line Magic @climagic
grep -r eval.*base64 source_code_tree # Detect 90% of pwn'd PHP code or thereabouts.
119d               
75
23
Command Line Magic @climagic
tcpdump -c1 -vv src host remote.host |egrep -o "TS val [0-9]+"|awk '{n=$3/100/86400; print n ", " n/2.5 " or " n/10 " days"}' # host uptime
119d               
62
18
Command Line Magic @climagic
ls -la --full-time | tr -s " " | cut -f6 -d " " | sort | uniq -c # Make histogram of dates of files in current directory. Thx @amenthes_de
119d               
89
23
Command Line Magic @climagic
find . -maxdepth 1 -daystart -type f -name '*.jpg' -mtime -$( date +%j ) -exec mv -v {} 2013/ \; # Move current year pics to 2013 directory.
119d               
69
25
Command Line Magic @climagic
echo 'man $(ls /usr/bin | shuf -n 1)| sed -n "/^NAME/ { n;p;q }"' >> ~/.bashrc # Learn a command on each new shell open.
119d               
77
35
Command Line Magic @climagic
du -sh */ | sort -h # Show directory size and sort by human readable amount (MB, GB, etc.). Requires fairly recent version of GNU sort.
119d               
72
28
Command Line Magic @climagic
awk '$9 == "404" {print $7}' access.log |sort|uniq -c|sort -rn| head -n 50 # list top 50 404's in descending order.
119d               
86
22
Command Line Magic @climagic
vim scp://user@server1//etc/httpd/httpd.conf # Edit a file on a remote server using vim from your local *nix desktop
119d               
172
118
Command Line Magic @climagic
sleep 3m; xmessage -nearmouse "Your tea is ready" # Quick popup notification command after 3 minutes. Thx @SnowRaptor
119d               
92
44
Command Line Magic @climagic
yes "$(seq 231 -1 16)" | while read i; do printf "\x1b[48;5;${i}m\n"; sleep .02; done # A rainbow in your shell.
119d               
90
48
Command Line Magic @climagic
wget -q -O- -U Mozilla "http://translate.google\.com/translate_tts?q=hello&tl=en"|mpg123 -q - # Say hello using a nice voice. Thanks @b1n
119d               
136
34
Command Line Magic @climagic
climagic.org/coolstuff/matr… # Create the "Matrix effect" in your terminal window. Try aliasing it to 2c1. ;-)
119d               
104
41
Command Line Magic @climagic
find / -size +100M -exec du -h {} \; # find all files larger than 100MB and display their human readable size. Thx @zeitgeist_y2k
119d               
156
24
Command Line Magic @climagic
bit.ly/vimscripting # Damian Conway of Perl fame wrote this great 5-part series of beginners tutorials on vim scripting.
120d               
135
46
Command Line Magic @climagic
while ! curl -m 10 http://www.example\.com/ ; do echo still down ; sleep 10 ; done ; play alarm.wav # Play alarm.wav once site is back.
120d               
103
29
Command Line Magic @climagic
while :; do echo wub wub wub | espeak --stdout | play - pitch -400 bend .3,-600,.3 ; done # CLI generated dubstep. Thx @Butter_Tweets
120d               
107
58
Command Line Magic @climagic
youtube-dl --max-quality 37 --title --playlist-start=1 --playlist-end=100 --ignore-errors youtube-playlist-url # Download playlist vids
120d               
121
38
Command Line Magic @climagic
longcmd ; [Ctrl-Z] ; bg ; disown ; screen ; reptyr $( pidof longcmd ) # Suspend and reattach a process to screen. Thx @KirilsSolovjovs
120d               
196
82
Command Line Magic @climagic
git log --author=$USER --format="- %B" --since=-7days --reverse |mail -s "What I've done this week" boss@company\.com # By @seidler2547
120d               
143
61
Command Line Magic @climagic
mv Picture{,-of-my-cat}.jpg # I find brace expansion useful for renaming files. This cmd expands to "mv Picture.jpg Picture-of-my-cat.jpg"
120d               
93
38
Command Line Magic @climagic
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.
120d               
206
111
Command Line Magic @climagic
while sleep $(($RANDOM % 10)); do eject -T /dev/cdrom;sleep 0.1; done # Keep a cat entertained for hours. Thanks @c_alan_zoppa
120d               
68
100
Command Line Magic @climagic
"apt-get install ifuse", "ifuse /media/iPad" and "cp -v /media/iPad/DCIM/100APPLE/IMG*MOV /target" # mnt iPad filesystem. Thx @timothyjones
120d               
87
41
Command Line Magic @climagic
exiv2 -k -F rename *.jpg # Use the exiv2 EXIF program to rename your jpg files according to their exif date/time data. Thx @mvuets
120d               
72
26
Command Line Magic @climagic
for t in "Wake up" "The Matrix has you" "Follow the white rabbit" "Knock, knock";do pv -qL10 <<<$'\e[2J'$'\e[32m'$t$'\e[37m';sleep 5;done
120d               
93
58
Command Line Magic @climagic
tail -f "foo.log"|egrep --line-buffered --color=auto 'ERROR|WARN|$' # tail log & highlight errors (if your grep supports --color) Thx @kvegh
120d               
88
22
Command Line Magic @climagic
play -n -c1 synth whitenoise band -n 100 20 band -n 50 20 gain +30 fade h 1 86400 1 # Pretend that you're on a starship.
120d               
130
55
Command Line Magic @climagic
extr_mp3(){ ffmpeg -i $1.flv -f mp3 -ar 44100 -ac 2 -ab 192k -y -acodec copy $1.mp3; } # Extract MP3 from FLV function. Thx @tweetygeekyhbar
120d               
76
14
Command Line Magic @climagic
ab -n 100 -c 10 "http://www.poorwebsite\.com/" # Use the apache benchmarking client to make 100 requests, 10 at a time and get the results.
120d               
85
22
Command Line Magic @climagic
echo 'Hello, my username is imontoya, you kill -9 my $PPID, prepare to vi.'
120d               
91
196
Command Line Magic @climagic
sudo nmap -sS www.example\.com # Do a stealthy like port scan of your website example.com to see what ports are exposed.
120d               
109
21
Command Line Magic @climagic
lsof -i TCP:80 # Show what processes are using port 80 either locally or remotely. Need to be root for unowned processes.
120d               
145
34
Command Line Magic @climagic
ps ax -o state -o ppid | awk '$1=="Z"{print $2}' | xargs kill -9 # Kill all #zombies on the system.
120d               
127
55
Command Line Magic @climagic
askapache.com/linux-unix/bas… # Super prompt! For when PS1="\u@\h:\w\$" just isn't enough.
120d               
89
30
Command Line Magic @climagic
ps aux |tail -n+2 |sort -nrk4 |head -$(($(tput lines)-1)) |cut -c 1-$(tput cols) # Display top RAM using processes.
120d               
142
40
Command Line Magic @climagic
ethtool -p eth0 # Blink eth0's LED so you can find it in the rat's next of server cables. Ctrl-C to stop. Thanks @brimston3
121d               
191
132
Command Line Magic @climagic
netstat -lepunt # Show the TCP and UDP ports being listened on and if you're root, also show the process associated, user, etc.
121d               
151
44
Command Line Magic @climagic
for p in *.jpg; do ffmpeg -loop_input -f image2 -i $p -t 3 -r 4 -s 1080x720 -f avi - >> slides.avi; done # Make slideshow from *.jpg
121d               
133
46
Command Line Magic @climagic
youtube.com/watch?v=n4Ul_A… # CLIMagic video: Epic demo of how I watched the Superbowl over a netcat stream.
121d               
58
21
Command Line Magic @climagic
ssh -R *:8080:localhost:80 remoteserver # Make local webserver available via remoteserver:8080. Req. GatewayPorts yes on sshd
121d               
114
42
Command Line Magic @climagic
sudo nmap -p 22 -open -v -oG - 10.0.0.0/24 | grep 22/open # Scan your local network for SSH servers running on the standard port.
121d               
107
27
Command Line Magic @climagic
youtube.com/watch?v=oBZ1-E… # CLIMAGIC quick video: Using awk or numsum to sum up numbers in df output.
121d               
32
8
Command Line Magic @climagic
nmap --open -p T:22 192.168.1.0/24 # Scan your internal network for hosts listening on TCP port 22 (SSH protocol).
121d               
157
32
Command Line Magic @climagic
function box() { t="$1xxxx";c=${2:-=}; echo ${t//?/$c}; echo "$c $1 $c"; echo ${t//?/$c}; } # Make box around text. By @bartonski
121d               
79
18
Command Line Magic @climagic
grep -L pattern * # List the filenames that don't contain the pattern specified.
122d               
43
19
Command Line Magic @climagic
alias coffee='VALUE=$( cat ~/.cupsocoffee ) ; VALUE=$(( $VALUE + 1 )); echo $VALUE > ~/.cupsocoffee ; echo $VALUE' # Make your own counter
122d               
37
18
Command Line Magic @climagic
du -ma | sort -nr | head -n 20 # List the 20 largest files or folders under the current working directory.
122d               
111
35
Command Line Magic @climagic
while true ; do NUM=$(( $RANDOM % 80 )) ; for i in $( seq 1 $NUM ) ; do echo -n " " ; done ; echo \* ; done # Snow storm in your terminal
122d               
104
80
Command Line Magic @climagic
paste <(cal 2013) <(cal 2014) # Look at the full year calendar for 2013 and 2014 side by side. (Requires term width > 135).
122d               
53
25
Command Line Magic @climagic
ps auxw | grep "[h]ttpd" | wc -l # Count the number of web server processes running.
122d               
33
13
Command Line Magic @climagic
du -sh */ #space usage of directories only (This was the very first CLIMagic post from December 15th, 2009)
122d               
65
17
Rebecca Jane @bexxi
How they really made the periodic table (via @SciencePorn) pic.twitter.com/YlZgsd5sBN
122d               
4
6
Command Line Magic @climagic
rtmpdump -v --live -r rtmp://streamhost/live/ |tee streamcopy.flv |mplayer -xy 2 - # stream directly at 2x size and save a copy.
126d               
69
20
Command Line Magic @climagic
for i in *.tar.gz; do mkdir "${i%.tar.gz}";( cd "${i%.tar.gz}" && tar zxvf ../"$i" );done # Put the output of each tar file into its own dir
126d               
72
26
Command Line Magic @climagic
for u in example/bc{3,8}449{0,8,9}2-ab7a-1{3,8}03; do curl -sI $u|grep -q 404||echo $u; done # Try finding the URL given a fuzzy screenshot.
127d               
30
9
Command Line Magic @climagic
mkdir frames && cd frames && mplayer -ao null -vo png ../video.flv # Convert a video into a series of pictures for analysis.
127d               
100
42
Command Line Magic @climagic
rtmpdump -r rtmp://videoserv.url:1935/app/somevideo.mp4 --flv video.flv # Grab a video from an embeded flash player.
127d               
146
42
Command Line Magic @climagic
sudo tcpdump -s1514 -A -w - | strings | egrep -A5 "(rtmp://|Playing)" # Try to find the rtmp URL for an embeded video on a website.
127d               
171
57
Oona Räisänen @windyoona
Tip of the day: Visualize SSH public key fingerprints using Unicode emoji! pic.twitter.com/NuokPXOdmR
127d               
329
536
Command Line Magic @climagic
look .|perl -pe 's/^(.*)$/\L$& \U$&/g'|tr A-Z 22233344455566677778889999|grep -P "(.)\1\1\1\1\1" # #xkcd phone key command corrected
128d               
30
8
Command Line Magic @climagic
what-if.xkcd.com/75/ # Today's XKCD what if features a great one liner for solving a phone keypad problem. Thx @Ludonaut
128d               
30
52
Command Line Magic @climagic
tail -f logfile | perl -ne 'print localtime . " $_";' # add timestamps to log or program output. perl -n forms a while loop. Thx @tribut
128d               
64
28
Command Line Magic @climagic
ssh -t you@homeaddr 'ssh you@192.168.1.5' # In one command, ssh to an internal host on your private network through a gateway host.
128d               
83
28
Command Line Magic @climagic
echo * | xargs -n1 id > /dev/null # Was in /var/spool/cron and wanted to check for stray (unowned) crontabs. Errors would show me.
128d               
25
13
CSS Humor @CSSHumor
.camouflage { background: inherit; } by @Groxx
129d               
111
217
Command Line Magic @climagic
netstat -nlt |egrep ":25\b" # Check if something is listening on tcp port 25 on the host. The \b means word boundaries and won't match 2525
129d               
85
32
Command Line Magic @climagic
head foo.sh | hexdump -c # See the first 10 lines of foo.sh byte by byte. Allows you to see "invisible characters" messing things up. (\r)
129d               
54
29
Command Line Magic @climagic
github.com/Stantheman/fus… # @MLACitation wrote this fuse script that auto pipes all your command output through lolcat.
132d               
11
14
Command Line Magic @climagic
climagic.org/coolstuff/let-… # Snow in your terminal.
132d               
64
82
Command Line Magic @climagic
while true; do [ $(sleep 1m && users | wc -w) -gt 1 ] && echo warning ; done # Notify when more than 1 unique user logs in. Thx @dlresende
133d               
46
19
Command Line Magic @climagic
fish # THis is an interesting shell that provides color syntax on commands while you are typing them and tab on options provides help.
134d               
48
32
Command Line Magic @climagic
explainshell.com # A few people recently referred me to this. Its neat, but I'm not sure it will properly explain most climagic tips.
135d               
58
39
Derick Rethans @derickr
"A simple GIT branch model" (and why you *always* should rebase on master): gist.github.com/jbenet/ee6c9ac… #linktuesday
135d               
23
18
Command Line Magic @climagic
xdaliclock -countdown "$( date -d 5pm +%s )" # Celebrate clock watching day in style. Thx @SoundSystemSDC
141d               
30
13
Command Line Magic @climagic
rm ./-file-starting-with-dash # another way to handle files starting with a - in CWD is to prefix them with ./
141d               
24
19
Command Line Magic @climagic
find /home/*/www/lib -name "functions.php" -exec grep --color -H -n "STRING" {} \; # Find STRING in functions.php files. Thx @RockfireCo
142d               
31
13
Command Line Magic @climagic
sudoh(){ sudo $@ || play homer-doh.wav; } # The other way people pronounce sue dew
146d               
39
61
Command Line Magic @climagic
du -sh * | sort -h # Sorting du output by human readable size. Your version of sort may not have the -h option yet. Thx @jmishal
146d               
53
27
Command Line Magic @climagic
ssh -f -N -L 24800:localhost:24800 synergyserver # Create an encrypted ssh tunnel for synergy client to use. synergy-foss.org
147d               
73
23
Command Line Magic @climagic
github.com/fcambus/ansiwe… # Get the local weather in a status line in your terminal. Thx @fcambus
148d               
105
43
Command Line Magic @climagic
grep -i button $(find . -type f -name *.css)" search for button, recursive in all minor CSS-Files. Thx @lotterfriends
148d               
31
12
Command Line Magic @climagic
ssh root@192.168.0.1 tcpdump -n -w- 'not \( port 22 and host 192.168.0.1 \)' | etherape -r- # Instant visualization of home router traffic.
148d               
264
74
Command Line Magic @climagic
ls -ld */* # Long list the directories inside the directories of the current directory. But don't list what's inside them.
149d               
59
30
Command Line Magic @climagic
until ping -w1 -c1 8.8.8.8; do sleep 5; done && play alarm.wav # Play an alarm file once your internet connection returns. Thx @glennzw
150d               
234
168
Command Line Magic @climagic
find . -maxdepth 1 -type f \! \( -name 'file1' -o -name 'anotherfile' \) -delete # Delete all files in CWD except file1 and anotherfile.
150d               
34
25
Command Line Magic @climagic
zip -vT downloaded.zip | head # Check out if I should unzip the file in a separate folder. Or use 'unzip -l.zipfile' Thx @kyoneoblood
154d               
29
18
Command Line Magic @climagic
awk '$9 == "404" {print $7}' access.log |sort|uniq -c|sort -rn| head -n 50 # List top 50 404's from your website log in descending order.
154d               
88
33
I Am Devloper @iamdevloper
A programmer puts two glasses on his bedside table before going sleep. One full, in case he gets thirsty, and one empty, in case he doesn’t.
157d               
274
573
Command Line Magic @climagic
ps auxwf # full process output in a tree view so you can see the parent -> child process relationships.
157d               
107
40
Command Line Magic @climagic
curl -s duckduckgo.com/?q=crontab+1+1… | | sed -nr '/^[^<]/p' # Use duckduckgo's cron describe. Thx @Ry4an
161d               
44
15
Command Line Magic @climagic
diff <( egrep -v "(^;|^$)" php.ini-old ) <( egrep -v "(^;|^$)" php.ini ) | less # Compare two php.ini files, stripping comments/blank lines
162d               
67
25
Command Line Magic @climagic
<Enter>~C -D 8888 # In a running SSH session, <Enter>~C opens ssh command prompt. The rest creates new dynamic port forward on port 8888.
178d               
93
46
Command Line Magic @climagic
copy.sh/v24/ # More fun with web browser based virtualization. This time, many os choices or upload your own image. Thx @brimston3
181d               
39
34
Command Line Magic @climagic
rsync --bwlimit=200 src dest # Do an rsync and limit the bandwidth used to about 200KB/sec. Useful on shared or slow links.
182d               
64
32
Command Line Magic @climagic
mkdir RCS ; ci -u .bashrc ; co -l .bashrc # Check a file in/out a local RCS repo. Because sometimes git/svn/hg/etc is overkill for 1 file.
182d               
22
9
Michael Oswald @Queekusme
#Programmers pic.twitter.com/USPJ5E6BzP
182d               
12
16
Command Line Magic @climagic
epochday() { echo $(( $( date +%s ) / 86400 )); } # What is the current unix epoch day. Useful when analyzing /etc/shadow files.
183d               
22
9
Command Line Magic @climagic
sed -i -r "/^\[/{x;p;x}" extensions.conf # Insert a blank line before every line that starts with [ in extensions.conf.
185d               
41
15
Command Line Magic @climagic
sed -i -r '/(^\s*;|^$)/d' sip.conf # Delete every blank line or line that starts with 0 or more whitespace and a ; character from sip.conf
185d               
29
20
Command Line Magic @climagic
[Ctrl-Z] # Suspend the current process you're running the foreground so you can do something else, then run fg to get it back.
197d               
22
18
Command Line Magic @climagic
[Alt+50+LeftArrow] # Move your cursor left 50 characters on the command line. Alt+N+Keystroke repeats that keystroke N times.
197d               
59
32
Command Line Magic @climagic
find . -xdev -ls | sort -n -k 7 | tail -5 # Quickly find the largest 5 files in the CWD tree without crossing filesystem boundaries.
198d               
43
19
Command Line Magic @climagic
rm -frv /somedir | tee remove.log # When you want to see the output AND save it, try "| tee" of just a ">" redirect.
198d               
18
12
Command Line Magic @climagic
for i in */.git ; do ( cd "${i/\/.*/}" ; git pull ) ; done # Pull updates from all git repos below your CWD. Thanks @SierraX369
206d               
64
21
Command Line Magic @climagic
for m in {0..200}; do date -d "2012-07-13 + $m months";done|grep ^Fri # Show all Friday 13ths happening in the next 200 months. GNU date req
216d               
31
49
Command Line Magic @climagic
ls -lH /usr/bin/telnet # Instead of following the trail of symlinks yourself to see the real file, you can use -H. H = the only letter left
224d               
11
14
Command Line Magic @climagic
strace -s 200 -e trace=network -f ping -c1 4.2.2.2 # Show the network calls of the ping command. Thx @roidelapluie
248d               
103
40
Command Line Magic @climagic
xvfb-run --server-args="-screen 0, 1024x768x24" cutycapt --url=http://url --out=image.png # site shot from command line. By @gustavorobertux
252d               
78
37
Command Line Magic @climagic
sed '/^\#/d' in_file > out_file # get rid of lines starting with # (aka comments) #guestweek
256d               
58
25
Command Line Magic @climagic
wget -r -l 1 -A pdf ftp://ftpserver/pub/documents/ # download all .pdf files from an ftp server #guestweek
256d               
111
42
Command Line Magic @climagic
find . -name '*.pdf' -exec pdftotext {} - \; | grep "search term" # grep multiple pdf files #guestweek
256d               
98
38
Command Line Magic @climagic
rename 's/ /_/g' * # rename all files under current dir by replacing spaces with underscores #guestweek
256d               
168
70
Cut the Rope @Cut_The_Rope
Om Nom is hanging out with his stunt doubles at the office… catching candy is dangerous work, you… instagram.com/p/cenCi5oroB/
259d               
1
Command Line Magic @climagic
nl -ba large.txt | less -S # Number the lines of a large file to see what line ranges you might want to remove using sed.
268d               
41
11
Command Line Magic @climagic
sqlite3 places.sqlite "SELECT url FROM moz_places WHERE length(url)<20" # Use SQL to find URLs in your Firefox history less than 20 chars.
274d               
41
19
The Lazy Dog @TheLazyDog_
How to ban idiots from the internet. .. pic.twitter.com/ztdCvPoRc0
274d               
373
1,096
Command Line Magic @climagic
zbarcam --prescale=640x480 |while read c;do [ "${c%%:*}" = "EAN-13" ] && xdg-open http://en.openfoodfacts\.org/product/"$c";done # Barcodes
275d               
39
4
Command Line Magic @climagic
until ping -c 1 -w 1 10.1.2.3 > /dev/null ; do sleep 1 ; done ; play alert.wav # Play audible sound when host comes back up.
276d               
172
87
Command Line Magic @climagic
/usr/lib/xscreensaver/skyrocket # More fireworks! GUI output, but many CLI options. You need the rss-glx screensavers package.
287d               
16
12
Command Line Magic @climagic
ionice -c3 nice tar pjcvf saved{.tar.bz2,} |pv -l -s $(find saved -type f|wc -l) >/dev/null # tar up dir 'saved' with line progress & ionice
288d               
40
10
Command Line Magic @climagic
find . -name '*.txt' \( -user apache -o \( \! -user apache -a -perm /044 \) \) # Find .txt files readable by apache user.
289d               
58
20
Command Line Magic @climagic
Chuck Norris as a shell user twitpic.com/czp56c
293d               
98
419
Command Line Magic @climagic
[Ctrl--] # Manual lists this as Ctrl-_ but Ctrl-- usually works too. Incremental undo of command line edits.
293d               
20
5
Command Line Magic @climagic
[Meta-.] # Insert the last argument from the previous line in the command history into the current line. Different from !$.
293d               
24
8
Command Line Magic @climagic
find -maxdepth 1 |perl -e 'print sort {length $a <=> length $b} <>' # Order the filenames in CWD by filename length. Thx @seidler2547
294d               
15
2
Command Line Magic @climagic
elinks -dump --no-numbering --no-references 'google.com/search?q=snoog…' | sed -n '/[0-9]\./,+2p' # Google search results
297d               
56
17
Command Line Magic @climagic
find . \! -uid $( id -u pureohms ) # Find any files/directories below the current one that aren't user owned by user pureohms.
301d               
40
12
For remarks, suggestions and complaints, you can contact us at: info@twopcharts.com. On Twitter you can find us here: @gl_twop_1000