Skip to content

Instantly share code, notes, and snippets.

View dannysmith's full-sized avatar

Danny Smith dannysmith

View GitHub Profile
@dannysmith
dannysmith / gist:9780920
Last active November 9, 2024 13:52
Installing Canvas LMS
# Download the source
git clone https://github.com/instructure/canvas-lms.git canvas
cd canvas
git checkout --track -b stable origin/stable
rbenv install –keep 1.9.3-p545
rbenv local 1.9.3-p545
brew install xmlsec1 postgresql
bundle install
# If you get this error: No source for ruby-1.9.3-p545 provided with debugger-ruby_core_source gem.
@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.
@dannysmith
dannysmith / gist:53d7dfd87360da086df1
Last active August 29, 2015 22:51
AppleScript to Create new Evernote Project Support doc, tag and OmniFocus Project
display dialog "Project Name" default answer ""
set project_name to text returned of result
set project_tag to "/" & project_name
set project_note_title to "PROJECT - " & project_name
set evernote_note_link to missing value
tell application "Evernote"
-- Create Project Tag
on alfred_script(project_name)
set project_tag to "/" & project_name
set project_note_title to "PROJECT - " & project_name
set evernote_note_link to missing value
tell application "Evernote"
-- Create Project Tag
if (not (tag named project_tag exists)) then
display dialog "Project Name" default answer ""
set project_name to text returned of result
set project_tag to "/" & project_name
set project_note_title to "PROJECT - " & project_name
set evernote_note_link to missing value
tell application "Evernote"
-- Create Project Tag