Skip to content

Instantly share code, notes, and snippets.

@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active April 26, 2024 10:11
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@breezeight
breezeight / gist:740c9cba9d48d4bc9ecc
Created January 16, 2015 14:59
Load FB pixel on an outbound link
<html>
<head>
<!-- Facebook Conversion Code for new pixel -->
<script>(function() {
var _fbq = window._fbq || (window._fbq = []);
if (!_fbq.loaded) {
try {
(function(a, b, c, d) {
var e = a._fbq || (a._fbq = []);
if (e.push !== Array.prototype.push)
@hokuh123
hokuh123 / gist:d823726c105d1cdd34478b5109a13389
Created November 14, 2017 22:15
Snipp Codes Variations
<meta content="224753454332789" property="fb:app_id"><meta content="IE=edge" http-equiv="X-UA-Compatible">
<script type="text/javascript">window.NREUM||(NREUM={});NREUM.info={"beacon":"bam.nr-data.net","errorBeacon":"bam.nr-data.net","licenseKey":"73f52d8248","applicationID":"5512560","transactionName":"IlZZEUJdD1QBSxlACg5OREpEQAZWAFBYVA==","queueTime":0,"applicationTime":91,"agent":""}</script>
<script type="text/javascript">(window.NREUM||(NREUM={})).loader_config={xpid:"VQ4HV19UGwYFVVNXAQE="};window.NREUM||(NREUM={}),__nr_require=function(t,n,e){function r(e){if(!n[e]){var o=n[e]={exports:{}};t[e][0].call(o.exports,function(n){var o=t[e][1][n];return r(o||n)},o,o.exports)}return n[e].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;o<e.length;o++)r(e[o]);return r}({1:[function(t,n,e){function r(t){try{s.console&&console.log(t)}catch(n){}}var o,i=t("ee"),a=t(15),s={};try{o=localStorage.getItem("__nr_flags").split(","),console&&"function"==typeof console.log&&(s.console=!0,o.indexOf
@joshbeckman
joshbeckman / classy.js
Created October 12, 2015 14:19
An example showing the difference between prototypal inheritance and raw object usage in JavaScript
function Foo(who) {
this.me = who;
}
Foo.prototype.identify = function() {
return "I am " + this.me;
};
function Bar(who) {
Foo.call(this,who);
@joshbeckman
joshbeckman / fbevents.js
Created May 27, 2016 21:31
Facebook's new Audience ad tracking script
/*1464382852,,JIT Construction: v2361294,en_US*/
/**
* Copyright Facebook Inc.
*
* Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
try {
(function(a, b, c, d) {
@joshbeckman
joshbeckman / faux-fountain.css
Created June 2, 2016 18:39
Transmute some hacky HTML markup conventions into screenplay display, inspired by http://fountain.io/_css/scrippets.css
body {
font-family: monospace;
max-width: 35rem;
margin: 0 auto;
display: block;
text-align: left !important;
}
h1,h2,h3,h4 {
/* used for characters */
text-align: center;
https://jvns.ca/atom.xml
http://sonniesedge.co.uk/feed.xml
https://eev.ee/feeds/blog.atom.xml
http://feeds.feedburner.com/turkeltaub
https://marco.org/rss2
https://daringfireball.net/feeds/main
http://www.evanmiller.org/news.xml
http://feeds.feedburner.com/codinghorror
http://feeds.feedburner.com/HighScalability
http://www.overcomingbias.com/feed
@VermeilChan
VermeilChan / compile-aseprite-win.md
Last active April 26, 2024 10:08
Compile Aseprite from source code for Windows 11/10 x64
@joshbeckman
joshbeckman / fbds.js
Created May 27, 2016 21:30
Facebook deprecated/ing (supposedly) adds script
/*1464382085,,JIT Construction: v2361294,en_US*/
/**
* Copyright Facebook Inc.
*
* Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
try {
(function(a, b, c, d) {