Skip to content

Instantly share code, notes, and snippets.

View fadenb's full-sized avatar

Tristan Helmich fadenb

View GitHub Profile
@joschi
joschi / graylog_token.txt
Last active September 28, 2023 04:27
Graylog access token login
# Create an access token for user "admin" with name "test-1234"
# POST /users/{username}/tokens/{name}
$ curl -i -u admin:admin -H 'Accept: application/json' -X POST 'http://127.0.0.1:12900/users/admin/tokens/test-1234?pretty=true'
HTTP/1.1 200 OK
X-Graylog-Node-ID: cd03ee44-b2a7-4824-be16-bb7456149dbd
Content-Type: application/json
Date: Mon, 08 Aug 2016 12:12:09 GMT
Content-Length: 139
{
@Profpatsch
Profpatsch / build-go-pkg.sh
Created December 5, 2016 12:46
help with packaging go packages in nix
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p go go2nix
# little script to help with the stupid go packaging
# cd into the dir where you want to have the `default.nix`
# go package name (e.g. github.com/go/is-stupid)
PACKAGE="$1"
# git upstream link
GIT="$2"
@dysinger
dysinger / nixos-encrypted-zfs.sh
Last active March 7, 2023 14:51
How I installed Encrypted ZFS root on NixOS
# MOVED HERE https://gist.github.com/dysinger/2a768db5b6e3b729ec898d7d4208add3
################################################################
################################################################
## ##
## This module now lives in a repository! ##
## https://github.com/dali99/nixos-matrix-modules ##
## ##
## It has a few fixes, and quite a few more features, ##
## like easy workers and automatic nginx config ##
## ##
################################################################
@m-radzikowski
m-radzikowski / script-template.sh
Last active May 4, 2024 04:13
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@fadenb
fadenb / 2023-12-21_Apple_Public_Verification_Code.txt
Created December 21, 2023 12:36
My Apple Contact Key Verification Public Verification Code
APKTIDoLV060B_LpPwpXFQqH8HTJF7CcJHMGGIpfDWOPT1dYGU_g