Skip to content

Instantly share code, notes, and snippets.

View tispratik's full-sized avatar

Pratik Khadloya tispratik

View GitHub Profile
#!/bin/bash
mkdir /tmp/curl-ca-bundle
cd /tmp/curl-ca-bundle
wget http://curl.haxx.se/download/curl-7.22.0.tar.bz2
tar xzf curl-7.22.0.tar.bz2
cd curl-7.22.0/lib/
./mk-ca-bundle.pl
if [ ! -d /usr/share/curl/ ]; then
sudo mkdir -p /usr/share/curl/
else
@tispratik
tispratik / .jshintrc
Created January 31, 2013 20:54 — forked from haschek/.jshintrc
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
#!/bin/sh
# A pre-commit hook for git to lint JavaScript files with jshint
# @see https://github.com/jshint/jshint/
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
defmodule Myapp.Domain do
import Plug.Conn
import Ecto.Model
@doc false
def init(opts), do: opts
@doc false
def call(conn, _opts) do
IO.inspect conn
@tispratik
tispratik / Gemfile
Created June 13, 2012 21:16
Gemfile
source 'http://rubygems.org'
gem 'rails', '~> 3.1.0'
gem 'mongrel', '>=1.2.0.pre2', :group => :development
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2'
@tispratik
tispratik / Gemfile.lock
Created June 13, 2012 21:17
Gemfile.lock
GIT
remote: git://github.com/marktorrance/awesome_nested_set.git
revision: 79e7f4839f9c47ea4181067a459286964858f74f
specs:
awesome_nested_set (2.1.2)
activerecord (>= 3.0.0)
GIT
remote: git://github.com/mbleigh/ruby-openid.git
revision: 4b6fdd152edbc9d1f617056879eb03bd82b78eb4
@tispratik
tispratik / dabblet.css
Created February 6, 2012 08:29 — forked from chriscoyier/dabblet.css
Based on email I got from andrea ricci
/* Based on email I got from andrea ricci */
a[href^="mailto:"]:before { content: "\2709"; }
.phone:before { content: "\2706"; }
.important:before { content: "\27BD"; }
blockquote:before { content: "\275D"; }
blockquote:after { content: "\275E"; }
.alert:before { content: "\26A0"; }
:before, :after {
@tispratik
tispratik / dabblet.css
Created February 6, 2012 08:29 — forked from chriscoyier/dabblet.css
Based on email I got from andrea ricci
/* Based on email I got from andrea ricci */
a[href^="mailto:"]:before { content: "\2709"; }
.phone:before { content: "\2706"; }
.important:before { content: "\27BD"; }
blockquote:before { content: "\275D"; }
blockquote:after { content: "\275E"; }
.alert:before { content: "\26A0"; }
:before, :after {
@tispratik
tispratik / dabblet.css
Created February 6, 2012 08:29 — forked from chriscoyier/dabblet.css
Based on email I got from andrea ricci
/* Based on email I got from andrea ricci */
a[href^="mailto:"]:before { content: "\2709"; }
.phone:before { content: "\2706"; }
.important:before { content: "\27BD"; }
blockquote:before { content: "\275D"; }
blockquote:after { content: "\275E"; }
.alert:before { content: "\26A0"; }
:before, :after {
@tispratik
tispratik / gist:1019849
Created June 10, 2011 21:50
God Config File
God.log_level = :debug
ENV['RAILS_ENV'] ||= "staging"
ENV['RAILS_ROOT'] ||= ENV['RAILS_ENV'] == "development" ? "." : "/home/rails/public_html/myapp/current"
ENV['GOD_UID'] ||= ENV['RAILS_ENV'] == "development" ? ENV["LOGNAME"] : "rails"
ENV['GOD_GID'] ||= ENV['RAILS_ENV'] == "development" ? "staff" : "rails"
puts "God is starting with:"
puts "RAILS_ENV = #{ENV['RAILS_ENV']}"
puts "RAILS_ROOT = #{ENV['RAILS_ROOT']}"