Skip to content

Instantly share code, notes, and snippets.

@saitamanodoruji
saitamanodoruji / unbindCallbacksOnFlatscrollOnTumblrDashboard.user.js
Last active April 26, 2024 10:14
Tumblr Dashboard でスクロールイベントにバインドされてる callback を全部切る
// ==UserScript==
// @name Unbind Callbacks on Flatscroll on Tumblr Dashboard
// @namespace http://saitamanodoruji.tumblr.com/
// @description Tumblr Dashboard でスクロールイベントにバインドされてる callback を全部切る
// @include http://www.tumblr.com/dashboard*
// @include http://www.tumblr.com/likes*
// @include http://www.tumblr.com/liked/by/*
// @include http://www.tumblr.com/tagged/*
// @include http://www.tumblr.com/blog/*
// @exclude http://www.tumblr.com/dashboard/iframe*
// ==UserScript==
// @id laborious spin
// @name laborious spin
// @version 1.1
// @namespace saitamanodoruji
// @author saitamanodoruji
// @description spin it the hard way
// @include *
// @run-at document-end
// @update 2014-12-05
@bakavets
bakavets / kubernetes-certifications.md
Last active April 26, 2024 10:14
How I passed Kubernetes KCNA, CKAD, CKA, and CKS exams. My experience. Exam tips and tricks.
@tobywf
tobywf / build-dvisvgm.sh
Last active April 26, 2024 10:14
Build dvisvgm and kpathsea on macOS
#!/bin/bash
set -xeuo pipefail
IFS=$'\n\t'
PREFIX="${1:-/usr/local/dvisvgm}"
TEX="$(kpsewhich -var SELFAUTOLOC)"
echo "$PREFIX, $TEX"
brew install automake freetype ghostscript potrace
// ==UserScript==
// @name Share2chOnTumblr
// @namespace http://saitamanodoruji.tumblr.com/
// @description Share 2ch conversation on Tumblr as Quote
// @include http://*.2ch.net/test/read.cgi/*
// @include http://*.2ch.net/*/kako/*
// @include http://*.bbspink.com/test/read.cgi/*
// @include http://jbbs.livedoor.jp/bbs/read.cgi/*
// @include http://jbbs.livedoor.jp/*/*/*/*.html
// @include http://p2.chbox.jp/read.php?url=http://*.2ch.net/test/read.cgi/*
@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);