Skip to content

Instantly share code, notes, and snippets.

@minton
minton / .editorconfig
Last active March 14, 2018 15:44
Decent Setup for VS
; EditorConfig VS add-in required
; http://editorconfig.org/
root = true
[*]
end_of_line = CRLF
[*.{config,cs,xml}]
indent_style = space
@minton
minton / keybase.io
Created October 4, 2017 23:28
Keybase proof
### Keybase proof
I hereby claim:
* I am minton on github.
* I am michaelcminton (https://keybase.io/michaelcminton) on keybase.
* I have a public key ASB_HMZVyzt39Zi3Lqmdedh-HkLEUwbpWIvlFMduViLpuAo
To claim this, I am signing this object:

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@minton
minton / scp_download_example
Created May 21, 2014 21:31
To Download a File from Your Server Using SCP
#Download suitcase.rb from Marsellus's home directory on server named Wallace using Vega's login into current directory as suitcase.rb
scp vega@wallace:/home/marsellus/suitcase.rb .
#Hint - to download folders user -r flag
@minton
minton / scp_examples
Created May 21, 2014 21:10
To Upload a File to Your Server Using SCP
#Upload shrimpz.rb to yum.rb in Curran's home directory on server named Jenny using Forrest's login
scp shrimpz.rb forrest@jenny:/home/curran/yum.rb
#Hint: If you don't want to rename the file simply omit the target filename.
# This upload shrimpz.rb in Curran's home directory
scp shrimpz.rb forrest@jenny:/home/curran/
@minton
minton / .bash_profile
Created October 11, 2011 02:40
Git Enabled Prompt
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
}
function proml {
local BLUE="\[\033[0;34m\]"
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
local LIGHT_GREEN="\[\033[1;32m\]"
@minton
minton / Skylap.rb
Created September 9, 2011 20:57
Skylap - Slaps the Skype Home Window Shut
require 'Win32API'
handle = Win32API.new('user32','FindWindow',['P','P'],'I').call(nil,"Skype Home")
Win32API.new("user32", "SendMessage", ['L'] * 4, 'L').call(handle, 0x0112, 0xF060, 0)