Check These Out
This modifies the output of ls so that the file size has commas every three digits. It makes room for the commas by destructively eating any characters to the left of the size, which is probably okay since that's just the "group".
Note that I did not write this, I merely cleaned it up and shortened it with extended regular expressions. The original shell script, entitled "sl", came with this description:
: '
: For tired eyes (sigh), do an ls -lF plus whatever other flags you give
: but expand the file size with commas every 3 digits. Really helps me
: distinguish megabytes from hundreds of kbytes...
:
: Corey Satten, corey@cac.washington.edu, 11/8/89
: '
Of course, some may suggest that fancy new "human friendly" options, like "ls -Shrl", have made Corey's script obsolete. They are probably right. Yet, at times, still I find it handy. The new-fangled "human-readable" numbers can be annoying when I have to glance at the letter at the end to figure out what order of magnitude is even being talked about. (There's a big difference between 386M and 386P!). But with this nifty script, the number itself acts like a histogram, a quick visual indicator of "bigness" for tired eyes. :-)
This one uses hex conversion to do the converting and is in shell/sed only (should probably still use the python/perl version).
Same as other command, however uses youtube-dl internal search (thanks to qoxxxx mentioning this)
It does however seem to be a little buggy and youtube-dl crashes sometimes.
##
pyt 'Stairway to heaven - Led Zeppelin'
pyt 'brain damage - Pink Floyd'
No web browser or even X needed. Just a cli and internet connection!
mplayer is pauseable and can skip ahead
This may break if youtube changes their search html.
Split File in 19 MB big parts, putting parts together again via
cat Nameforpartaa Nameforpartab Nameforpartac >> File
We don't use CPU scaling, but just in case you do, there is something interesting to note. If you look at the /proc/cpuinfo, the speed listed is current running speed of the processors and not the real speed of the chip.
say, someone has aliased ls to 'ls --color=always' and you want to temporarily override the alias (it does not override functions)
Create a exact mirror of the local folder "/root/files", on remote server 'remote_server' using SSH command (listening on port 22)
(all files & folders on destination server/folder will be deleted)
To get your effective user:
whoami
Similar to `cpulimit`, although `prlimit` can be found shipped with recent util-linux.
Example: limit CPU consumption to 10% for a math problem which ordinarily takes up 100% CPU:
Before:
$ bc -l
delete multiple files from git index that have already been deleted from disk. this is pretty terrible, I'm looking for a better way.
(much better!! http://www.commandlinefu.com/commands/view/1246/git-remove-files-which-have-been-deleted)