Skip to content

Instantly share code, notes, and snippets.

View chaitanyakuber's full-sized avatar

Chaitanya Kuber chaitanyakuber

View GitHub Profile
@learncodeacademy
learncodeacademy / deployUser.md
Last active October 8, 2022 18:56
Adding a deploy user in Linux

(wherever it says url.com, use your server's domain or IP)

Login to new server as root, then add a deploy user

sudo useradd --create-home -s /bin/bash deploy
sudo adduser deploy sudo
sudo passwd deploy

And Update the new password

@max-mapper
max-mapper / readme.md
Last active October 12, 2015 10:17
introduction to node
@henare
henare / CHANGELOG.md
Created March 3, 2012 03:06
debian-squeeze.box

debian-squeeze-64

A Debian Squeeze 64-bit Vagrant base box that is designed to be as vanilla as possible so that you can add your own configuration in Chef recipes or Puppet manifests.

http://dl.dropbox.com/u/174733/debian-squeeze-64.box

Changelog follows:

2012-03-03

@tmcgilchrist
tmcgilchrist / git-rebase.markdown
Created February 10, 2012 02:58
Git rebase workflow

Checkout a new working branch

 git checkout -b <branchname>

Make Changes

 git add
 git commit -m "description of changes"

Sync with remote

@mislav
mislav / gist:938183
Created April 23, 2011 02:28
Faraday SSL example
connection = Faraday::Connection.new('http://example.com') do |builder|
builder.request :url_encoded # for POST/PUT params
builder.adapter :net_http
end
# same as above, short form:
connection = Faraday.new 'http://example.com'
# GET
connection.get '/posts'
@alunny
alunny / client-side-xauth.js
Created June 21, 2010 22:39
accessing twitter xAuth through client-side JS
/*****
To authorize on Twitter API through xAuth, you need HMAC-SHA1
I'm using the following lib for that:
http://jssha.sourceforge.net
Make sure you have sha.js included!
<script src="http://jssha.sourceforge.net/sha.js"></script>
Also, you need to email api@twitter.com to get xAuth access
I cannot do that for you - see http://dev.twitter.com/pages/xauth