Skip to content

Instantly share code, notes, and snippets.


Lyle Mantooth IslandUsurper

  • @vpsinc
  • Pewee Valley, KY
View GitHub Profile
IslandUsurper / default.nix
Last active August 3, 2020 13:21
LBRY 0.45.1 Nix expression (WIP)
View default.nix
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs {};
pkgs.stdenv.mkDerivation rec {
pname = "lbry";
version = "0.45.1";
src = pkgs.fetchurl {
url = "${version}/LBRY_${version}.deb";
sha256 = "01qa9aqscb6y4p4i5kjn1vd6pfr08wb9062yc21nhndb9blka9pr";

Keybase proof

I hereby claim:

  • I am islandusurper on github.
  • I am islandusurper ( on keybase.
  • I have a public key ASAG0Zto9GNYzTvF6tgz6hLRhzKr8qU7nHTGvh8Ad5rU7wo

To claim this, I am signing this object:

IslandUsurper / example.xml
Created December 22, 2017 13:31
Rust and XML schema
View example.xml
IslandUsurper /
Created September 19, 2016 17:17
Flatten an arbitrarily nested array
def flatten(items):
Flatten a nested list of integers.
Passing a non-list instead returns a list containing the argument.
if not isinstance(items, list):
return [items]
result = []
IslandUsurper / aws.yml
Last active June 15, 2016 18:06
Setting up VPC subnets
View aws.yml
- name: Create VPC
name: {{ Environment }}
state: present
tenancy: default
register: vpc
- name: Create Internet gateway
ec2_vpc_igw: vpc_id={{ }} state=present
IslandUsurper / gist:12723643dddc9315ff71
Created March 10, 2015 18:50
Behat Step to select an autocomplete suggestion
View gist:12723643dddc9315ff71
use Behat\Mink\Extension\ElementNotFoundException;
use Drupal\DrupalExtension\Context\DrupalContext;
class FeatureContext extends DrupalContext {
* @When I select the first autocomplete option for :prefix on the :field field
IslandUsurper /
Created October 8, 2014 01:33
What can I do to prevent borrowing errors?
use std::io::{BufferedReader, File};
use std::num::FromStrRadix;
struct TreeNode<'a> {
value: uint,
left: Option<&'a TreeNode<'a>>,
right: Option<&'a TreeNode<'a>>,