This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -exec stat --format '%A|%U:%G|%F|%n' {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed '1!G;h;$!d' "/boot/config/plugins/dockerMan/userprefs.cfg" | while read line || [[ -n $line ]]; | |
do | |
# do something with $line here | |
tmp=${line#*\"} # Remove everything up to and including first = | |
container_name=${tmp::-1} | |
echo "Stopping $container_name" | |
docker stop -t 30 $container_name | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Map Name="Convergence (public)" Length="180" Start="90" id="wtcon"> | |
<Event Name="Convergence" Length="10" Color="8042C8D7"/> | |
<Event Name="" Length="170" Color="008AEAF4"/> | |
</Map> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Google Crap Filter | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Highlight bad sites in Google search results. | |
// @author carcigenicate | |
// @match https://www.google.com/search* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
from libnacl import crypto_secretbox_KEYBYTES as KEYLEN | |
from libnacl.secret import SecretBox | |
def decrypt_payload(payload): | |
key = 'abcedf'.encode('utf-8') | |
key = key.ljust(KEYLEN, b'\0') | |
ciphertext = base64.b64decode(payload) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.apps import apps | |
from django.contrib import admin | |
from django.contrib.admin.sites import AlreadyRegistered | |
app_models = apps.get_app_config("app-name-here").get_models() | |
for model in app_models: | |
try: | |
admin.site.register(model, admin.ModelAdmin) | |
except AlreadyRegistered: # pragma: no cover | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# firefox userChrome.js changes | |
/*** Tighten up drop-down/context/popup menu spacing (8 Sep 2021) | |
toolkit.legacyUserProfileCustomizations.stylesheets = True | |
***/ | |
menupopup:not(.in-menulist) > menuitem, | |
menupopup:not(.in-menulist) > menu { | |
padding-block: 2px !important; | |
min-height: unset !important; /* v92.0 - for padding below 4px */ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /mnt/user/repos/ | |
find . -type d -exec chmod 755 {} \; | |
find . -type f -exec chmod 755 {} \; | |
find objects/ -type d -exec chmod 755 {} \; | |
find info/ -type f -exec chmod 644 {} \; | |
find refs/ -type f -exec chmod 644 {} \; | |
find objects/ -type f -exec chmod 444 {} \; | |
find objects/info/ -type f -exec chmod 644 {} \; | |
chown -R iarp:1000 ./ | |
chmod 644 HEAD config description |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# {JRE_HOME}\lib\security\java.security and remove RC4 from jdk.tls.disabledAlgorithms | |
echo -n 'Host: ' | |
read drachost | |
echo $drachost | |
echo -n 'Username: ' | |
read dracuser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WIREGUARD_INTERFACE=wg1 | |
WIREGUARD_LAN=10.253.2.0/24 | |
MASQUERADE_INTERFACE=eth0 | |
iptables -t nat -I POSTROUTING -o $MASQUERADE_INTERFACE -j MASQUERADE -s $WIREGUARD_LAN | |
iptables -N WIREGUARD_INPUT | |
iptables -N WIREGUARD_DROP_WG0_INPUT | |
iptables -A INPUT -j WIREGUARD_INPUT |
NewerOlder