Skip to content

Instantly share code, notes, and snippets.

@Tftlegal
Tftlegal / docker-compose.yml
Created February 10, 2025 16:21 — forked from mrzapp/docker-compose.yml
NextCloud setup for Docker (docker-compose) with Collabora, NGINX, Redis and Postgres
version: "3.4"
networks:
example-com--postgres: ~
example-com--redis: ~
services:
# PostgreSQL
postgres:
container_name: example-com--postgres
@Tftlegal
Tftlegal / proxmox-natipv4-pubhetunnel.conf
Created January 9, 2025 14:13 — forked from shiwildy/proxmox-natipv4-pubhetunnel.conf
Proxmox configuration with Dual-Stack Networking, IPv4 NAT and Public IPv6 via Hurricane Electric Tunnel Broker
auto lo
iface lo inet loopback
auto he-ipv6
iface he-ipv6 inet6 tunnel
address xxxx:xxx:xx:xxx::2/128
gateway xxxx:xxx:xx:xxx::1
mode sit
endpoint xxx.xxx.xxx.xxx
local xxx.xxx.xxx.xxx
@Tftlegal
Tftlegal / arch-linux-installation.md
Created December 13, 2023 01:09 — forked from jirutka/arch-linux-installation.md
My notes for installing Arch Linux on encrypted Btrfs with UEFI Secure Boot on ThinkPad T14s

Arch Linux Installation

1. Securely erase drive

cryptsetup open --type plain -d /dev/urandom /dev/nvme0n1 to-be-wiped
dd if=/dev/zero of=/dev/mapper/to-be-wiped bs=1M status=progress
cryptsetup close to-be-wiped
wipefs -a /dev/nvme0n1
@Tftlegal
Tftlegal / analytics.conf
Last active December 13, 2023 01:06 — forked from jirutka/analytics.conf
Add Google Analytics tracking code to HTML via nginx
#
# Add Google Analytics tracking code to HTML response
#
# Usage:
# set $tracking_id 'G-GEJQX7TP2Z';
# include snippets/analytics.conf;
#
# It needs nginx compiled with option --with-http_sub_module.
# Uses optimized GA code from: http://mathiasbynens.be/notes/async-analytics-snippet
#
@Tftlegal
Tftlegal / Remove-Uninstall Asterisk
Created July 21, 2022 22:51 — forked from ronokdev/Remove-Uninstall Asterisk
Remove-Uninstall Asterisk
killall -9 safe_asterisk
killall -9 asterisk
rm -rf /etc/asterisk
rm -rf /var/log/asterisk
rm -rf /var/lib/asterisk
rm -rf /var/spool/asterisk
rm -rf /usr/lib/asterisk
@Tftlegal
Tftlegal / osx-for-hackers.sh
Created July 21, 2022 22:44 — forked from andrius/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox... #macos #setup #dotfiles
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'