Skip to content

Instantly share code, notes, and snippets.

View tylerjl's full-sized avatar
💭
destroy all computers

Tyler Langlois tylerjl

💭
destroy all computers
View GitHub Profile
@tylerjl
tylerjl / hashmark.rb
Created April 16, 2014 03:19
Hashmark v1.0
#!/usr/bin/env ruby
require 'digest/sha1'
require 'digest/sha3'
require 'digest/md5'
require 'bcrypt'
require 'securerandom'
require 'benchmark'
require 'pp'
require 'json'
#!/usr/bin/env ruby
require 'pp'
require 'faraday'
require 'base64'
require 'digest/sha1'
require 'nokogiri'
require 'json'
class HackingError < StandardError ; end
$ curl sensu.domain:4567/events
[{"id":"0506ec61-6dbd-44e3-a208-c415edd591aa","client":"sensu.domain","check":"check_puppet_last_run","occurrences":1,"action":"create"}]
$
#!/usr/bin/env sh
set -e
RET=0
while read OLD NEW REFNAME ; do
files=$(git ls-tree -r --name-only $NEW)
for file in $files ; do
[[ $file =~ ".yaml" ]] || continue
#!/usr/bin/env zsh
# Script to rip DVDs with as much automatic detection as possible.
# It's a personal script
PATH=${PATH}:${HOME}/.bin
# Define filename
TITLE=${TITLE:=${(C)${$(\
HandBrakeCLI --scan --input /dev/cdrom --previews 2:0 2>&1 \
@tylerjl
tylerjl / keybase.md
Created June 14, 2016 14:38
keybase.md

Keybase proof

I hereby claim:

  • I am tylerjl on github.
  • I am tjl (https://keybase.io/tjl) on keybase.
  • I have a public key ASAFEC_04UXmY2kjjBteyFEVnXihfd7k5ucslhBdzvem8Qo

To claim this, I am signing this object:

@tylerjl
tylerjl / configuration.nix
Last active June 19, 2016 23:59
Attempting to add a python package dependency via derivation override.
...
nixpkgs.config = {
packageOverrides = pkgs: rec {
matrix-synapse = pkgs.stdenv.lib.overrideDerivation pkgs.matrix-synapse (oldAttrs : {
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ pkgs.pythonPackages.psycopg2;
});
};
};
@tylerjl
tylerjl / stdout
Created April 1, 2017 18:19
Nix error
error: The option `systemd.services.docker.restartIfChanged' has conflicting definitions, in `/etc/nixos/configuration.nix' and `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/virtualisation/docker.nix'.
(use ‘--show-trace’ to show detailed location information)
@tylerjl
tylerjl / Vagrantfile
Created April 3, 2017 16:34
CentOS 7 puppet-elasticsearch test env
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Required:
# vagrant: 1.9.3
# vagrant plugin install vagrant-hosts
# vagrant plugin install vagrant-auto_network
require 'tempfile'
@tylerjl
tylerjl / .config
Created July 21, 2017 00:42
Arch Linux ARM 4.12.0 kernel .config
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.12.0-1 Kernel Configuration
#
CONFIG_ARM64=y
CONFIG_64BIT=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_MMU=y
CONFIG_ARM64_PAGE_SHIFT=12
CONFIG_ARM64_CONT_SHIFT=4