To cancel a command in the Mutt email client, press control and “g” at the same time. ctrl+g For years, I had been using ctrl+c, which cancels the command but also asks if you want to close mutt – so you had to also type “n” and enter.
Throughout my various backup schemes, my id3 tags get clobbered. I wrote a script to rewrite the tags based on the filename and directory structure of an mp3 collection: ID3 Tag Namer Script As the comment in the script says: /* * Music needs to be in /Users/username/Music/ * in format Artist/Album/00 Title.mp3 * * id3lib required */ You can get id3lib with homebrew: `brew install id3lib`
Coming from Windows and Linux distros, I was used to using a tiling application with my desktop. This is a program that allows you to move windows to fill certain portions of your display with keyboard shortcuts. For example, in Windows 7+, holding down the windows key and pressing left or right will fill the left or right half of the screen with that window. If you’re looking for this on Mac OS, check out Spectacle.
For a while now, I’ve had issues with my Raspberry Pi rebooting by itself. At first I thought I was drawing too much power with the items I had plugged into the USB ports. So I unplugged them both (an external hard drive and a USB WiFi dongle), but the Pi kept rebooting. Finally, I remembered that I had traded the power supply out to use as my phone charger a while back.
Summary: Install and configure minidlna on your Raspberry Pi and make sure it’s on the same network as your Smart TV. Your TV’s media playing application should see the Pi on the network and let you browse and play videos on the Pi. More In-Depth Guide First you need to install minidlna on your Raspberry Pi: sudo apt-get install minidlna minidlna’s configuration file is located at /etc/minidlna. We want to edit this to point to our video files:
If you’re looking to save some space on your Raspberry Pi (mine runs on a 4 GB SD card), run these commands to remove all desktop/gui-related programs: sudo su apt-get install deborphan -y apt-get autoremove --purge \ libx11-.* lxde-.* raspberrypi-artwork \ xkb-data omxplayer penguinspuzzle \ sgml-base xml-core alsa-.* cifs-.* \ samba-.* fonts-.* desktop-* gnome-.* -y apt-get autoremove --purge $(deborphan) apt-get autoremove --purge apt-get autoclean That will remove the desktop programs and any orphan programs left behind.
sudo apt-get update; sudo apt-get upgrade; sudo apt-get install xorg openbox; nano ~/.xinitrc #! /bin/bash exec openbox-session startx sudo apt-get install tint2 conky git network-manager xscreensaver --no-install-recommends
This is a sort of catch-all post that will house random coding/sysadmin things I don’t use enough to memorize. Network Drives Mount a volume over SSH sshfs -p 2345 -o IdentityFile=~/.ssh/id_rsa firstname.lastname@example.org:/remote/path /target/path SQL Compress a mysqldump mysqldump -u user -p -B database_name | gzip > ~/backups/backup1.gz; Video Merging AVI files mencoder -noskip -oac copy -ovc copy `ls 20150203*avi` -o digest.avi add -mc for audio sync Renaming files using regular expressions I had a bunch of backed up files with names like:
I recently ran across this error when moving a VM to a different machine. To fix it: Close VirtualBox Go into the VM folder (usually inside a folder like VirtualBox VMs) and open the text file ending in .vbox. Look for a line like <HardwareVirtEx enabled="true"/> and change it to <HardwareVirtEx enabled="false"/>. That should fix the “VT-x is not available” error.
While writing a backup script to back up my data from Mac OS to a Raspberry Pi, I ran into an issue with relative modification times of the files being transferred: rsync thought every file on the Mac side was always more recently updated than on the Debian side. I was using the -a flag for archive mode, which includes along with a few other things goes with rsync’s default behavior of comparing file size and last modification time.