Skip to content

Instantly share code, notes, and snippets.

View keybae.md

Keybase proof

I hereby claim:

  • I am rvl on github.
  • I am rvliohk (https://keybase.io/rvliohk) on keybase.
  • I have a public key ASDwMOeuAu4UmGFk6WuwwizzKdAwFDtQ3IT9NP8YuwrG9Qo

To claim this, I am signing this object:

@rvl
rvl / keybase.md
Created Feb 13, 2018
Keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am rvl on github.
  • I am rvl (https://keybase.io/rvl) on keybase.
  • I have a public key whose fingerprint is 6051 06FA 9CD6 D237 F6E0 8517 E8E4 A1E5 7778 A1B6

To claim this, I am signing this object:

@rvl
rvl / git-pushing-multiple.rst
Created Feb 9, 2016
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.
View git-pushing-multiple.rst

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

View test-docker.nix
# How to build docker images (NIX_PATH and hydra cache required when building off master branch)
# export NIX_PATH=$HOME/dev
# nix-build --option extra-binary-caches http://hydra.nixos.org/ test-docker.nix | xargs -n1 docker load -i
with import <nixpkgs> {};
rec {
# 1. basic example
bash = dockerTools.buildImage {
name = "bash";
View virgin_data_balance.py
#!/usr/bin/python3
#
# virgin_data_balance.py
#
# Checks how much data you have used on your Virgin Mobile (Australia)
# sim card.
#
# Usage: ./virgin_data_balance.py phone_number pin_code
#
# Can also be used as a CGI script on your web server.
You can’t perform that action at this time.