Skip to content

Instantly share code, notes, and snippets.

#include <vector>
#include <algorithm>
class One {
protected:
int a;
int b;
};
class Two : public One {
#include <vector>
#include <algorithm>
class One {
protected:
int a;
int b;
};
class Two : public One {
#include <vector>
#include <algorithm>
class One {
protected:
int a;
int b;
};
class Two : public One {
# update packages
apt-get update && apt-get install emacs24-nox mcrypt
# setup Postgres
apt-get install postgresql postgresql-contrib libpq-dev
# setup Nginx
apt-get install nginx
@recoder
recoder / safekeep-git.sh
Last active August 18, 2017 19:36
Archive a git repo, then archive uncommitted changes separately
#!/bin/sh
BACKUPING=`git remote show origin -n | grep "Fetch URL:" | sed -E 's:^.*/(.*):\1:'`
git archive -9 HEAD -o ../${BACKUPING}.committed.zip
git ls-files -o | zip ../${BACKUPING}.backup-uncommitted.zip -@
@recoder
recoder / docker-compose.yaml
Created December 28, 2017 22:54
Sample docker-compose config for traefik and two domains
version: '2'
networks:
shout:
external:
name: web
whisper: {}
services:
traefik:
@recoder
recoder / docker-compose.yaml
Created January 2, 2018 16:14
Sample docker-compose config for traefik with LetsEncrypt and two domains plus dashboard
version: '2'
networks:
shout:
external:
name: web
whisper: {}
services:
traefik:
@recoder
recoder / ljlinks.py
Last active February 7, 2018 15:53
Python script to extract all external links for archiving

Keybase proof

I hereby claim:

  • I am recoder on github.
  • I am recoder (https://keybase.io/recoder) on keybase.
  • I have a public key ASDkNiLoJpBNbYPeXxT0Fo2o2IXLg0pQeoTkVaPGiOV1SQo

To claim this, I am signing this object:

@recoder
recoder / my_monthly_cleanup.md
Last active May 31, 2018 13:47
My Monthly Authorization Cleanup