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 / shell.qml
Created October 25, 2025 20:12
Quickshell launcher example
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QtQuick.LocalStorage
import Quickshell
import Quickshell.Widgets
Window {
id: launcher
title: "qs-launcher"
{
systemd.user = {
services.niriusd = {
Unit = {
Description = "nirius utilities";
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.nirius}/bin/niriusd";
};
{ lib
, fetchFromSourcehut
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "nirius";
version = "0.4.1";
src = fetchFromSourcehut {
@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