Skip to content

Instantly share code, notes, and snippets.

coleifer /
Created June 2, 2017 05:28
i3 status bar script
#!/usr/bin/env python
from collections import namedtuple
import ctypes
import datetime
import fcntl
import imaplib
import json
import multiprocessing
import os

Keybase proof

I hereby claim:

  • I am coleifer on github.
  • I am coleifer ( on keybase.
  • I have a public key whose fingerprint is AEAC C7C2 FC8A E23D F23F D0A4 D1C4 594E 5FD4 20DA

To claim this, I am signing this object:

coleifer / .compton.conf
Created September 28, 2016 04:08
Installing Compton compositor for tear-free video in Xubuntu (XFCE).
# Place this file in ~
# Installing Compton: sudo apt-add-repository ppa:richardgv/compton; sudo apt-get update; sudo apt-get -y install compton
backend = "xrender";
paint-on-overlay = true;
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
vsync = "opengl";
#xrender backend with opengl solves "laggy drag" issue on 14.04
coleifer / nginx.conf
Created February 12, 2016 01:49 — forked from phpdude/nginx.conf
Nginx image filter + caching of results.
location /resize {
alias /tmp/nginx/resize;
set $width 150;
set $height 100;
set $dimens "";
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) {
set $width $1;
set $height $2;
set $image_path $3;
coleifer / The Technical Interview Cheat
Last active September 24, 2020 02:47 — forked from tsiege/The Technical Interview Cheat
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.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
coleifer /
Last active October 26, 2017 00:16
import re
class _R(type):
def __div__(self, regex):
return R(regex)
class R(object):
__metaclass__ = _R
def __init__(self, regex):
Demonstration of using `splice` with non-blocking IO
Lots of code is similar to '', take a look at that module for more
import os
import os.path
import errno
* spazcowz - Daniel
* mcroydon - Matt
* mintchaos - Xian
* bltsandwich - Ben T.
* exoar - Travis
* fxdgear - Nick
* jacobian - Jacob KM
* bobbygrace - Bobby
* duke_sam - Niall
* thekaul - Kyle Stern