Grabs video from dv firewire camera, saves it on file and plays it scaled down on ffplayer. Useful to do Google+ Hangouts, and if the internet connection fails, there is still the recorded backup on the computer. "capturefile" is the filename prefix that will be stored on disc.
perhaps you should use CMD[$2] instead of CMD[$4] Show Sample Output
If a session with named the same as your username already exists, then attach to it, otherwise create it
Actually grep can do recursive search based on file extensions.
Webcam live streaming in bare terminal, using Unicode block characters. (Only 'sshcam' is required)
Preview the stream:
sshcam
Start the SSH server with all default settings:
sshcam --server
On the client-side, run:
ssh sshcam@your.server.ip -p 5566
It's a tool of the great csvkit https://csvkit.readthedocs.io/en/1.0.2/scripts/csvjson.html
Alternatively, if your password can contain a richer character set, try using 'uuencode' rather than base64.
dd if=/dev/urandom bs=16 count=1 2>/dev/null | uuencode -
Sample of that: '0:.CF\-@"\`W315VG^4O\.@``'
Show Sample Output
substitute the URL with your private/public XML url from calendar sharing settings substitute the dates YYYY-mm-dd adjust the perl parsing part for your needs Show Sample Output
Unpack and build a WebLogic 9 or 10 domain Show Sample Output
command was too long... this is the complete command: fname=$1; f=$( ls -la $fname ); if [ -n "$f" ]; then fsz=$( echo $f | awk '{ print $5 }' ); if [ "$fsz" -ne "0" ]; then nrrec=$( wc -l $fname | awk '{ print $1 }' ); recsz=$( expr $fsz / $nrrec ); echo "$recsz"; else echo "0"; fi else echo "file $fname does not exist" >&2; fi First the input is stored in var $fname The file is checked for existance using "ls -lart". If the output of "ls -lart" is empty, the error message is given on stderr Otherwise the filelength is taken from the output of "ls -lart" (5th field) With "wc -l" the number of records (or lines) is taken. The record size is filelength devided by the number of records. please note: this method does not take into account any headers, variable length records and only works on ascii files where the records are sperated by 0x0A (or 0x0A/0x0D on MS-DOS/Windows). Show Sample Output
Uses find to find and chmod directories recursively.
You wont hear anything when you run that command.
You must run:
mplayer music.mp3
YOU NEED MPLAYER
sudo apt-get install mplayer
Vote this down.
Helps to fix permissions when a user clobbers them in their home directory or elsewhere. Does not rely on file extension, but uses the `file` command for context.
Using a for loop, rename all files with .MP3 extension to .mp3. Show Sample Output
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: