Skip to content

Instantly share code, notes, and snippets.

View NotYusta's full-sized avatar

Yusta NotYusta

View GitHub Profile
@xtrsyz
xtrsyz / fivem-proxy
Created August 13, 2021 07:26
upstream fivem multi ips
#sudo apt-get install nginx-extras
upstream dejavu {
server 128.99.8.144:30120;
}
proxy_cache_path /nginx/cache/dejavu levels=1:2 keys_zone=dejavu:10m max_size=20g inactive=2h;
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
@thomasbnt
thomasbnt / code_colors_discordjs.md
Last active May 20, 2025 15:16
Code colors for embed discord.js

Here is an updated list of the colors that are currently implemented with a name. To using colors on discord.js, this is a typedef Colors, Colors.Aqua to get the Aqua color.

Name Int value Hex Code
Default 0 #000000
Aqua 1752220 #1ABC9C
DarkAqua 1146986 #11806A
Green 5763719 #57F287
DarkGreen 2067276 #1F8B4C
@k3kdude
k3kdude / DiscordWebhook.java
Created August 17, 2017 15:31
Java DiscordWebhook class to easily execute Discord Webhooks
import javax.net.ssl.HttpsURLConnection;
import java.awt.Color;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.reflect.Array;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@shamil
shamil / mount_qcow2.md
Last active July 14, 2025 21:00
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8