Skip to content

Instantly share code, notes, and snippets.

Siddharth Kannan icyflame

Block or report user

Report or block icyflame

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
icyflame /
Created Oct 1, 2019
Find whether multiple export statements, a single export statement or no export statement contributes to the fastest shell loading time


Option Time taken to source zshrc
No Imports 1152ms
Import in a single line 1158ms
Import in multiple export statements 1169ms


icyflame / github-to-circleci-bookmarklet.js
Created Sep 15, 2019
A bookmarklet to go from to
View github-to-circleci-bookmarklet.js
var url = location.href;
if (url.match(/https:\/\/\//)) {
var baseRemoved = url.replace('', '');
var components = baseRemoved.split('/');
if (components.length >= 2) {
var account = components[0];
var repo = components[1];
var newURL = "" + account + "/" + repo;
location.href = newURL;
icyflame /
Last active Jul 27, 2019
Setting up a new Ubuntu installation with my personal dotfiles and other required software!
$ sudo apt-get install git curl xsel
$ sudo apt-get install silversearch-ag jq
$ sudo apt-get install zsh
$ mkdir -p ~/code ~/sandbox ~/personal
$ ssh-keygen -t rsa -b 4096
$ cat ~/.ssh/ | xsel --input --clipboard
# Add your new SSH public key to your GitHub account!
icyflame /
Created May 30, 2019
A bash script to generate a .dot file with the pre-requisite dependency graph of your LaunchDarkly setup
#!/usr/bin/env bash
rm -f flags-output
rm -f dependencies
rm -f flat_json
rm -f
rm -f tmp
curl -H"Authorization: $LD_API_KEY" > flags-output
icyflame /
Created Aug 14, 2018
Quote about institutions from The Great Influenza (John M Barry)

Institutions are a strange mix of the mass and the individual. They abstract. They behave according to a set of rules that substitute both for individual judgements and for the emotional responses that occur whenever individuals interact. The act of creating an institution dehumanizes it, creates an arbirtrary barrier between individuals.

Yet institutions are human as well. They reflect the cumulative personalities of those within them, especially their leadership. They tend, unfortunately, to mirror less admirable human traits, developing and protecting self-interest and even ambition. Institutions almost never sacrifice. Since they live by rules, they lack spontaneity. They try to order chaos not in the way an artist or scientist does, through a defining vision that creates structure and discipline but by closing off and isolating themselves from that which does not fit. They become bereaucratic.

The best institutions avoid the worst aspects of bureaucracy in two ways. Some are not really institutions at

icyflame / consistency-saner
Created Feb 19, 2018
List of Links in the MFQP data/data.json at 39a3d69 which don't respond with 200
View consistency-saner
NOT OK: 2010--11 - 503
NOT OK: 2011-12 - 503
NOT OK: %26 - 000
NOT OK: 29 - 503
NOT OK: accounting - 503
NOT OK: Accounting.pdf - 503
NOT OK: AG60124 - 503
NOT OK: Aided - 503
NOT OK: and - 503
NOT OK: AND - 503
View parse_html.go
package main
import (
// return the first tag in subtree for which reqd returns true (DFS)
View t.diff
< {
< "Department": "mechanical engineering",
< "Semester": "mid autumn 2016",
< "Paper": "systems and control",
< "Link": "",
< "Year": "2016"
< },
< {
< "Department": "mechanical engineering",
< "Semester": "end spring 2017",
icyflame / twitter_get_access_tok.go
Created Dec 15, 2017
Get app authentication access token for the Twitter API in Golang
View twitter_get_access_tok.go
package main
import b64 "encoding/base64"
import "encoding/json"
type BearerToken struct {
Token_Type string
Access_Token string
icyflame / app-auth.go
Last active Dec 15, 2017
go-twitter library - app authentication doesn't fetch user timelines
View app-auth.go
package main
import (
func main() {
You can’t perform that action at this time.