Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Timeline for puzzles list by climagic

Command Line Magic climagic puzzles Friday, 30-Nov-01 00:00:00 UTC
  • Subscribe
Listed 1 Subscribers 0
  1. Command Line Magic Command Line Magic kaerast

    for i in 0 1 2; do mdadm --remove /dev/md$i /dev/sdb$(($i+1)); done # A nice one-liner @kaerast used to remove a failed disk from raid.

    about 2 days ago from Net::Twitter
  2. Command Line Magic Command Line Magic

    cowsay 'Happy Birthday!' | toilet -f term --gay # Cow says Happy Birthday! in rainbow colors.

    about 2 days ago from Net::Twitter
  3. Command Line Magic Command Line Magic

    exec -a vim nethack # Now if your boss runs ps aux on your system, they will think you're working, not playing a game.

    about 3 days ago from Net::Twitter
  4. Command Line Magic Command Line Magic

    Of course, 3133700000 will be the mother of all epoch dates. April 20th, 20[69] and Unix will be 99.9 years old too. Quite a convergence.

    about 3 days ago from Net::Twitter
  5. Command Line Magic Command Line Magic

    date +%s # Speaking of date, today is the last day you'll see the 1337 prefix in the Unix epoch. Next time will be in 2393. #hackerhalfmonth

    about 3 days ago from Net::Twitter
  6. Command Line Magic Command Line Magic

    date -d 2011-11-21 +%A # What day of the week was November 21st, 2011 on? This requires GNU date for the -d option.

    about 3 days ago from Net::Twitter
  7. Command Line Magic Command Line Magic

    acronym(){ elinks -no-numbering -dump "http://ur1.ca/5zdvm" |sed -r '/(\*{4,}|This definition)/!d'; } # acronym TIMTOWTDI

    about 3 days ago from Net::Twitter
  8. Command Line Magic Command Line Magic Billy

    BTW, next Tuesday, May 29th is CLI Day: http://ur1.ca/9dh2j Thanks @stormdragon2976

    about 3 days ago from Net::Twitter
  9. Command Line Magic Command Line Magic Billy

    zipcode="90210";elinks -dump "http://ur1.ca/9dgn5{zipcode}" | grep -A 4 "Current " # Current weather. Thx @stormdragon2976

    about 3 days ago from Net::Twitter
  10. Command Line Magic Command Line Magic

    You can also use "pgrep myscript.sh" to do the ps and grep in one step and avoid greping the grep. I like playing with nunchucks though.

    about 3 days ago from Net::Twitter
  11. Command Line Magic Command Line Magic

    Useless Use of Nunchucks - Twirling nunchucks around your body is a useless maneuver and you might hit yourself in the face.

    about 3 days ago from Net::Twitter
  12. Command Line Magic Command Line Magic

    The reason for the square brackets around the m in myscript.sh is because otherwise it would match the grep process itself.

    about 3 days ago from Net::Twitter in context
  13. Command Line Magic Command Line Magic

    while ( ps auxw | grep "[m]yscript.sh" ); do sleep 1; done; cp -va /src /dst # Wait until myscript.sh is done, but copying /src to /dst

    about 3 days ago from Net::Twitter
  14. Command Line Magic Command Line Magic

    sleep 1h 20m ; mplayer HEY.mp3 # Quick and dirty alarm to audibly remind yourself that in an hour and 20 minutes, do something important.

    about 4 days ago from Net::Twitter
  15. Command Line Magic Command Line Magic

    http://ur1.ca/86y16 # CLIMAGIC quick video: Using comments in the interactive shell.

    about 4 days ago from Net::Twitter
  16. Command Line Magic Command Line Magic

    while true;do f=$(grep -r -l "Confirmation No:" . |head -n1);if [[ -e $f ]]; ls -l $file ;break;fi;sleep 1;done # Wait for file in dir.

    about 4 days ago from Net::Twitter in context
  17. Command Line Magic Command Line Magic

    Linux: I haven't rebooted for a month. Windows: I haven't been rooted for a month. #proudusers

    about 5 days ago from Net::Twitter
  18. Command Line Magic Command Line Magic

    find / -type f -perm /6000 -ls # See all the files/programs with suid or sgid bits set.

    about 5 days ago from Net::Twitter
  19. Command Line Magic Command Line Magic

    "f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng." -fortune

    about 5 days ago from Net::Twitter in context
  20. Command Line Magic Command Line Magic

    http://bit.ly/JCWU9J # Linux In The Shell also did a great post on Unix permissions just yesterday. Good primer. Thx @codepoet_ch

    about 5 days ago from Net::Twitter
  • Before
  • List
  • Listed
  • Subscribers

Site notice

  • API
  • Status

Listed

  • Command Line Magic climagic

Subscribers

    (None)

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • TOS
    • Privacy
    • Source
    • Version
    • Contact

    Identi.ca is a microblogging service brought to you by Status.net. It runs the StatusNet microblogging software, version 1.1.0-alpha1, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All Identi.ca content and data are available under the Creative Commons Attribution 3.0 license.

    Switch to mobile site layout.

    Built in Montreal