Skip to content

Instantly share code, notes, and snippets.

@floatzeI
floatzeI / update-gitea.sh
Created December 11, 2021 14:29
update gitea to latest 1.x version
latest="$(curl https://api.github.com/repos/go-gitea/gitea/releases/latest)";
#echo $latest;
if [[ "$latest" =~ (https:\/\/github\.com\/go-gitea\/gitea\/releases\/download\/v1\.[0-9]+\.[0-9]+\/gitea-([0-9.]+)-linux-amd64) ]]; then
echo "$BASH_REMATCH"
url=$BASH_REMATCH;
echo $url;
e="$(wget $url)";
mv ~/gitea-1* ~/gitea;
systemctl stop gitea;
mv -f /usr/local/bin/gitea /usr/local/bin/gitea_old;
#!/bin/sh
# Modified version of this: https://github.com/Paul-Reed/cloudflare-ufw/blob/master/cloudflare-ufw.sh
# Apache 2.0 - https://github.com/Paul-Reed/cloudflare-ufw/blob/master/LICENSE
# This is edited to automatically delete old CF ips before adding new ones, instead of the original script, which just adds new CF ips while ignoring old ones.
curl -s https://www.cloudflare.com/ips-v4 -o /tmp/cf_ips
echo "" >> /tmp/cf_ips
curl -s https://www.cloudflare.com/ips-v6 >> /tmp/cf_ips
@floatzeI
floatzeI / data.json
Last active March 13, 2021 21:15
Regex for bad omegle questions
{
"version": 1,
"regex": {
"value": "selected to enter a chatroom|to enter the room|followers on twitter|roving|wandering chatroom|3letter|only(| )fans|\\[\\i\\]|snep|the fun app|kigg|shnap|piks|trdn|sneipcheit|3letterapp|discord|K\\-|ΚiΚ|𝑭|♫|sn ap|kap|selling content|q i q|qiq|chat community|bored guy|KiK|snap|kik|dick|girl|female|male|kwik|rate|rat(ing|)|boob|ass|no (brackets|dot|\\.|\\()|k app|venmo|ashapp|paypal|nude|telegram|tele(.|)gram|k.k|slut|bimbo|horny|snpcht|dropbox|rape|beastiality|db|cock|kiq|cp|kapp|porn|k user|sext|BrettFromFlorida|on the k|n\\.udes|kioq|incel|hmu|come make it lit|nigg(er|a)|cum|ddlg|nsfw|dildo|sissy|without (\\(\\)|\\.)|t\\.rade|hentai|ladies|s(\\/|) app|k(\\/|) app|whore|dom|sub|grpchat|gallery|kay|scc|3 letter|roulette|inch|snatchap",
"flags": "i"
}
}