commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Returns the current price of a troy ounce of gold, in USD. Requires the "jq" JSON parser.
Downloads Bluetack's level 1 IP blocklist in .p2p format, suitable for various Bittorrent clients.
Where $1 = author and $2 = mod name
You need to be running a daily build of Minetest (for example from the 'minetestdevs/daily-builds' PPA), or some bleeding edge mods will not work or crash the game.
Update a mod by entering its subdirectory under ~/.minetest/mods and doing
git pull && git submodule update --recursive --remote --init
If AppArmor is installed with all profiles enforced, Chromium may refuse to start, printing a "failed to launch zygote process" error on stderr.
This command switches the Chromium profile from enforce to complain mode, effectively un-sandboxing the browser, but depending on the system setup it may be a smaller deal than a nonfunctional application.
This has been my "sysupgrade" alias since ca. 2006, first used on Debian Sid, then Sabayon, and it still does its duty on Mint nowadays without breaking stuff.
This can help with serious GUI lockups in KDE. It will only restart Plasma + widgets, not your session, so all your programs will stay running.
List images between 800 and 16384 pixels wide that can be displayed sized and trimmed on a widescreen display.
Requires the "wallpaper" utility.
Returns the global weighted BTC rate in EUR. Requires the "jq" JSON parser.
Press ^Z, do what you need to do on the shell, then input % to resurrect the suspended job.
Some shell newbies don't know this very handy file management related command so I decided to include it here.
You need to have the "file" package installed.
This example code is intended to be used as a root permissions check in a script. It makes use of the $EUID (effective user ID) environment variable which is fully su- and sudo-safe.
This generates some powerful but relatively unobtrusive waterfall-like noise. Good if you need to get serious stuff done while your next-door neighbor is throwing a very loud party.
You need the sox package installed.