Skip to content

Instantly share code, notes, and snippets.

View priceflex's full-sized avatar

Steven Price priceflex

View GitHub Profile
'#############################################################################
'# Procedure: WUA_SearchDownloadInstall.vbs
'# Author: Microsoft/Scott Vintinner
'# Last Edit: 07/14/2014
'# Purpose: This script will trigger a Windows Update on this computer
'# Notes: Must be run as administrator
'# Source: http://msdn.microsoft.com/en-us/library/aa387102%28VS.85%29.aspx
'#############################################################################
Option Explicit
Dim scriptShell, fs
@priceflex
priceflex / ping_and_growl.rb
Created June 29, 2012 16:48 — forked from wtnabe/ping_and_growl.rb
simple network monitor with ping and growl
#! /usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'logger'
=begin
WHATIS
* ping monitoring once every 30 secs
@priceflex
priceflex / deploy.rb
Created June 23, 2012 18:34 — forked from geekontheway/deploy.rb
capistrano-with-passenger-stand-alone
# -*- encoding : utf-8 -*-
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
require "rvm/capistrano" # Load RVM's capistrano plugin.
set :rvm_ruby_string, '1.9.2' # Or whatever env you want it to run in.
require 'bundler/capistrano'
set :application, "yourapp"
set :use_sudo, false
@priceflex
priceflex / chef_solo_bootstrap.sh
Created May 13, 2012 21:45 — forked from rizwanreza/chef_solo_bootstrap.sh
Bootstrap Chef Solo - EC2
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
make
make install
@priceflex
priceflex / rails31init.md
Created April 15, 2012 07:52 — forked from samnang/rails31init.md
Rails 3.1 with Rspec, Factory Girl, Haml, Simple Form, Database Cleaner, Spork, and Guard

Install Rails 3.1

gem install rails

generate new app, skipping Test::Unit file generation

rails new my_app -T

Set up Gemfile

@priceflex
priceflex / pairprogramming.screenrc
Created November 15, 2011 07:25 — forked from ramontayag/pairprogramming.screenrc
.screenrc setting for remote pairing
multiuser on
acladd user1,user2,user3
vbell off
hardstatus string "%1`"
# change the hardstatus settings to give an window list at the bottom of
# the screen, with the time and date and with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'