Skip to content

Instantly share code, notes, and snippets.

Jesse Dearing jessedearing

Block or report user

Report or block jessedearing

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jessedearing /
Last active Aug 29, 2015
My boot2docker init adding port forwarding for all the cool services I use
#!/usr/bin/env sh
if ! which boot2docker; then
brew install boot2docker
mkdir $HOME/.boot2docker
echo DOCKER_PORT=32000 > $HOME/.boot2docker/profile
if [[ -z $DOCKER_HOST ]]; then
export DOCKER_HOST="tcp://"
View Webdeploy and Powershell.ps1
[Array]$arguments = "-verb:sync", "-source:contentPath=`"$web_staging_directory`"", "-dest:contentPath=`"\\$Server\$share\$appname\$web_project_name`""
$proc = Start-Process $msdeploy -ArgumentList $arguments -NoNewWindow -Wait -PassThru
if($proc.ExitCode -ne 0) {
throw "Failed to deploy"
jessedearing / Visual Studio .gitignore
Created Aug 3, 2010
My .gitignore file for Visual Studio
View Visual Studio .gitignore
#ignore thumbnails created by windows
#Ignore files build by Visual Studio
View update_all_repos.rb
repos = Dir['*']
repos.each do |repo|
if repo
Dir.chdir repo
`git pull`
jessedearing / gist:670071
Created Nov 9, 2010
Changes username for a virtual dir /test
View gist:670071
.\appcmd.exe set config /section:system.applicationHost/sites /`[name=`'Static`'].[path=`'/`'].[path=`'/test`'].userName:user /`[name=`'Static`'].[path=`'/`'].[path=`'/test`'].password:pass
View websocket.html
<!DOCTYPE html>
function onMessage(evt) {
con = document.getElementById("console");
con.innerHTML +=;
con.innerHTML += '<br />';
git tag $(date +%Y-%m-%d_release)
git push origin $(date +%Y-%m-%d_release)
View refactored worst ruby evar.rb do |day|
# time = {:day => day.to_datetime.utc.to_time.to_i}
time = {:day => day.to_datetime.utc}
if > day
if !hours_log[day].nil?
hours_in_sprint += hours_log[day]
burndown_data << time.merge({:hours => hours_in_sprint})
elsif day ==
burndown_data << time.merge({:hours => self.total_task_hours})
You can’t perform that action at this time.