Skip to content

Instantly share code, notes, and snippets.

View icyflame's full-sized avatar

Siddharth Kannan icyflame

View GitHub Profile
@icyflame
icyflame / institutions-quote.md
Created August 14, 2018 15:01
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
icyflame / alonso-quote.md
Last active April 11, 2018 07:46
Fernando Alonso's Interview to Martin Brundle, telecast on Sky F1 in the pre-race-build-up of the Chinese GP 2016.

No, no regrets. I never regret anything that I do. You learn with things, you grow up with things, and in the moment that I made all the choices and all the things, I thought in that moment that it was the right one. Once you are clear with yourself and happy with yourself in that moment, to see things later is a waste. Pointless, you know, there's nothing you can do. I am happy with everything.

--

Fernando Alonso

2016 Chinese Grand Prix

pre-race show on Sky F1

@icyflame
icyflame / consistency-saner
Created February 19, 2018 19:00
List of Links in the MFQP data/data.json at 39a3d69 which don't respond with 200
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
package main
import (
"fmt"
"golang.org/x/net/html"
"log"
"strings"
)
// return the first tag in subtree for which reqd returns true (DFS)
@icyflame
icyflame / t.diff
Last active February 2, 2018 13:31
< {
< "Department": "mechanical engineering",
< "Semester": "mid autumn 2016",
< "Paper": "systems and control",
< "Link": "https://drive.google.com/open?id=0B9VL20IzhCr7ZDRDUlVDNjk4Z0k",
< "Year": "2016"
< },
< {
< "Department": "mechanical engineering",
< "Semester": "end spring 2017",
@icyflame
icyflame / http proxy list of files.md
Last active January 13, 2018 17:20
Because clearing the http proxy settings is more of a pain than finding the right settings to use in the first place
Location Variable names Command to check if this variable still exists
~/dotfiles/.local/kgp.zsh HTTP_PROXY, HTTPS_PROXY, http_proxy, https_proxy `export
~/.gitconfig Git variables for http and https proxies git config --list
~/.bowerrc proxy and https-proxy used by Gulp No command, check the file itself. remove or change variable name in the file
~/.npmrc http-proxy and https-proxy used by NPM No command, check the file and remove or change
/etc/systemd/system/docker.service.d/http-proxy.conf Environment used by Docker to pull images systemctl show --property=Environment docker => Output should be Environment= (if it shows proxy, then this file needs to be changed) Tutorial
@icyflame
icyflame / AI-Computers.md
Last active December 27, 2017 14:24
A list of all the Artificial Intelligence computers shown in movies

SPOILERS AHEAD

Movies that this gist has associations with :-

  1. I, Robot
  2. Eagle Eye
  3. Oblivion

@icyflame
icyflame / twitter_get_access_tok.go
Created December 15, 2017 04:33
Get app authentication access token for the Twitter API in Golang
package main
import b64 "encoding/base64"
import "encoding/json"
type BearerToken struct {
Token_Type string
Access_Token string
}
@icyflame
icyflame / app-auth.go
Last active December 15, 2017 03:18
go-twitter library - app authentication doesn't fetch user timelines
package main
import (
"fmt"
"github.com/dghubble/go-twitter/twitter"
"golang.org/x/oauth2"
"os"
)
func main() {
<OpenSearchDescription>
<ShortName>Google Encrypted</ShortName>
<Description>search on encrypted.google.com - websites get less data about you</Description>
<Image height="16" width="16" type="image/x-icon">https://www.google.com/favicon.ico</Image>
<Url type="text/html" method="get" template="https://encrypted.google.com/search?q={searchTerms}" />
</OpenSearchDescription>