Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

#bad users/computers/hacks/warez/shit

iptables -A INPUT -s 188.166.242.233 -j DROP
iptables -A INPUT -s 188.166.217.243 -j DROP
iptables -A INPUT -s 174.138.30.38 -j DROP
iptables -A INPUT -s 165.22.247.172 -j DROP
iptables -A INPUT -s 167.71.195.239 -j DROP
iptables -A INPUT -s 139.59.247.248 -j DROP
iptables -A INPUT -s 139.59.235.100 -j DROP
iptables -A INPUT -s 165.22.251.215 -j DROP
@bruvv
bruvv / fixsleep.md
Last active August 9, 2020 15:38
Fix iMac with fusion drives not sleeping

Create bootscript.sh:

#!/bin/bash
# make sure to run this program as root and make it run at boot
ps -ef | grep UserEventAgent | grep -v grep | awk '{print $2}'| sudo xargs kill sleep 15
ps -ef | grep UserEventAgent | grep -v grep | awk '{print $2}'| sudo xargs kill sleep 15
ps -ef | grep UserEventAgent | grep -v grep | awk '{print $2}'| sudo xargs kill sleep 15
@bruvv
bruvv / gist:3075b64b0aa90139ab1be3223c367ccd
Last active November 29, 2020 00:04
synology lets encrypt wildecard auto renewal.sh
#!/bin/bash
# 1. replace "site.nl" with your domain name
# 2. schedule this script to be run once per three months in Task Scheduler
echo "======================================================================"
echo "Certificate Renewal"
echo "======================================================================"
./acme.sh --force --renew -d *.site.nl --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please --log
echo ""
@bruvv
bruvv / chromecast.xml
Created March 30, 2018 13:26
Chromecast Ultra profile for plex 2018 (4k support)
<?xml version="1.0" encoding="utf-8"?>
<Client name="Chromecast">
<TranscodeTargets>
<VideoProfile protocol="http" container="matroska" codec="h264,h265,hevc" audioCodec="eac3,ac3,aac,mp3" context="streaming" />
<VideoProfile protocol="http" container="mkv" codec="h264,h265,hevc" audioCodec="eac3,ac3,aac,mp3" context="streaming" />
<VideoProfile protocol="http" container="mp4" codec="h264,h265,hevc" audioCodec="eac3,ac3,aac,mp3" context="streaming" />
<MusicProfile container="matroska" codec="mp3" />
<MusicProfile container="mkv" codec="mp3" />
<PhotoProfile container="jpeg" />
<SubtitleProfile container="ass" codec="ass" />
server:
module-config: "subnetcache validator iterator"
chroot: "/usr/local/etc/unbound"
directory: "/usr/local/etc/unbound"
username: "unbound"
port: 5353
do-ip4: yes
do-ip6: no
do-udp: yes
do-tcp: yes
@bruvv
bruvv / linux_commands.md
Last active April 9, 2021 16:45
Linux wordlist commands for WPA/WPA2 hash

Merging

rm -f stage*
rm -vf CREADME CHANGELOG* readme* README* stage*
echo "Number of files:" `find . -type f | wc -l`
cat * > tmp/aio-"${PWD##*/}".lst 
rm -f *.txt && mv tmp/aio-"${PWD##*/}".lst ./
docker ps -q | xargs -n 1 docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} {{ .Name }}' | sed 's/ \// /'
@bruvv
bruvv / run.py
Created July 18, 2021 10:39
download csv convert to HTML
import os
import requests
from datetime import datetime
# set environment variables
os.environ['USERNAME'] = 'python-demo'
os.environ['PASSWORD'] = 'claw30_bumps'
city = 'http://rachel.maykinmedia.nl/djangocase/city.csv'
hotel = 'http://rachel.maykinmedia.nl/djangocase/hotel.csv'
#!/bin/bash
location=<your backup location>
date=`date "+%Y%m%d"`
for name in $(docker ps --format '{{.Names}}'); do
#Backup location per container
backup_location=$location"/"$name
#Make the directory when it doesn't exist
@bruvv
bruvv / KPN IPV6 with UDM (pro).md
Last active September 21, 2021 10:43
Fix KPN ipv6 with UDM (pro)