Skip to content

Instantly share code, notes, and snippets.

💭
destroy all computers

Tyler Langlois tylerjl

💭
destroy all computers
Block or report user

Report or block tylerjl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View hashmark.rb
#!/usr/bin/env ruby
require 'digest/sha1'
require 'digest/sha3'
require 'digest/md5'
require 'bcrypt'
require 'securerandom'
require 'benchmark'
require 'pp'
require 'json'
View gist:11130539
#!/usr/bin/env ruby
require 'pp'
require 'faraday'
require 'base64'
require 'digest/sha1'
require 'nokogiri'
require 'json'
class HackingError < StandardError ; end
View gist:fd690dcaf1ed9558349a
$ curl sensu.domain:4567/events
[{"id":"0506ec61-6dbd-44e3-a208-c415edd591aa","client":"sensu.domain","check":"check_puppet_last_run","occurrences":1,"action":"create"}]
$
View Git pre-receive yaml check
#!/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
View rip-dvd.sh
#!/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 \
View 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 Jun 19, 2016
Attempting to add a python package dependency via derivation override.
View configuration.nix
...
nixpkgs.config = {
packageOverrides = pkgs: rec {
matrix-synapse = pkgs.stdenv.lib.overrideDerivation pkgs.matrix-synapse (oldAttrs : {
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ pkgs.pythonPackages.psycopg2;
});
};
};
View stdout
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 Apr 3, 2017
CentOS 7 puppet-elasticsearch test env
View Vagrantfile
# -*- 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 Jul 21, 2017
Arch Linux ARM 4.12.0 kernel .config
View .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
You can’t perform that action at this time.