Skip to content

Instantly share code, notes, and snippets.

@icantrap
icantrap / tail-remote-log.sh
Created July 2, 2013 14:51
Tail a remote log
ssh user@host tail -f path/to/file
@icantrap
icantrap / tail-multiple-remotes.sh
Created July 2, 2013 14:54
tail multiple remote log files
multitail -l "ssh user@host tail -f path/to/file" -l "ssh user@host tail -f path/to/file"
@icantrap
icantrap / cygwin-mount-point.sh
Created July 8, 2013 18:43
Change the mount point for Cygwin disks
mount --change-cygdrive-prefix /
@icantrap
icantrap / svn-clean.sh
Last active August 29, 2015 13:56
Remove untracked files in subversion repo
svn st | grep '^?' | awk '{print $2}' | xargs rm -rf
@icantrap
icantrap / uninstall-rvm.md
Last active August 29, 2015 14:12
Uninstall rvm

Pretty simple. Run rvm implode.

After that's done, check you .bash_profile (or similar shell startup script) for the line that loads the rvm environment. It looks something like

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

Delete that line.

@icantrap
icantrap / gist:791898752fd90714ca44
Created June 6, 2015 19:22
Enable/Disable Power Chime Effect on Cable Connect (OSX)
# Enable Playing a Power Chime Sound Effect
defaults write com.apple.PowerChime ChimeOnAllHardware -bool true; open /System/Library/CoreServices/PowerChime.app &
# Disable the Chime Sound Effect on Power Cable Connect
defaults write com.apple.PowerChime ChimeOnAllHardware -bool false;killall PowerChime
@icantrap
icantrap / old_msi_bios_update.md
Last active August 10, 2019 13:37
old_msi_bios_update.md

Updating the BIOS on an old MSI motherboard where the download is a single executable.

I had an old motherboard I wanted to upgrade the BIOS on before turning it into the basis for a Plex media server. In particular, it was a MSI H61M-E33 (B3). The latest BIOS download was a ZIP file that contains a single executable file. That won't work for the M-Flash instructions that the website provides. Creating a bootable flash drive with DOS on it did the trick. I would think this method would work for any other BIOS upgrades that contain just the executable.