Skip to content

Instantly share code, notes, and snippets.

@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"
@quangIO
quangIO / wezterm.lua
Created March 15, 2022 15:08
My wezterm config with tmux-like bindings
local wezterm = require 'wezterm';
return {
color_scheme = "Dracula",
-- colors = {
-- background = "#0c0e14",
-- },
window_decorations = "NONE",
font = wezterm.font("Iosevka"),
font_size = 10.0,
-- dpi = 192.0,
@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`
@dend
dend / cross-reference-full.gql
Last active August 25, 2024 17:19
Find cross-referenced issues
{
repository(owner: "microsoft", name: "powertoys") {
issues(first: 100, states: OPEN) {
totalCount
pageInfo {
startCursor
hasNextPage
endCursor
}
edges {
@upsetbit
upsetbit / my-github-stars.md
Last active July 29, 2025 10:25
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 November 19, 2024 12:20
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 June 14, 2025 07:21
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 / 10-geekbench-6.md
Last active June 4, 2025 04:09
VPS price & performance comparison

Geekbench 6

product notes price (incl. VAT) dedic.? cores RAM SSD Yabs Geekbench ST Geekbench MT Geekbench version operating system date of benchmark
Hetzner CPX11 4,58€/m no 2 2GB 40GB - 1476/1496 2714/2732 Geekbench 6.3.0 Build 603408 (rosedale-main-build bca065a7d9) Ubuntu 22.04 2024-07-02
Hetzner CPX21 8,39€/m no 3 4GB 80GB - 1484/1474 3862/3792 Geekbench 6.3.0 Build 603408 (rosedale-main-build bca065a7d9) Ubuntu 22.04 2024-07-02
Hetzner CPX31 15,59€/m
@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