Skip to content

Instantly share code, notes, and snippets.

@shadygraves
shadygraves / deploy.rb
Last active August 29, 2015 14:13 — forked from jwo/deploy.rb
set :application, "yyyyyyyyyyy"
set :repository, "here-be-your-githubs"
set :scm, :git
set :branch, "master"
set :user, "xxxxxxxx"
set :scm_verbose, true
default_run_options[:pty] = true
set :deploy_via, :remote_cache
ssh_options[:forward_agent] = true
@shadygraves
shadygraves / Rails CMS alternatives
Created August 28, 2012 22:18
List of Rails CMS software
Rails CMS alternatives
======================
Note: project activity was checked on 11/26/09 for most of these projects, and the "last update" field has not been kept up to date since then.
Active projects:
---------------
adva-cms
repo: http://github.com/svenfuchs/adva_cms/
site: http://adva-cms.org/
Last update: 11/24/09
@shadygraves
shadygraves / xcode-git-version.sh
Created August 28, 2012 00:06 — forked from jpwatts/xcode-git-version.sh
This Xcode 4 build phase script automatically sets the version and short version string of an application bundle based on information from the containing Git repository.
#!/bin/bash
# This script automatically sets the version and short version string of
# an Xcode project from the Git repository containing the project.
#
# To use this script in Xcode 4, add the contents to a "Run Script" build
# phase for your application target.
set -o errexit
set -o nounset
@shadygraves
shadygraves / gist:3010044
Created June 28, 2012 09:02 — forked from mtabini/gist:1178403
PNG representation of NSImage
//
// GRAppDelegate.m
// Testme
//
// Created by Marco Tabini on 11-08-29.
// Copyright (c) 2011 Marco Tabini. All rights reserved.
//
#import "GRAppDelegate.h"
@shadygraves
shadygraves / cap_notify.rb
Created June 9, 2012 06:34 — forked from johnthethird/cap_notify.rb
Capistrano deployment email notifier for Rails 3
=begin
Capistrano deployment email notifier for Rails 3
Do you need to send email notifications after application deployments?
Christopher Sexton developed a Simple Capistrano email notifier for rails. You can find details at http://www.codeography.com/2010/03/24/simple-capistrano-email-notifier-for-rails.html.
Here is Rails 3 port of the notifier.
The notifier sends an email after application deployment has been completed.
@shadygraves
shadygraves / Gemfile
Created May 30, 2012 04:53 — forked from seanbehan/Gemfile
Capistrano Multi Stage Deploy
gem 'capistrano', '~> 2.11.2'
gem 'capistrano-ext', '~> 1.2.1'
gem 'capistrano_colors', '~> 0.5.5'
@shadygraves
shadygraves / safari.css
Created March 2, 2012 23:26
Safari Highlight CSS

Effect Demo

Highlight

@shadygraves
shadygraves / safari_css
Created March 2, 2012 23:18
Safari Highlight CSS
.highlight {
background: linear-gradient(top, #F6E900 0%,#F0CC00 100%);
color: black;
border-radius: 5px;
padding: 2px 4px;
border: 1px solid #F2D700;
box-shadow: 0px 1px 1px #303030;
text-shadow: 0px 1px 1px #F1D100;
background: #F6E900;
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2Y2ZTkwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmMGNjMDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
!!! Strict
%html{:xmlns => 'http://www.w3.org/1999/xhtml'}
%head
%meta{'http-equip' => 'Content-Type', :content => 'text/html; charset=utf-8'}
%meta{:name => 'viewport', :content => 'widt=device-width, initial-scale=1.0'}
%title= subject
:css
/* Based on The MailChimp Reset INLINE: Yes. */
/* Client-specific Styles */
#outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */
@shadygraves
shadygraves / gist:1552561
Created January 2, 2012 23:11 — forked from Viper007Bond/gist:1390918
My Sublime Text 2 Configuration Files
// File Settings - User
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"font_face": "Consolas", // Windows, you'll likely want default or something else
"font_size": 10,
//"spell_check": true,