Sunday, August 21, 2016

IMPORTANT NOTICE

IMPORTANT NOTICE: This blog is discontinued in favor of retroubuntu.blogspot.com.

One Liners

System in use: Ubuntu with Unity, 64-bit

FREQUENTLY USED COMMANDS

# Find file with partial name in current folder
find . -iname "*report*"

NUISANCE / IRRITATION CONTROL

# Stop all sorts of notifications
dbus-monitor "interface='org.freedesktop.Notifications'" | xargs -I '{}' pkill notify-osd&

# Tiny font size? No problem.
gsettings set org.gnome.desktop.interface font-name 'Ubuntu 14'

FILE FORMAT AND DOCUMENT CONVERSION

# Create a pdf file from a bunch of png images
convert *.png -gravity South output.pdf

# Convert newline character from dos to unix
dos2unix infile outfie

PROGRAMMING AND COMPILERS

# Show default defines of GCC 
echo | gcc -dM -E -