# Docker & logstash... and (free) multiple online services! Register on the following services & make a gist with your OWN settings, have fun to collect! OPTIONAL: -e LOGSTASH_CONFIG_URL=http://gist..... * [Papertrail](https://papertrailapp.com/?thank=7cfb38) * [Logentries](https://logentries.com/learnmore?code=c4TEpHn52LKeRN9Yb6Aku8XZQxfWUhws) * Make a log dir, like /log on your MAIN host like: `mkdir /log && ln -f /var/log/syslog /log/syslog` * Lets write som logs! * Write directly over tcp: `echo das | nc -v YOURHOST 555` * Lets scrap logs with logstash:`ln -f /var/log.... /log/syslog` * Write debug stuff: `echo blablalba > /log/das` ......
Warning this will allow you to write to the system image on the phone, not recommended. But sometimes useful.
FQPN - Path = Filename
Remove all line from a playlist m3u that not finish with MP3 or mp3 or wma or flac creating a new clean plalist m3u Show Sample Output
(echo "https://example.com/"; echo "https://example.com/"; echo "https://example.com/"; echo "https://example.com/") | parallel -k 'ab -n 10000 -c 15 {}'
Iozone with a file of 2GB, 64KB record size, write/rewrite and read/re-read test, using just one thread. Show Sample Output
Where ^M is entered by ctrl-v-m (v then m). Especially useful on cygwin when checking into a version control system. If you're not using all cygwin tools (e.g. strawberry perl instead of cygwin perl) you'll find yourself dealing with this constantly. -U tells grep to process the file as binary; it needs this to work -I ignores binary files so you won't get false positives -l only prints the filename instead of the offending lines -r recursive
On a machine behind a firewall, it's possible to pass the proxy server address in as a prefix to wget to avoid having to set it as an environment variable first.
This is especially useful to get crazy stuff like space characters copied to your pasteboard correctly. Source: https://github.com/mathiasbynens/dotfiles/blob/master/.functions Show Sample Output
change the time that you would like to have as print interval and just use it to say whatever you want to Show Sample Output
Revision: HEAD
That its my personal key that i dont use, if you want yours, go to imgur and get it, or use that one Show Sample Output
Single file archives nested in subdirectories. After extracting them, you'll have the file (e.g. file.ext) and the archive (e.g. file.ext.nco) side by side. Sometimes you'll only have the archive (if you didn't extract them, or if there was an error during extraction). Only delete the archive if the single file is present in the same directory. Show Sample Output
Force computer "idle" state when lid is closed, regardless of inhibitors (power manager) in place, and runs logind preset action (sleep, suspend...). See http://www.freedesktop.org/software/systemd/man/logind.conf.html
Get the latest and hopefully greatest to test out on the Ubuntu Phone - sometimes broken but always interesting. https://developer.ubuntu.com/en/start/ubuntu-for-devices/image-channels/
Useful if your Docker host starts running out of disk space due to Docker debris. You should start by running "sudo docker ps" in order to check that all required containers are in fact running, and fix any that aren't before proceeding to the main event! "sudo docker rm $(sudo docker ps -q -f status=exited)" removes all containers which are no longer running. "sudo docker rmi $(sudo docker images -q -f dangling=true)" removes all Docker images not required for currently running containers.
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: