Skip to content

Instantly share code, notes, and snippets.

View dannysmith's full-sized avatar

Danny Smith dannysmith

View GitHub Profile
SHELL = /bin/sh
# V=0 quiet, V=1 verbose. other values don't work.
V = 0
Q1 = $(V:1=)
Q = $(Q1:0=@)
n=$(NULLCMD)
ECHO1 = $(V:1=@$n)
ECHO = $(ECHO1:0=@echo)
C:\>gem install json --platform=ruby
Temporarily enhancing PATH to include DevKit for 2...
Building native extensions. This could take a while...
The system cannot find the path specified.
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
C:/Ruby200/bin/ruby.exe extconf.rb
creating Makefile
#!/bin/bash
# CentOS rbenv system wide installation script
# Forked from https://gist.github.com/1237417
# Installs rbenv system wide on CentOS 5/6, also allows single user installs.
#Check ruby is installed.
ruby -v
which ruby
@dannysmith
dannysmith / gist:8333358
Last active January 2, 2016 16:59
Install remote X and VNCstuff on test agent.
# See here: http://rbgeek.wordpress.com/2012/06/26/how-to-install-vnc-server-on-centos-6/
# Check that we're on Centos 6
cat /etc/redhat-release
# Instal stuff we need
yum groupinstall Desktop
yum install xorg-x11-xauth xterm
yum install tigervnc-server
yum install xorg-x11-fonts-Type1
@dannysmith
dannysmith / install_instructions.txt
Last active April 16, 2016 08:22
Setup for New Mac
Basic Setup of Mac
------------------
Software Update & App Store Update
Set Up Accounts (Bader, CTS, dasmith, bac, iCloud, manyhats)
Set Up Mail (signatures, settings)
Set up iCal
Set up Safari Extensions (Readability, AdBlock, 1Password, Add to Amazon, Ultimate Status Bar, Buffer)
Set up iTunes
Set up FaceTime
Set Desktop Backgrounds & Finder Options
@dannysmith
dannysmith / testagent_setup.sh
Last active August 29, 2015 13:56
CentOS Ruby TestAgent Setup
#!/bin/bash
# CentOS rbenv system wide installation script
# Forked from https://gist.github.com/1237417
# Check that we're on Centos 6 and the x86_64 architecture
cat /etc/redhat-release
uname -m
# Installs rbenv system wide on CentOS 5/6, also allows single user installs.
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@dannysmith
dannysmith / gist:9207769
Created February 25, 2014 12:16
Sublime Text 3: Cucumber Step Finder Plugin
Install the Cucumber Step Finder plugin
This adds Cmd + Y for finding step defs by name and Cmd + Ctrl + M for match and jumping to the step you've currently got the cursor on.
Now add the ability to ctrl + click on a method (in a step dfinition file, for instance) and jump to the method definition:
From here: http://stackoverflow.com/questions/16235706/sublime-3-set-key-map-for-function-goto-definition
Windows - create Default (Windows).sublime-mousemap in %appdata%\Sublime Text 3\Packages\User
Linux - create Default (Linux).sublime-mousemap in ~/.config/sublime-text-3/Packages/User
@dannysmith
dannysmith / osx_setup.sh
Last active September 3, 2025 19:21
Sensible defaults for New Mac
#!/usr/bin/env bash
# ~/.osx — http://mths.be/osx
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
@dannysmith
dannysmith / gist:9380590
Last active August 29, 2015 13:57
Shit still to do with new mac
Set Up Dropbox
--------------
Re-jig dropbox contents to make more sense
Windows
-------
Install Bootcamp and Set Up
Boot into Windows and install Windows
Install Chrome, Firefox, Skype, Sublime Text and Sharepoint Designer
Install vmWare Fusion