Public Gists by mig

gist: 230310 Hot capistrano replacement
Gravatar
Mon Nov 09 14:00:25 -0800 2009
1
2
3
task :deploy do
  `rsync -rltvz -e ssh . deploy@hostname:/var/www/apps/my_app`
  `ssh deploy@hostname touch /var/www/apps/my_app/public/restart.txt`
Gravatar
Thu Nov 05 11:42:46 -0800 2009
1
2
3
require 'capistrano/version'
load 'deploy'
 
Gravatar
Fri Sep 25 08:20:54 -0700 2009
1
2
3
(function($) {
  $.fn.defaultvalue = function() {
    // Scope
Gravatar
Fri Sep 25 08:17:56 -0700 2009
1
2
3
# outtolunch_template
 
file 'config/routes.rb', <<-CODE
Gravatar
Sun Sep 20 06:48:36 -0700 2009
1
2
3
# mig_rails_template.rb
 
file 'config/routes.rb', <<-CODE
Gravatar
Tue Jul 21 12:32:19 -0700 2009
1
2
3
document.cookie.split(';').each(function(cookie) {
if(cookie.indexOf('__utmz') != '-1') utmz = cookie;
});
Gravatar
Fri Jun 19 11:25:45 -0700 2009
1
2
3
class TopExitPagesReport
  include Garb::Resource
  include ReportHelper
gist: 130761 extracted cookie auth from ...
Gravatar
Tue Jun 16 09:08:04 -0700 2009
1
2
3
def login_from_cookie
  user = cookies[:auth_token] && User.find_by_remember_token(cookies[:auth_token])
  if user && user.remember_token?
gist: 128909 Installing Erlang on OSX w/...
Gravatar
Fri Jun 12 13:48:21 -0700 2009
1
2
3
curl -O http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz
tar xvzf gettext-0.17.tar.gz
cd gettext-0.17
Gravatar
Thu Feb 05 13:14:40 -0800 2009
1
2
3
(defun refresh-file ()
  (interactive)
  (revert-buffer t t t)
Gravatar
Wed Feb 04 16:55:02 -0800 2009
1
2
3
# Sending Public Key to Remote Servers
function authme {
  ssh $1 'cat >>.ssh/authorized_keys' <~/.ssh/id_rsa.pub
gist: 50008 Mocha stub_path
Gravatar
Wed Jan 21 07:51:03 -0800 2009
1
2
3
module Mocha
  module ObjectMethods
    def stub_path(path)
Gravatar
Sun Jan 18 23:12:21 -0800 2009
1
2
3
#!/bin/sh
export SRC=/Users/mig/src
export CLOJURE=$SRC/clojure
gist: 48222 base styles for my personal...
Gravatar
Fri Jan 16 16:25:25 -0800 2009
1
2
3
body {
  background-color: #FFF;
  font-family: Verdana, Helvetica, Arial;
Gravatar
Mon Jan 12 15:27:03 -0800 2009
1
2
3
// jsCron - by Andrés Nieto
 
var jsCron = {
Gravatar
Mon Jan 12 13:57:34 -0800 2009
1
2
3
;; emacs-rails-kit-mac - some configuration that makes carbon emacs a little nicer
 
;; Some Mac-friendly key counterparts
Gravatar
Fri Jan 09 23:51:35 -0800 2009
1
2
3
div#Header {
  background: #4E9FCF !important;
  color:#fff !important;
Gravatar
Fri Jan 09 12:22:56 -0800 2009
1
2
3
div.notice,
div.warning,
div.error {
gist: 45140 font zooming in emacs
Gravatar
Fri Jan 09 07:46:21 -0800 2009
1
2
3
;; font-size.el -- font zoomer
;; code from Ola Bini: http://ola-bini.blogspot.com/2006/11/emacs-diversion-font-sizes.html
;; replaced fonts with OSX fonts
gist: 39590 build and install osx emacs...
Gravatar
Tue Dec 23 21:05:34 -0800 2008
1
2
3
#!/bin/env ruby
require 'fileutils'