Skip to content

Instantly share code, notes, and snippets.

View rvl's full-sized avatar

Rodney Lorrimar rvl

View GitHub Profile
@rvl
rvl / keybae.md
Created June 27, 2018 14:34
keybase.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 February 13, 2018 13:11
Keybase proof

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 February 9, 2016 11:41
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

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

@rvl
rvl / test-docker.nix
Last active September 28, 2020 23:22
Examples of using nixpkgs PR 11156 https://github.com/NixOS/nixpkgs/pull/11156
# 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";
#!/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.