Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Timeline for cli list by climagic, page 2

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

    Never burn bridges; Modern ones don't ignite easily and wooden ones are usually historic and valuable.

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

    qlmanage -t -s 1000 -o . *.svg # convert SVG to PNG on OSX. Thx @jdorfman

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

    grep -v "^#" playlist.m3u|while read f;do cp --parents "$f" /mnt/sdb1;done # Copy files of m3u playlist including dirs to usb by @v_lenzen

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

    http://ur1.ca/5xvp8 # More cool visuals you can make in your terminal with your cursor.

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

    git log --author=$USER --format="- %B" --since=-7days --reverse |mail -s "What I've done this week" boss@company\.com # By @seidler2547

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

    find ${PWD//archive\/} | wc -l # Two similar paths, except I want to check the # of files in the corresponding dir without archive/ in it.

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

    Don't chastise those that are different, celebrate that we have the software freedoms that allow us to be different in ways we choose.

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

    <alt>+# (press Alt+Shift+#) will also comment out the line without the movements required. Thx @Iulius42 & @amenthes_de

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

    Nothing says "I'm not ready to run this command yet" better than "<Ctrl-a> + # + <enter>". Or maybe just press Ctrl-c if you really hate it.

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

    Or you could use the pidof command.

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

    BTW, the reason for "[f]oobar" is because foobar alone will match its own process in the process table. [f] char class gets around that.

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

    while ps auxw |grep -q "[f]oobar"; do sleep 15; done ; anothercommand # Start anothercommand after process(es) with foobar in it is done.

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

    dd if=randomnumbers.txt bs=1 skip=387680 count=1000 # Print characters from byte number 387680 through 388680 in the file randomnumbers.txt

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

    strings /dev/urandom | tr -c -d '0-9' | dd of=randomnumbers.txt bs=1 count=1M # Write 1MB (1048576) of random numbers to a file.

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

    for grass in field* ; do mow $grass; done | grep -v weeds | while read -r hay; do bale $hay; done # Pipe one loop into another #metacode

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

    Ever sit there, looking at your mangled data and think "What the F did I just press?" Be careful out there.

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

    for dir in */ ; do echo "${dir%/}" ; done # Use the */ trick to get only the directories, then use ${dir%/} to remove the trailing / you get

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

    for i in {1..10} ; do sleep $(( 1800 + $RANDOM%1800 )); cmd ; done # Run cmd 10 times at random intervals from 30-60 minutes apart.

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

    t=$(date +%s);n=0;while [ $n -lt $((86400*365*2)) ];do n=$(($n+86400*7));date -d @$(($t-$n)) +%Y-%m-%d;done # Last 2 years of this weekday

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

    while sleep $(($RANDOM % 10)); do eject -T /dev/cdrom;sleep 0.1; done # Keep a cat entertained for hours. Thanks @c_alan_zoppa

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

Site notice

Identi.ca is converting to pump.io some time this week

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 E14N. It runs the StatusNet microblogging software, version 1.1.0-release, 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