Skip to content

Instantly share code, notes, and snippets.

@diegofcornejo
diegofcornejo / README.md
Created April 11, 2024 06:21
Elasticsearch: Snapshot and Restore

Create repository for snapshots

  • The location is the path where the snapshots will be stored, this path need to be set in the elasticsearch.yml file in the path.repo property
  • example: path.repo: ["/usr/share/elasticsearch/backup"]
  • After setting the path.repo property in the elasticsearch.yml file, restart the elasticsearch service
curl -XPUT -k -u elastic:changeme "https://localhost:9200/_snapshot/repository_backups" -H 'Content-Type: application/json' -d '{
  "type": "fs",
  "settings": {
    "location": "/usr/share/elasticsearch/backup"
 }
@mattwright324
mattwright324 / channels.txt
Last active March 15, 2024 03:32
yt-channel-resolver
https://www.youtube.com/@90sFilmyGaane
https://www.youtube.com/@AASTIKSpiritualSecrets
https://www.youtube.com/@acousticsound
https://www.youtube.com/@acousticsound5879
https://www.youtube.com/@actiondhamaka
https://www.youtube.com/@ActionHeroes
https://www.youtube.com/@ActionHits
https://www.youtube.com/@adityamovies
https://www.youtube.com/@AdkGujaratiProduction
https://www.youtube.com/@AkkNedlyamenya
@BadMagic100
BadMagic100 / i2cpp_ghidra.md
Last active August 1, 2025 18:02
Instructions to get a useful decompilation out of an il2cpp game. Or, "I spent hours to trial and error so hopefully you won't have to"

Decompiling IL2CPP Games with Il2CppDumper and Ghidra

This guide will walk through how to decompile/reverse engineer IL2CPP games for modding usage.

Note: expect this entire process to take upwards of an hour. Have something ready to do on the side while waiting for processing to finish.

Prerequisites

  1. Download Il2CppDumper
@alexgurrola
alexgurrola / install-nginx-1.25.2.sh
Last active February 7, 2025 15:47
ubuntu: compile and install nginx 1.25.2
#!/bin/bash
# NOTE: This requires openssl to be installed via https://gist.github.com/alexgurrola/db0736378d565bab3b2e35a66e7d9e50 to provide the necessary sources to install nginx with the latest openssl
# usage: wget https://gist.githubusercontent.com/alexgurrola/4f7fc9a317a68a3895858e24c83ea437/raw/install-nginx-1.25.2.sh && chmod +x install-nginx-1.25.2.sh && ./install-nginx-1.25.2.sh
# display current version
nginx -V
# install prerequisites
sudo apt update
@Drallas
Drallas / High Available Pi-hole failover cluster using Keepalived and Orbital Sync.md
Last active July 11, 2025 17:29
High Available Pi-hole failover cluster using Keepalived and Orbital Sync
@elico
elico / .env
Created June 18, 2023 21:01
Helper script for RouterOS GeoIP managment
USERNAME="admin"
PASSWORD="testAdmin"
#!/bin/sh
export DEBIAN_FRONTEND=noninteractive
apt update || exit 1
apt -y install libnss-ldapd libpam-ldapd ldap-utils || exit 1
echo '
uid nslcd
gid nslcd
uri ldap://[QNAP(LDAPサーバ)のIPアドレス]/
base dc=some,dc=domain,dc=jp←QNAPの設定からコピー
@PyroSA
PyroSA / fan.c
Last active June 21, 2024 22:45
OrangePi5 PWM Fan Control
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <wiringPi.h>
#include <softPwm.h>
#define PIN 10
#define RANGE 100
@jfeilbach
jfeilbach / ubuntu_22.04_motd.md
Last active July 24, 2025 11:42
Make Ubuntu 22.04 less annoying. Remove ESM Ubuntu Advantage

Ubuntu 22.04 Annoyances

Here are a few collected ways I like to customize Ubuntu 22.04 servers. I used to love Ubuntu, but I hate auto updates and snaps. They also put ads and other usless ads diguised as "news" in MOTD. ESM FUD is spread throughout the OS including simple apt functions. You do not need ESM and thus Ubuntu 22.04 has become super annoying. unattended-upgrade is an automatic installation of security (and other) upgrades without user intervention. Consider the ramifications of disabling this service.

Disable unattended upgrades

The Unattended Upgrades feature is enabled by default and it runs at system boot without the user's permission. The configuration is stored in /etc/apt/apt.conf.d/20auto-upgrades

Disable: sudo dpkg-reconfigure unattended-upgrades then a TUI will come up, select "No"

This will not permantently disable the function. After an update it will be enabled. In the file /etc/apt/apt.conf.d/20auto-upgrades change these values from 1 to 0. Even doing this it will

@aeongdesu
aeongdesu / awesome-osu.md
Last active December 30, 2024 16:26
awesome osu projects