Skip to content

Instantly share code, notes, and snippets.

View kxhitiz's full-sized avatar
:octocat:
{ hello: world }

Kshitiz Gurung kxhitiz

:octocat:
{ hello: world }
View GitHub Profile
@kxhitiz
kxhitiz / git_io
Created November 17, 2011 04:59
git.io implementation failed
HTTP/1.0 417 Expectation failed
Server: squid/2.7.STABLE9
Date: Thu, 17 Nov 2011 04:57:11 GMT
Content-Type: text/html
Content-Length: 1445
X-Squid-Error: ERR_INVALID_REQ 0
X-Cache: MISS from localhost
X-Cache-Lookup: NONE from localhost:3128
Via: 1.0 localhost:3128 (squid/2.7.STABLE9)
Connection: close
# ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁
# Assembly Line: video-transcription
# ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁ ☁
# See docs at http://developers.cloudfactory.com/lines/yaml.html
# See examples at http://developers.cloudfactory.com/lines/examples.html
# Fill in your API key below! (See http://developers.cloudfactory.com/account#settings)
api_key: 5f27b0c87532ff8389fd4955b88b6336c579b529 #0cff92505889e9530baebda027459e1ce073e9dd
title: initial_split_media
description: A sample line generated via CLI to use both standard and custom form for video transcription.
department: Data Processing # Digitization, Web Research, etc
@kxhitiz
kxhitiz / gist:1022286
Created June 13, 2011 03:33
my account and user model overview
Account Model(account.rb):
class Account < ActiveRecord::Base
has_many :projects, :dependent => :destroy
has_many :users, :dependent => :destroy
accepts_nested_attributes_for :users, :reject_if => :all_blank, :allow_destroy => true
validates :subdomain, :presence => true, :uniqueness => true
validates_exclusion_of :subdomain,
PS1="\W $ "
export PATH="/usr/local/bin:/usr/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:$PATH"
export JAVA_HOME='/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home'
export EDITOR='mate -w'
# my aliases
alias ll='ls -la'
alias e='mate . &'
alias ebash='mate ~/.bash_login &'