Skip to content

Instantly share code, notes, and snippets.

View jessedearing's full-sized avatar

Jesse Dearing jessedearing

View GitHub Profile
[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
jessedearing / Visual Studio .gitignore
Created August 3, 2010 03:43
My .gitignore file for Visual Studio
#ignore thumbnails created by windows
Thumbs.db
#Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
#!/usr/bin/ruby
repos = Dir['*']
repos.each do |repo|
if File.directory? repo
Dir.chdir repo
begin
`git pull`
rescue
41133 - 41224
FT: Portal website
@jessedearing
jessedearing / gist:670071
Created November 9, 2010 23:49
Changes username for a virtual dir /test
.\appcmd.exe set config /section:system.applicationHost/sites /`[name=`'Static`'].[path=`'/`'].[path=`'/test`'].userName:user /`[name=`'Static`'].[path=`'/`'].[path=`'/test`'].password:pass
<!DOCTYPE html>
<html>
<head>
<title>Websockets!</title>
<script>
function onMessage(evt) {
con = document.getElementById("console");
con.innerHTML += evt.data;
con.innerHTML += '<br />';
git tag $(date +%Y-%m-%d_release)
git push origin $(date +%Y-%m-%d_release)
self.days_with_weekends.map do |day|
# time = {:day => day.to_datetime.utc.to_time.to_i}
time = {:day => day.to_datetime.utc}
if Date.today > day
if !hours_log[day].nil?
hours_in_sprint += hours_log[day]
end
burndown_data << time.merge({:hours => hours_in_sprint})
elsif day == Date.today
burndown_data << time.merge({:hours => self.total_task_hours})
module Scopes
attr_writer :church_id
# evaluates to
# instance_eval do
# def church_id
# @church_id
# end
# def church_id=(value)
# @church_id = value
# end