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 / block.txt
Last active November 29, 2023 17:35
Block List Demo
ipchicken.com
downloadmoreram.com
neopets.com
tjll.net
@tylerjl
tylerjl / init.el
Created October 29, 2023 16:57
impatient-mode example
(use-package impatient-mode
:general
(:states 'normal
:keymaps 'markdown-mode-map
",p" 'tjl/md-preview-mode)
:commands impatient-mode)
(define-minor-mode tjl/md-preview-mode
"Toggles live markdown preview using impatient-mode"
:init-value nil
@tylerjl
tylerjl / sysdiff.sh
Created November 4, 2022 18:23
Live-diff a changed flake nixosConfigration
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
export SHELL=`which bash`
function usage() {
cat <<EOF
Usage: ${0} <host>
@tylerjl
tylerjl / example.hs
Created February 3, 2021 03:20
Experimenting with pluck
couldFail :: (MonadHttp m, OneOf err '[A, B]) => ExceptT err m [Key SomeEntity]
handleStuff :: Handler ()
handleStuff = do
result <- runExceptT $ do
action <- catchOneT (catchOneT couldFail
\(A _) -> $(logWarn) "Handling an A failure" >> pure mempty)
\(B _) -> $(logWarn) "Handling a B failure" >> pure mempty
return action
case result of
@tylerjl
tylerjl / Dockerfile
Created February 24, 2019 20:40
ARM-compatible Kibana Dockerfile for use in https://github.com/elastic/kibana-docker
# This Dockerfile was generated from the template at templates/Dockerfile.j2
FROM node:8.11.4
EXPOSE 5601
# Add Reporting dependencies.
RUN apt update && apt install -y fontconfig && rm -rf /var/lib/apt/lists/*
WORKDIR /usr/share/kibana
# Set gid to 0 for kibana and make group permission similar to that of user
@tylerjl
tylerjl / .gitignore
Last active June 22, 2018 21:36
puppet-elasticsearch Vagrantfile
.vagrant
@tylerjl
tylerjl / example-app.yaml
Created August 14, 2017 20:35
Example kubernetes-vault with vaultenv config
apiVersion: v1
kind: ConfigMap
metadata:
name: logstash-secrets
data:
logstash.secrets: |
ELASTICSEARCH_USERNAME=elasticsearch/production#username
ELASTICSEARCH_PASSWORD=elasticsearch/production#password
---
apiVersion: v1
@tylerjl
tylerjl / .config
Created July 21, 2017 02:25
Mavell 4.4.52 tree config
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.4.52 Kernel Configuration
#
CONFIG_ARM64=y
CONFIG_64BIT=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_MMU=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
@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
@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'