Skip to content

Instantly share code, notes, and snippets.

@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.

@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 / 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 / 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 / cygwin-mount-point.sh
Created July 8, 2013 18:43
Change the mount point for Cygwin disks
mount --change-cygdrive-prefix /
@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 / tail-remote-log.sh
Created July 2, 2013 14:51
Tail a remote log
ssh user@host tail -f path/to/file
@icantrap
icantrap / ssh-copy-id.sh
Last active December 19, 2015 06:09
What to do if there's no ssh-copy-id available
cat ~/.ssh/id_rsa.pub | ssh user@host 'cat >> ~/.ssh/authorized_keys'
@icantrap
icantrap / gist:1670394
Created January 24, 2012 14:19
Pin Dock (OS X)
# This pins the Dock to the right/bottom. Other valid values are start and middle.
defaults write com.apple.dock pinning -string "end"
killall Dock
@icantrap
icantrap / index.html
Created December 14, 2011 18:15
Load jquery from Google CDN. Backup to hosted version, if CDN fails
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
if(typeof jQuery=="undefined"){
document.write(unescape("%3Cscript src='/js/jquery-1.7.1.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>