Skip to content

Instantly share code, notes, and snippets.

View paramsiddharth's full-sized avatar
❤️
For the mother's pride, for the times I cried, got to stay alive. I'll survive.

Param Siddharth paramsiddharth

❤️
For the mother's pride, for the times I cried, got to stay alive. I'll survive.
View GitHub Profile
@chrisjacob
chrisjacob / README.md
Created February 18, 2011 03:44
Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").

Intro

Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").

Author: Chris Jacob @_chrisjacob

Tutorial (Gist): https://gist.github.com/833223

The Result

@jslatts
jslatts / wscript
Created May 26, 2011 05:13
attempting to link in dependency in deps dir
srcdir = '.'
blddir = 'build'
VERSION = '0.0.1'
def set_options(opt):
opt.tool_options('compiler_cxx')
def configure(conf):
conf.check_tool('compiler_cxx')
conf.check_tool('node_addon')
@solenoid
solenoid / gist:1372386
Created November 17, 2011 04:49
javascript ObjectId generator
var mongoObjectId = function () {
var timestamp = (new Date().getTime() / 1000 | 0).toString(16);
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() {
return (Math.random() * 16 | 0).toString(16);
}).toLowerCase();
};
@niwaringo
niwaringo / theme.html
Created January 30, 2012 16:19 — forked from soemarko/theme.html
embed github gist to tumblr
<!-- Add the following lines to theme's html code right before </head> -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script type="text/javascript" src="http://static.tumblr.com/hkw90bf/Goylylph8/writecapture.js"></script>
<script type="text/javascript" src="http://static.tumblr.com/hkw90bf/4j0lylphn/jquery.writecapture.js"></script>
<script type="text/javascript" src="http://static.tumblr.com/hkw90bf/Csalymbyn/gitsembedwritecapture.js"></script>
<!--
Usage:
just add <div class="gists">[gist js URL]</div>
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@dideler
dideler / python-colours.md
Last active May 23, 2024 12:37
Formatted output in the terminal (using Python)

Most (or all) of these methods make use of ANSI escape sequences.

Straight-up

For example, using a dictionary:

ansi = {'underline': '\033[4m', 'bold': '\033[1m', 'end':'\033[0m'}
print '{[bold]}Hello World{[end]}'.format(ansi, ansi)
@thefonso
thefonso / gistembed.js
Created December 1, 2012 22:41 — forked from vitorbal/gistembed.js
Use writeCapture to embed gists to Tumblr
$(document).ready(function() {
var prefix = "https://gist.github.com/";
$('a[href^="' + prefix + '"]').each(function(i) {
var $anchor = $(this),
$el = $("<p></p>");
$anchor.replaceWith($el);
writeCapture.html($el, '<script src="'+$anchor.text()+'.js"></scr' + 'ipt>');
$anchor.remove();
});
});
/* sparkle */
.sparkle{
width:20px;
height:20px;
background-color:red;
position:relative;
margin:20%;
box-shadow:0 0 0px 10px rgba(0,0,0,.5);
@raelgc
raelgc / Email Server (Linux, Unix, Mac).md
Last active March 24, 2025 05:47
Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

1 - Point localhost.com to your machine

Most of programs will not accept an email using just @localhost as domain. So, edit /etc/hosts file to make the domain localhost.com point to your machine, including this content to the file:

127.0.0.1 localhost.com

2 - Install Postfix

@raelgc
raelgc / Email Server (Windows Only).md
Last active March 8, 2025 06:06
Setup a Local Only Email Server (Windows Only)