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
/* Edited by IntelligentComment | |
/* Moderator tag */ | |
.thing .tagline .author.friend { | |
padding: 1px 8px; | |
border-radius: 10px; | |
background-color: red; | |
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 -ex | |
while read p; do | |
echo -e "\n$p ->" | |
echo $p | awk '{ print $2 }' | # Only the actual key data without prefix or comments | |
base64 -d | # decode as base64 | |
sha256sum | # SHA256 hash (returns hex) | |
awk '{ print $1 }' | # only the hex data | |
xxd -r -p | # hex to bytes | |
base64 # encode as base64 | |
done < /root/.ssh/authorized_keys |
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 | |
DUPLICITY="/usr/local/bin/duplicity" | |
KEY="YOUR-GPG-KEY-HERE" | |
DEST="b2://something@somebucket/" # or whatever other destination you fancy | |
test -x "$DUPLICITY" || exit -1 | |
. /root/.duplicity # GPG passphrase goes here for automatic encryption | |
# /root/.duplicity content like: | |
# export PASSPHRASE="my really secure password" |
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
# Install in to ~/.local/share/kservices5/vscodehere.desktop | |
[Desktop Entry] | |
Type=Service | |
X-KDE-ServiceTypes=KonqPopupMenu/Plugin | |
MimeType=inode/directory; | |
Actions=openVSCodeHere; | |
X-KDE-AuthorizeAction=shell_access | |
[Desktop Action openVSCodeHere] |
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/sh -e | |
# | |
# rc.local | |
# | |
# This script is executed at the end of each multiuser runlevel. | |
# Make sure that the script will "exit 0" on success or any other | |
# value on error. | |
# | |
# In order to enable or disable this script just change the execution | |
# bits. |
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 | |
# See ssh -Q cipher (on both machines) | |
CIPHERS="[email protected] aes128-ctr aes192-ctr aes256-ctr [email protected] [email protected]" | |
# Destination server (data will be piped to /dev/null) | |
DESTINATION="[email protected]" | |
for cipher in ${CIPHERS} ; do | |
for i in 1 2 3 ; do |
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
""" | |
made by Sharky - https://sharky.pw/ | |
""" | |
import os, re, shutil | |
from requests import get | |
r = get('http://api.steampowered.com/ISteamApps/GetAppList/v2') | |
apps = r.json()['applist']['apps'] |
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 -e | |
cat /var/lib/misc/dnsmasq.leases | awk '{split($0,a," "); if (a[4] != "*") { print a[3],"\t",a[4]}}' |
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
apt install -y pbzip2 pigz pixz | |
for f in gzip gunzip gzcat; do | |
ln -sv "`which pigz`" "/usr/local/bin/$f" | |
done | |
for f in bzip2 bunzip bzcat; do | |
ln -sv "`which pbzip2`" "/usr/local/bin/$f" | |
done | |
for f in xz xzcat; do |
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 -e | |
# pro-tip: This script is designed to be called from cron.daily and will only output a short report, | |
# which can be mailed to you if you add an email for root in /etc/aliases - | |
# or it can be called directly: './duplicity_backup.sh -vi' - which will show the changes for each file | |
DUPLICITY="/usr/local/bin/duplicity" | |
KEY="your-gnupg-keyid-here" | |
DEST="b2://your-b2-account-id:your-b2-application-key@your-b2-bucket/" |