Skip to content

Instantly share code, notes, and snippets.

View ratnose's full-sized avatar

ratnose ratnose

  • Sweden
View GitHub Profile
@artizirk
artizirk / nginx.conf
Last active February 26, 2024 09:38
Nginx config for scaling matrix synapse server via workers
# Matrix Synapse workers example config
# backends
upstream synapse_master {
server 192.19.18.12:38008;
}
upstream synapse_federation {
server 192.19.18.12:8083;
}
@jeetelongname
jeetelongname / autostart
Created April 25, 2020 11:33
Herbstluftwm config
#!/bin/bash
# __
# __ _____ ___ / /______
# / / / / _ \/ _ \/ __/ ___/
# / /_/ / __/ __/ /_(__ )
# \__, /\___/\___/\__/____/
# /____/
# _____
# _________ ____ / __(_)___ _
# / ___/ __ \/ __ \/ /_/ / __ `/
@ferdinandosimonetti
ferdinandosimonetti / https2http.haproxy.cfg
Created October 18, 2018 13:09
HAProxy reverse proxy configuration with HTTPS frontend and HTTP backend
global
log 127.0.0.1 local2
maxconn 2048
tune.ssl.default-dh-param 2048
defaults
mode http
log global
option httplog
option dontlognull
@dylanmckay
dylanmckay / facebook-contact-info-summary.rb
Last active March 12, 2024 22:46
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# NOTE: Requires Ruby 2.1 or greater.
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
@lichti
lichti / letsencrypt-proxmox.md
Last active September 12, 2022 20:14
Proxmox with letsencrypt ssl
git clone https://github.com/certbot/certbot /opt/letsencrypt
ln -s /opt/letsencrypt/certbot-auto /usr/bin/certbot
certbot certonly --expand --agree-tos --text --non-interactive \
 --standalone \