Skip to content

Instantly share code, notes, and snippets.

frnhr / .bash_profile
Created Mar 17, 2016
Show current pyenv python version in bash prompt, and also color virtual envs differently
View .bash_profile
#### pyenv-virtualenv bash prompt customization
# pyenv
eval "$(pyenv init -)"
# pyenv-virtualenv:
bishboria /
Last active Jun 13, 2021
Springer made a bunch of books available for free, these were the direct links
wayspurrchen / git
Last active Jun 1, 2020
Useful Git Techniques
View git


Show file at certain commit

git show <hash>:<file>

Show history of a file

git log -p <filename>

View Makefile
# Hello, and welcome to makefile basics.
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
# Once you're done here, go to
# to learn SOOOO much more.
Problematic / Edge.cs
Created Aug 31, 2014
Node graph for Unity3D
View Edge.cs
using UnityEngine;
public class Edge
public Edge()
public Edge(Node node, int cost)
#! /usr/bin/env python
# vim: set fileencoding=utf-8:
""" Process URL for intersphinx targets and emit html or text """
def validuri(string):
return string
from sphinx.ext.intersphinx import read_inventory_v2
from posixpath import join
import pprint
TSiege / The Technical Interview Cheat
Last active Jun 18, 2021
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat


I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!


namuol /
Last active May 8, 2021
rage-quit support for bash

rage-quit support for bash


Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

simonista / .vimrc
Last active Jun 17, 2021
A basic .vimrc file that will serve as a good template on which to build.
View .vimrc
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
jessitron / gist:8376139
Created Jan 11, 2014
scala: print all URLs on classpath
View gist:8376139
def urlses(cl: ClassLoader): Array[] = cl match {
case null => Array()
case u: => u.getURLs() ++ urlses(cl.getParent)
case _ => urlses(cl.getParent)
val urls = urlses(getClass.getClassLoader)