Skip to content

Instantly share code, notes, and snippets.

View icyflame's full-sized avatar

Siddharth Kannan icyflame

View GitHub Profile
@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 / lolita-references.md
Last active April 19, 2016 05:54
References or quotes from Lolita by Vladimir Nabokov
Medium Quote Who Says Reference
Movie Plain Lo in the morning, Lola in slacks Lex Luthor Batman vs. Superman (2016)
Song Light of my life, fire of my loins Lana Del Rey Off to the Races - Born to Die
@icyflame
icyflame / git-proxy.sh
Created April 6, 2016 13:47 — forked from icantrap/git-proxy.sh
How to Github and Gitorious over HTTP proxy

You could always use Smart HTTP.

For read-only (git:) urls, install corkscrew.

  1. Download git-proxy.sh. Put it somewhere and make it executable.

  2. Run git config --global core.gitproxy '/usr/local/bin/git-proxy.sh'

To clone, push, pull over ssh, add the contents of ssh_config to your ~/.ssh/config file.

@icyflame
icyflame / to_https.sh
Last active February 12, 2022 16:12 — forked from michaelsilver/fix_github_https_repo.sh
Convert all GitHub git remotes to SSH or HTTPS.
#/bin/bash
#-- Script to automatically convert all git remotes to HTTPS from SSH
# Script will change all the git remotes.
# If you didn't intend to do that, run the other script in this repo.
# Original 1: https://gist.github.com/m14t/3056747
# Original 2: https://gist.github.com/chuckbjones/9dc6634fe52e56ba45ac
# Thanks to @m14t, @michaelsilver and @chuckbjones.
ssh_to_https(){
REPO_URL=`git remote -v | grep -m1 "^$1" | sed -Ene's#.*(git@github.com:[^[:space:]]*).*#\1#p'`
@amrav
amrav / Zen of Metakgp
Created April 5, 2016 12:04
Zen of Metakgp
Together is better than alone
But beware, for groups cannot be blamed
Consensus trumps authority
And should be won by argument
Surround yourself with your betters
And strive to best them
Ignore what is commonly accepted
Change is wrought through defiant perfection
But shipping beats perfection, every time
@icyflame
icyflame / suggested-crontab-file.md
Last active January 6, 2016 14:24
Suggested Crontab file for a Students' Alumni Cell, IIT Kharagpur server

Crontab file

# m h  dom mon dow   command
10 * * * * cd path-to-website && git pull --ff-only upstream gh-pages
11 * * * * cd path-to-website && git pull --ff-only upstream master
12 * * * * cd /home/<username>/database-backups/ && mysqldump -ubackup_user -p<password> <database-name> > <database-name>-`date +%Y-%m-%d`.sql && gist -u <gist-id> `ls -t | head -1`
30 12 * * 1 cd /home/<username>/database-backups/ && rm -rf *.sql
@joepie91
joepie91 / vpn.md
Last active April 20, 2024 21:15
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
Hello, and welcome to the /r/cubers weekly competitions! If you're new, please read the entire post before competing! This is competition 157, and will go until November 15 at 2100 EST.
There’s a rotation of 4 events to be held once a month: 5x5, BLD, Skewb, and Pyraminx. You can also request an event to be done! If you want an event in an upcoming competition, write it with your results. One event will be done per week. You must be able to do the event you're requesting.
To compete:
> 1. Scramble your cube, in the event that you are doing, with the scrambles provided. For OLL, do the alg 5 times.
>1. Using a timer, such as [cstimer] (http://cstimer.net/timer.php) or [qqtimer] (http://www.qqtimer.net/), time your 5 solves and record the results. You are given up to 15 seconds to inspect the cube for each event.
@icyflame
icyflame / 154.md
Last active December 5, 2015 18:10
Submissions to the weekly competitions at /r/Cubers

3x3: (21.78) 24.35 22.00(26.08) 25.35 = 23.90
3x3OH: 51.52 (1:13.20) 58.18 (51.07) 58.78 = 56.16
BLD: (4:45.29) (DNF) 6:22.92 DNF 8:01.33 = 4:45.29

@user3415653
user3415653 / Interview.txt
Last active September 4, 2016 17:27 — forked from arafatkamaal/Interview.txt
Interview tips
Almost all of the questions posted in this sub are some form of "what do I have to know/do to pass a tech interview/get a job." Here's some distilled advice I can offer from having conducted over 1000 tech interviews. This doesn't cover everything, but I think it covers the most important foundational elements.
Setting expectations: If this is your first time looking for a job, or you haven't had to interview in a number of years, expect to invest some effort in preparing for the interview. It's usually the industry professionals that completely ignore this step, but some college students do as well. You're essentially studying for a test, don't slack off - it's going to be work. All of those things that you've been telling yourself don't matter (maybe you're a bit fuzzy on how exactly the internet works - do you really know what happens after you hit enter on the URL bar?) that you don't know - now it's time to address those gaps head on. So, what matter.
For the sake of space, I'm going to focus on what a