Chop leading or trailing whitespaces in scripts
pipe it to xargs stdin
pipe it to xargs stdin
Linux, ESXi: # date -d@1234567 -u +%H:%M:%S FreeBSD, OpenBSD # date -r1234567 -u +%H:%M:%S
Do some setup stuff: s3cmd –configure HINTS: When you are asked for the s3 endpoint, use your hosts (canonical) address YOURHOST instead of s3.amazonaws.com When asked for DNS-style bucket+hostname:port don’t use the suggested %(bucket)s.YOURHOST. Instead specify your bucket like YOURBUCKETs.YOURHOST. Mind the ‘s’ appended to YOURBUCKET! Your credentials and settings will be stored in .s3cmd. […]
# sox MYFILE.mp3 -n stat
# ffmpeg -loop 1 -r ntsc -i “IMAGE.jpg” -i “AUDIO.mp3” -acodec aac -vcodec libx264 -preset fast -threads 0 -shortest “VIDEO.mov”
Problem: You have a lot of files with strange encoded names like: Your filesystem, transfered from older samba servers, contains files with windows-1252 encoded characters ibn their names, who won’t be displayed by samba. Solution: Use the magic convmv tool: # convmv –notest -r -f windows-1252 -t utf-8 /path/to/your/data Thank you, Bjoern JACKE!
Problem: You add a room with ejabberdctl. # ejabberdctl create_room testroom conference.xmpp.inbbradio.de localhost You list all rooms with ejabberdctl. # ejabberdctl muc_online_rooms global You delete a room. # ejabberdctl destroy_room testroom conference.xmpp.inbbradio.de You list all rooms with ejabberdctl. # ejabberdctl muc_online_rooms global You restart ejabberd # ejabberdctl restart You list all rooms with ejabberdctl. # […]
For each character in string do # IN=”\\”;printf -v OUT ‘%%%02x’ “‘$IN”; echo $OUT or # echo “this & that” | perl -MURI::Escape -ne ‘chomp;print uri_escape($_),”\n”‘
You must be logged in to post a comment.