Skip to content

Instantly share code, notes, and snippets.

@cjbarber
cjbarber / unreplied.md
Last active December 23, 2022 14:58
RFS: Gmail Unreplied Messages

A Request for a Startup: Gmail 'Waiting For Reply' Tab

Problem:

  • I, Chris Barber, send many emails. I'd like to get more replies.

Solution:

  • A Chrome extension that adds a 'waiting for' tab to gmail.
@mundry
mundry / README.markdown
Last active June 6, 2024 14:46
Instructions to build Chromium on a fresh install of Fedora 20.

Build Chromium on Fedora 20

Install Dependencies

sudo yum install GConf2-devel systemd-devel mesa-libGLU-devel libstdc++.i686 subversion \
libX11-devel libjpeg-devel gcc-c++ libXScrnSaver-devel fontconfig-devel cups-devel libgcc.i686 \
flex libXt-devel pulseaudio-libs-devel dbus-glib-devel bison dbus-devel alsa-lib-devel \
elfutils-libelf-devel libgnome-keyring-devel pango-devel glibc.i686 libXtst-devel pkgconfig \
libudev-devel glib2-devel bzip2-devel python nss-devel nspr-devel libcap-devel expat-devel \
gperf pciutils-devel gtk2-devel libgcrypt-devel perl freetype-devel perl-Digest-MD5 \
@Vegasq
Vegasq / GetChromeRemoteCode.sh
Last active February 17, 2016 02:38
Make GoogleChrome remote key screenshot
#!/bin/bash
# GetChromeRemoteCode.sh
# Run with CRON like
# * * * * * ~/chrome_remote.sh
# Required:
# google-chrome + chrome remote desktop
# tesseract-ocr
@jbinto
jbinto / howto-recover-google-authenticator-keys.txt
Created February 8, 2014 04:20
Recovering Google Authenticator keys from Android device for backup
### Last tested February 7 2014 on a Galaxy S3 (d2att) running Cyanogenmod 11 nightly, with Google Authenticator 2.49.
### Device with Google Authenticator must have root.
### Computer requires Android Developer Tools and SQLite 3.
### Connect your device in USB debugging mode.
$ cd /tmp
$ adb root
$ adb pull /data/data/com.google.android.apps.authenticator2/databases/databases
@taddev
taddev / gihtubpage.conf
Last active March 5, 2025 18:17
NGINX Reverse proxy settings to Github pages
server {
listen 80 default_server;
listen [::]:80 ipv6only=on default_server;
server_name splunk.net blog.splunk.net www.splunk.net .taddevries.com;
access_log /var/log/nginx/blog.access_log main;
error_log /var/log/nginx/blog.error_log info;
return 301 https://blog.splunk.net;
}
server {
@debasishg
debasishg / gist:8172796
Last active March 5, 2025 14:11
A collection of links for streaming algorithms and data structures

General Background and Overview

  1. Probabilistic Data Structures for Web Analytics and Data Mining : A great overview of the space of probabilistic data structures and how they are used in approximation algorithm implementation.
  2. Models and Issues in Data Stream Systems
  3. Philippe Flajolet’s contribution to streaming algorithms : A presentation by Jérémie Lumbroso that visits some of the hostorical perspectives and how it all began with Flajolet
  4. Approximate Frequency Counts over Data Streams by Gurmeet Singh Manku & Rajeev Motwani : One of the early papers on the subject.
  5. [Methods for Finding Frequent Items in Data Streams](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.187.9800&rep=rep1&t
module Jekyll
# Convert org-mode files.
require 'org-ruby'
class OrgConverter < Converter
safe true
def setup
# No-op
end
@lukmdo
lukmdo / lehmer.py
Last active May 23, 2021 23:39
Permutations by Lehmer codes
"""
Permutations by Lehmer codes (http://en.wikipedia.org/wiki/Lehmer_code)
Inspired by http://stackoverflow.com/a/3241894/212278
Given input sequence
>>> seq = ["A", "B", "C", "D"]
>>> lehmer_code = [2, 1, 0, 0]
>>> int_from_code(lehmer_code)
6
>>> list(lehmer.iter_perm(['A', 'B', 'C']))
@urschrei
urschrei / basemap_descartes.py
Last active November 6, 2020 02:49
How to plot Shapely Points using Matplotlib, Basemap, and Descartes
"""
required packages:
numpy
matplotlib
basemap: http://matplotlib.org/basemap/users/installing.html
shapely: https://pypi.python.org/pypi/Shapely
descartes: https://pypi.python.org/pypi/descartes
random
@jcromartie
jcromartie / async_expansion.clj
Created July 13, 2013 19:35
Macro expansion of (go (+ 1 1))
;; (macroexpand-1 '(go (+ 1 1)) yields ...
(clojure.core/let
[c__2247__auto__
(clojure.core.async/chan 1)
captured-bindings__2248__auto__
(clojure.lang.Var/getThreadBindingFrame)]
(clojure.core.async.impl.dispatch/run
(clojure.core/fn
[]