Skip to content

Instantly share code, notes, and snippets.

@aaccioly
aaccioly / deploy_certificates.sh
Last active February 13, 2025 01:43
Script to deploy certificates generated with DNSroboCert to nginx-proxy
#!/usr/bin/env bash
#########################################################################################
# deploy_certificates.sh
#
# Copyright (c) 2023 Anthony Accioly <[email protected]>
#
# SPDX-License-Identifier: MIT
#
# Description:
@jamietre
jamietre / docker-compose.yml
Last active May 22, 2025 10:47
Script to start WSL and bind localhost to WSL IP
# Example docker-compose.yml for plex.
version: "2"
services:
plex:
image: plexinc/pms-docker:plexpass
runtime: nvidia
container_name: "plex"
restart: always
hostname: "MY-PLEX"
volumes:
@TW1920
TW1920 / proxmox-debian-install-MegaCli.md
Last active October 23, 2025 11:45
Install MegaCli on Proxmox or Debian

Install MegaCli on Proxmox or Debian

  1. Install necessary tools apt-get install unzip apt-get install alien
  2. Install necessary lib apt install libncurses5
  3. Download wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
  4. Unzip
@cnrd
cnrd / rclone-backup.sh
Last active October 8, 2024 10:59
Backup script that uses rclone and ZFS snapshots to create incremental backups
#!/usr/bin/env bash
## Configs ##
ZFSSNAPSHOTNAME="rclone"
RCLONECONFIGPATH="/root/.config/rclone/rclone.conf"
BWLIMIT="10M"
TRANSFERS=10
mountSnapshots () {
@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active November 7, 2025 07:48
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@ahmetozlu
ahmetozlu / face_recognizer.py
Last active June 11, 2023 14:03
Detect, Recognize, Crop Faces from Video and Save Them as Images
#----------------------------------------------
#--- Author : Ahmet Ozlu
#--- Mail : [email protected]
#--- Date : 21st September 2017
#----------------------------------------------
import face_recognition
import cv2
import os
import create_csv
@direvus
direvus / Station-status.cs
Created June 20, 2017 08:15
Space Engineers station status script
static string panel1_name = "Text panel office 1";
static string panel2_name = "Text panel office 2";
static string panel3_name = "Text panel office 3";
static string panel4_name = "Text panel office 4";
static string reactors_name = "Reactors";
static string batteries_name = "Batteries";
static string ingot_type = "VRage.Game.MyObjectBuilder_Ingot";
static string ore_type = "VRage.Game.MyObjectBuilder_Ore";
public struct ItemType {
@sergey-dryabzhinsky
sergey-dryabzhinsky / sysctl-proxmox-tune.conf
Last active October 18, 2025 09:03
Most popular speedup sysctl options for Proxmox. Put in /etc/sysctl.d/
###
# Proxmox or other server kernel params cheap tune and secure.
# Try it if you have heavy load on server - network or memory / disk.
# No harm assumed but keep your eyes open.
#
# @updated: 2020-02-06 - more params used, adjust some params values, more comments on params
#
### NETWORK ###
@zulhfreelancer
zulhfreelancer / events.md
Last active January 16, 2023 03:55
How to trigger something ie container start/stop using docker events command?
#! /bin/bash
#! events.sh

docker events --filter 'event=start' --filter 'event=stop' | while read
do
    echo "YO!"
done
#!/usr/bin/env python
from __future__ import print_function
import rospy
from concurrent.futures import ThreadPoolExecutor
class AsyncServiceProxy(object):
"""Asynchronous ROS service proxy