Skip to content

Instantly share code, notes, and snippets.

@paulfitz
paulfitz / docker-compose.yml
Created March 31, 2022 15:47
Running Grist with traefik-forward-auth
# You need to set PROVIDERS_GOOGLE_CLIENT_ID, PROVIDERS_GOOGLE_CLIENT_SECRET,
# and to set DOMAIN and EMAIL in environment
# (e.g. DOMAIN=selfhosted.example.com EMAIL=example@getgrist.com docker compose up)
# The EMAIL will be used in a letsencrypt certificate, and will be the only user able to log in initially.
version: '3'
services:
reverse-proxy:
# Use Traefik for routing and certificate handling.
@qinqon
qinqon / alpine-cloud-init-vm-kvm.sh
Created March 30, 2022 09:44
alpine + cloud-init + kvm
#!/usr/bin/env bash
set -xe
debug="false"
wait="true"
time2wait=3
CLOUD_IMG_FOLDER="$HOME/Documents/isos"
POOL_FOLDER="/var/lib/libvirt/images"
@zarelit
zarelit / configuration.nix
Created December 8, 2021 16:15 — forked from bitonic/configuration.nix
NixOS configuration for a remote ZFS server on Hetzner
# Full NixOS configuration for a ZFS server with full disk encryption hosted on Hetzner.
# See <https://mazzo.li/posts/hetzner-zfs.html> for more information.
{ config, pkgs, ... }:
let
# Deployment-specific parameters -- you need to fill these in where the ... are
hostName = "...";
publicKey = "...";
# From `ls -lh /dev/disk/by-id`
@upsetbit
upsetbit / my-github-stars.md
Last active March 21, 2024 03:02
GitHub Stars
@SachaG
SachaG / 1_dataset.md
Last active August 22, 2022 02:42
State of CSS 2021 Freeform Data

State of CSS 2021 Preliminary Dataset

This is a preliminary dataset (after ~2 weeks of running the survey) for the 2021 State of CSS survey.

It contains results to four freeform (textfield) questions:

  • Other CSS pain points* (aspects of CSS you struggle with the most)
  • What do you feel is currently missing from CSS?*
  • Other accessibility features you usually implement*
  • Browser incompatibilities (Are there any CSS features you have difficulties using because of differences between browsers?)
@gdamjan
gdamjan / README.md
Last active January 11, 2024 09:07
Install a NixOS for a systemd-nspawn container … from podman

Install

Run a nix container with podman, with the container destination mounted as /mnt:

DEST=~/containers/nixos
mkdir -p $DEST/{dev,proc,etc/nixos}

podman run -v $DEST:/mnt -it --rm --cap-add SYS_ADMIN docker.io/nixos/nix:latest
@bitonic
bitonic / configuration.nix
Last active May 8, 2024 22:38
NixOS configuration for a remote ZFS server on Hetzner
# Full NixOS configuration for a ZFS server with full disk encryption hosted on Hetzner.
# See <https://mazzo.li/posts/hetzner-zfs.html> for more information.
{ config, pkgs, ... }:
let
# Deployment-specific parameters -- you need to fill these in where the ... are
hostName = "...";
publicKey = "...";
# From `ls -lh /dev/disk/by-id`
@derhuerst
derhuerst / list.md
Last active July 17, 2023 12:55
VPS price & performance comparison
@tothi
tothi / usbgadget_razer.sh
Created August 22, 2021 09:52
Razer USB gadget on Android for Local Privilege Escalation on Windows
# MINIMAL USB gadget setup using CONFIGFS for simulating Razer Gaming HID
# devices for triggering the vulnerable Windows Driver installer
# credits for the Windows Driver install vuln: @j0nh4t
#
# https://twitter.com/j0nh4t/status/1429049506021138437
# https://twitter.com/an0n_r0/status/1429263450748895236
#
# the script was developed & tested on Android LineageOS 18.1
@rorycl
rorycl / ed25519genandsave.go
Created June 5, 2021 16:14
Generate ed25519 keys in PEM format using Go
// RCL 05 June 2021
/*
verify with `openssl pkey -in <privatekey>` or `openssl pkey -in <privatekey> -pubout`
the latter should match the publickey
*/
package main
import (