Skip to content

Instantly share code, notes, and snippets.

View unixmonkey's full-sized avatar

David Jones unixmonkey

View GitHub Profile
@unixmonkey
unixmonkey / Cucumber Plain Text Feature.tmLanguage
Created March 10, 2011 20:15
Cucumber Language definition file for TextMate; modified to work with Sublime Text 2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>feature</string>
</array>
<key>firstLineMatch</key>
<string>기능|機能|功能|フィーチャ|خاصية|תכונה|Функціонал|Функционалност|Функционал|Особина|Могућност|Özellik|Właściwość|Tính năng|Savybė|Požiadavka|Požadavek|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Fīča|Funzionalità|Funktionalität|Funkcionalnost|Funkcionalitāte|Funcționalitate|Functionaliteit|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Feature|Egenskap|Egenskab|Crikey|Característica|Arwedd(.*)</string>
@unixmonkey
unixmonkey / Haml.tmLanguage
Created February 8, 2011 17:55
Haml Language definition file for TextMate; modified to work with Sublime Text 2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>haml</string>
<string>sass</string>
</array>
<key>foldingStartMarker</key>
// This javascript file is intened to make redmine_backlogs
// look and behave just a bit more like Pivotal Tracker to
// help ease the transition
$(function(){
// make backlogs less hideous
apply_styles();
// refresh browser every half hour to prevent js memory bloat
" Vim color file
" Converted from Textmate theme Cobalt using Coloration v0.2.3 (http://github.com/sickill/coloration)
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif
# execute by calling
# rake db:import:from_csv
# RAILS_ENV=production db:import:from_csv to use the production environment
require 'ruport'
namespace :db do
namespace :import do
desc 'import stuff into the database'
#!/bin/bash
# ssh-eternal is a poor-man's clone of ssh-forever
# (http://github.com/mattwynne/ssh-forever)
#
# It's purpose is to run this the first time you connect to a
# remote computer with ssh. This script will then copy your public
# key to the remote computers ~/.ssh/authorized_keys file to
# allow subsequent logins to be done without having to remember
# the remote machine's password every time.
desc 'Set RAILS_ENV to cucumber, run cucumber and re-set RAILS ENV'
task :cuke do
# save old env
old_env = RAILS_ENV || ENV['RAILS_ENV'] || 'test'
# set to cucumber env
RAILS_ENV = ENV['RAILS_ENV'] = 'cucumber'
# run cucumber
Rake::Task['cucumber'].invoke
@unixmonkey
unixmonkey / .profile
Created May 19, 2010 22:45
.profile - shortcuts and bash settings
# *****************************************
# .profile
#
# Includes lots of nice funtions
# and aliases to make your command-line
# experience happy and productive
#
# *****************************************
# Me and you; we have history, you know?
@unixmonkey
unixmonkey / build_ubuntu_rails_server.sh
Created May 19, 2010 22:41
build_ubuntu_rails_server.sh
#!/bin/bash
# This bash script is intended to be a solid starting point
# for a Ruby on Rails application server on Ubuntu Linux.
# Edit these settings if you wish
HOSTNAME="railsmachine"
DEPLOYUSER="deploy"
RUBYDIR="/opt/ruby"
RAILSAPPNAME="railsapp"
@unixmonkey
unixmonkey / flying_spaghetti_monster.rb
Last active September 3, 2020 12:37
Example Rails model with all the bells and whistles
# == Schema Information
#
# Table name: flying_spaghetti_monsters
#
# id :integer(4) not null, primary key
# awesomeness :string
# meatballs :boolean
# last_seen :datetime
# model-specific requires