Skip to content

Instantly share code, notes, and snippets.

View dannysmith's full-sized avatar

Danny Smith dannysmith

View GitHub Profile
@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 / 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
@dannysmith
dannysmith / gist:9901098
Last active August 29, 2015 13:57
Set Up Sparta UNIX Server
# Set up ssh password for easy access.
# http://cs.sru.edu/~zhou/linux/howto/sshpasswd.html
# Set up remote Sublime Text
# Install rsub package in ST3
printf "Host *\n RemoteForward 52698 127.0.0.1:52698" >> ~/.ssh/config
ssh -X root@XXXXXXXXX
sudo wget -O /usr/local/bin/subl https://raw.github.com/aurora/rmate/master/rmate; sudo chmod +x /usr/local/bin/subl
#!/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 &
<html>
<head>
<style>
body {
width: 30%;
margin: 3em auto;
position: relative;
height: 180px;
text-align: center;
@dannysmith
dannysmith / gist:4517174fd94346105f9e
Last active August 29, 2015 14:10
Fizz Buzz Problem
100.times{|i|s=nil;s='Fizz'if i%3==0;s="#{s}Buzz"if i%5==0;puts s||i}
@dannysmith
dannysmith / finals_setup.md
Last active August 29, 2015 14:17
Setup for Sparta Finals

Finals Setip

  • Create initial state in Sparta project (locally)
  • Commit to Github (Sparta organisation)
  • Set up Codeship integration with GitHub
  • Set up HipChat to track JIRA
  • Create HipChat Room
  • Integrate HipChat room with CodeShip and Github
  • Create new JIRA Project
  • Create JIRA Scrum Board
- Order of Jobs / Projects. Add Date to projetc for ordering.
- Print Stylesheet
- Redesign top bit of main pages to make better use of space
- Convert
- Add freetext "Projects" section. Use radio buttons to choose witch mode to use.