Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name ShareTwitterOnTumblr
// @namespace http://white.s151.xrea.com/
// @description Share Twitter conversation on Tumblr as Chat
// @include http://twitter.com/*
// @include https://twitter.com/*
// @include http://explore.twitter.com/*
// @include http://m.twitter.com/*
// @include http://twitter.1x1.jp/search/*
// @include http://terraminds.com/twitter/*
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active April 26, 2024 10:22
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
@timothymcmackin
timothymcmackin / get_link_title.html
Created May 30, 2018 20:56
Jekyll extension to resolve related links from front matter and create links in the output
YUI.add('couch-base', function(Y) {
var LANG = Y.Lang,
IS_BOOLEAN = LANG.isBoolean,
IS_STRING = LANG.isString,
IS_NUMBER = LANG.isNumber,
IS_OBJECT = LANG.isObject,
DATA_SOURCE = 'dataSource',
EVENT_ERROR = 'couch:error',
@mihirgokani007
mihirgokani007 / api.js
Created November 30, 2014 11:56
jquery.typeahead *dynamic data* demo
var API = (function () {
var RESULT_SIZE = 10;
var STATES = [
"Alabama",
"Alaska",
"Arizona",
"Arkansas",
"California",
"Colorado",
@janosdebugs
janosdebugs / slices.go
Created March 1, 2023 18:41
Go slices mind-twister
firstSlice := []string{"a", "b", "c", "d", "e", "f"}
firstSlice = firstSlice[:5]
secondSlice := firstSlice
firstSlice = append(firstSlice, "g")
// This will print: [a b c d e g]
fmt.Println(firstSlice)
secondSlice = append(secondSlice, "h")
@hyrious
hyrious / nodejs-on-exit.js
Created November 22, 2020 05:04
how to do something before exit in NodeJS
// only works when there is no task running
// because we have a server always listening port, this handler will NEVER execute
process.on("beforeExit", (code) => {
console.log("Process beforeExit event with code: ", code);
});
// only works when the process normally exits
// on windows, ctrl-c will not trigger this handler (it is unnormal)
// unless you listen on 'SIGINT'
process.on("exit", (code) => {
@raandree
raandree / 1. Start-PortScan.ps1
Last active April 26, 2024 10:20
PowerShell Portscan
<#
.SYNOPSIS
Powerful asynchronus IPv4 Port Scanner
.DESCRIPTION
This powerful asynchronus IPv4 Port Scanner allows you to scan every Port-Range you want (500 to 2600 would work).
The result will contain the Port number, Protocol, Service name, Description and the Status.
.EXAMPLE
@6174
6174 / github_stacktrace.js
Last active April 26, 2024 10:20
stackTracejs
// Domain Public by Eric Wendelin http://eriwen.com/ (2008)
// Luke Smith http://lucassmith.name/ (2008)
// Loic Dachary <loic@dachary.org> (2008)
// Johan Euphrosine <proppy@aminche.com> (2008)
// Oyvind Sean Kinsey http://kinsey.no/blog (2010)
// Victor Homyakov <victor-homyakov@users.sourceforge.net> (2010)
/*global module, exports, define, ActiveXObject*/
(function(global, factory) {
if (typeof exports === 'object') {
// Node
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=3)}([function(e,t,n){n(8);var r=n(6)(n(2),n(7),null,null);e.exports=r.exports},function(e,t){e.exports=Vue},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"shaker"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n.n(r),s=n(0),a=n.n(s);o.a.component("shaker",a.a)},function(e,t,n){t=e.exports=n(5)(),t.push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"Shaker.vue",sourceRoot:""}])},function(e,t){e.exports=function(){var e=[];return e.