Skip to content

Instantly share code, notes, and snippets.

View tioan's full-sized avatar

Mattheus tioan

View GitHub Profile
@tetele
tetele / README.md
Last active January 22, 2025 06:49
ESPHome config - Onju Voice/Home as a voice assistant satellite in Home Assistant
@reimundklain
reimundklain / hetzner-dedicated-wipe-and-install-nixos-luks-raid-lvm.sh
Last active December 14, 2023 17:55
Insall NixOS form hetzner rescue system with LUKS RAID1 LVM
#!/usr/bin/env bash
# Installs NixOS on a Hetzner server, wiping the server.
#
# This is for a specific server configuration; adjust where needed.
#
# Prerequisites:
# * Update the script wherever FIXME is present
#
# Usage:
@psuet
psuet / shipping.md
Last active March 30, 2025 16:55
Paketdienste Reseller

Paketversand

Alle Fett gedruckten Angebote sind der Erfahrung nach die günstigsten für kleine Mengen und bestimmte Pakete

mit Login (ohne Mindestmenge; teilw. explizit nur für Gewerbe; ohne Nachweis)

@Biont
Biont / sway-launcher-desktop.sh
Last active November 17, 2024 09:10
sway-launcher-desktop
#!/usr/bin/env bash
# terminal application launcher for sway, using fzf
# Based on: https://gitlab.com/FlyingWombat/my-scripts/blob/master/sway-launcher
shopt -s nullglob
if [[ "$1" == 'describe' ]]; then
shift
if [[ $2 == 'command' ]]; then
title=$1
readarray arr < <(whatis -l "$1" 2>/dev/null)
@lizthegrey
lizthegrey / attributes.rb
Last active March 27, 2025 02:16
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
@mohamedadaly
mohamedadaly / bw_export_kp.py
Last active April 14, 2024 03:57
Export Bitwarden to KeePass 2 XML format
#!/usr/bin/python
from __future__ import print_function
import base64
import commands
import json
import sys
import uuid
import xmltodict
@candlerb
candlerb / addresses.py
Last active April 2, 2024 00:07
Netbox report to check for missing Primary IP Addresses
from extras.reports import Report
from dcim.models import Device
from virtualization.models import VirtualMachine
from ipam.constants import *
from ipam.models import IPAddress, Prefix
LOOPBACK_ROLES = [
IPADDRESS_ROLE_LOOPBACK,
IPADDRESS_ROLE_ANYCAST,
IPADDRESS_ROLE_VIP,
@mrbar42
mrbar42 / README.md
Last active February 20, 2025 03:27
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
@frostschutz
frostschutz / archlinux-initcpio-keygen-hook.sh
Last active January 12, 2019 12:59
ArchLinux self-decrypting server keygen hook
HOOKS="... keygen encrypt ..."
# /etc/initcpio/hooks/keygen
LUKS="/dev/sdxy"
run_hook() {
# Produce key without newlines.
echo -n $(
(
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.