Skip to content

Instantly share code, notes, and snippets.

View crashangelbr's full-sized avatar

Crash Angel crashangelbr

View GitHub Profile
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
<BuildConfiguration>
<MaxParallelActions>9</MaxParallelActions>
</BuildConfiguration>
</Configuration>
@crashangelbr
crashangelbr / gist:9fd358fdc5bfa7c6dbf2cb7f037cf7a5
Last active October 6, 2021 14:42
IPTables Autostart ArchLinux
iptables=/etc/iptables/iptables.rules && iptables-save > /etc/iptables/iptables.rules && systemctl restart iptables
iptables -I INPUT -s 72.14.196.224 -j DROP
iptables -I INPUT -s 192.168.0.1 -j DROP
iptables -I INPUT -j DROP -s 10.47.192.1
iptables -I INPUT -s 201.6.72.1 -j DROP
iptables -I INPUT -s 201.6.64.196 -j DROP
iptables -I INPUT -s 10.0.0.1 -j DROP
iptables -I INPUT -m string -algo kmp --string "virtua.com.br" -j DROP
https://tokyobreeze.wordpress.com/2015/01/29/install-and-configure-dnscrypt-in-your-router/
There are many reasons why we should use DNSCrypt, probably now more than ever. I deployed DNSCrypt in my OpenWrt router and it was a fairly simple process. This post would outline my steps on installing, configuring and getting DNSCrypt up and running in my router.
Assumptions:
You already have OpenWrt onboard and can ssh into the router.
You (preferably) have LuCI installed and configured.
You router’s IP is 192.168.1.1 (if not, then change 192.168.1.1 in the scripts below with the one of your router).
Installation:
https://raysnotebook.info/computing/disks-erase.html
https://linoxide.com/how-to-fix-repair-bad-blocks-in-linux/
# Install the secure-delete package (sfill command).
# To see progress type in new terminal:
# watch -n 1 df -hm
# Assuming that there is one partition (/dev/sda1). sfill writes to /.
# The second pass writes in current directory and synchronizes data.
# If you have a swap partition then disable it by editing /etc/fstab
# and use "sswap" or similar to wipe it out.
@crashangelbr
crashangelbr / gist:7bdda2473e9a974e9e53c70e681cf618
Created February 25, 2021 11:35
How to Disable Chaos in UE4 26 (WITH_CHAOS Macro)
Physics/PhysicsInterfacePhysX.h
Two things I tried,
Adding
PublicDefinitions.Add("WITH_CHAOS=0");
to build.cs
sudo openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt < /dev/zero > /dev/sd{x}
#!/bin/bash
#sudo rsync -av /var/lib/postgresql /home/amnesia/Workspace/
#sudo mv /var/lib/postgresql/11/main /var/lib/postgresql/11/main.bak
#sudo systemctl start postgresql
#sudo systemctl status postgresql
ln -s /media/elementary/1TB/ ~/Workspace
sudo dpkg -i archives/*.deb
@crashangelbr
crashangelbr / Tails Linux Firewall
Created September 23, 2020 18:10
Open Firewall Tails Linux
iptables -I OUTPUT -p tcp --tcp-flags FIN,SYN,RST,ACK SYN -d 127.0.0.1 --dport 12344 -m owner --uid-owner amnesia -j ACCEPT
for f in $(find . -name "*.crypt") ; do echo $f && aescrypt -p PASSWORD -o "${f/.crypt/}" -d $f ; done