Skip to content

Instantly share code, notes, and snippets.

View ILiedAboutCake's full-sized avatar
🚀
prod go brrr

ILiedAboutCake

🚀
prod go brrr
View GitHub Profile
@ILiedAboutCake
ILiedAboutCake / post-up.sh
Created November 7, 2023 17:40
thrnz/docker-wireguard-pia qbit port forward
echo "Waiting 10 seconds for PIA portforward to finalize..."
sleep 10
export PIA_FORWARD="$(cat /pia-shared/port.dat)"
echo "----- ATTEMPTING QBIT PORT FORWARD (port $PIA_FORWARD) -----"
curl -i -s -X POST \
--header 'Referer: http://localhost:8080' \
--data 'json={"listen_port":'$PIA_FORWARD'}' http://localhost:8080/api/v2/app/setPreferences
@ILiedAboutCake
ILiedAboutCake / docker-compose.yml
Created October 21, 2022 21:29
PiHole + CloudFlare/Google DNS over HTTPS Docker Compose
version: "3.4"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "80:80/tcp"
version: '3.4'
services:
web:
image: nginx:stable-alpine
container_name: dgg-nginx
ports:
- "8080:8080"
volumes:
- ./website:/www/www.destiny.gg/
- ./docker/config/nginx/dgg.conf:/etc/nginx/conf.d/dgg.conf:ro
FROM php:7.4-fpm as base
WORKDIR /www/www.destiny.gg
RUN apt-get update && apt-get install -y \
zip \
git \
cron
RUN docker-php-ext-install pdo_mysql
@ILiedAboutCake
ILiedAboutCake / gophish.ps1
Created March 7, 2018 20:43
Create GoPhish ready CSV import files from AD groups
#USAGE: ./gophish.ps1 "AD_Group_Name"
param([string]$Group)
#check to make sure the group exists
Try
{
$AD = Get-ADGroupMember -Identity $Group -Recursive
}
Catch
{
import requests
import time
GUILD = "265256381437706240"
discordHeaders = {'Authorization':'Bot xxx'}
req = requests.get("https://discordapp.com/api/v6/guilds/"+GUILD+"/bans", headers=discordHeaders)
bans = req.json()
for user in bans:
@ILiedAboutCake
ILiedAboutCake / discord_download_all_emotes.py
Created December 5, 2017 03:35
Download Discord Emotes
import requests
GUILD = "265256381437706240"
discordHeaders = {'Authorization':''}
req = requests.get("https://discordapp.com/api/v6/guilds/"+GUILD+"/emojis", headers=discordHeaders)
memes = req.json()
for meme in memes:
@ILiedAboutCake
ILiedAboutCake / watchpupper.py
Created February 1, 2017 00:25
Minecraft Forge server watchdog with discord integration for informing users and dumping logs
from mcstatus import MinecraftServer #pip install mcstatus https://github.com/Dinnerbone/mcstatus
from subprocess import call
from datetime import datetime
import requests, time, os, glob, sys
discordWebhookPrivate = "https://ptb.discordapp.com/api/webhooks/" #private channel, should be for admins only
discordWebhookPublic = "https://ptb.discordapp.com/api/webhooks/" #public game channel
forgeInstance = "localhost:25565" #forge instance name:port
forgeDirectory = "/minecraft/forge/" #forge folder
LASTCRASH = None
We couldn’t find that file to show.
import threading
import tornado.httpserver
import tornado.websocket
import tornado.ioloop
import tornado.web
import json
import socket
#dem variables
numClients = 0