This file contains 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 | |
# this script will set up a bridge in a libvirt host that has network manager | |
if [ -z $1 ] || [ -z $2 ] || [[ $1 = -h ]] || [[ $1 = --help ]]; then | |
echo "Usage: $0 [interface] [activate|deactivate]" | |
exit 1 | |
fi | |
IFACE=$1 |
This file contains 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
#!/usr/bin/python | |
import random | |
import subprocess | |
from itertools import zip_longest | |
import unicodedata | |
def make_fullwidth_char(ch): | |
name = unicodedata.name(ch) | |
if name[:9] == "FULLWIDTH": | |
return ch |
This file contains 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
#With the help of this script you can download parts from the Youtube Video that is live streamed, from start of the stream till the end | |
import urllib.request | |
try: | |
from tqdm import tqdm | |
except ImportError: | |
print('consider installing tqdm for a nice progress bar') | |
#E.G: "https://r4---sn-gqn-p5ns.googlevideo.com/videoplayback?expire=1603041842& ..... 2.20201016.02.00&sq=" | |
#The sound link should contain: &mime=audio in it. |
This file contains 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 boto3 | |
import secrets | |
import sys | |
def create(): | |
user_data = """#!/bin/sh | |
yum update -y | |
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
yum install -y zsh wireguard-tools""" |
This file contains 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
Top 5 2020 AMI providers | |
"531415883065" openshift | |
"801119661308" amazon | |
"979382823631" bitnami | |
"330183209093" qbol?-hvm | |
"679593333241" aws-marketplace |
This file contains 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
Abi | |
Abiah | |
Abigail | |
Abihail | |
Abishag | |
Abital | |
Achsah | |
Adah | |
Ahlai | |
Aholibamah |
This file contains 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 | |
cwd=$PWD | |
# intended use: install oschameleon on centos7 | |
# as root without any bloody care for proper procedures | |
yum upgrade -y | |
yum install epel-release -y | |
yum install wget alien git python-pip gcc -y | |
pip install gevent | |
# adapted from https://pypi.org/project/OSfooler-ng/ |
This file contains 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
KERNEL!="sd[a-z][0-9]", GOTO="cpx_by_sn_automount_end" | |
ATTRS{vendor}=="Adafruit", ENV{vendor}="$attr{vendor}" | |
ATTRS{serial}=="*", ENV{serial}="$attr{serial}" | |
#import FS infos | |
## this imports ID_FS_UUID | |
IMPORT{program}="/usr/bin/blkid -o udev -p %N" | |
IMPORT{program}="/bin/sh -c \"/usr/bin/echo serial=%E{serial} | /usr/bin/cut -c1-12\"" | |
# Get a label if present, otherwise specify one | |
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}-%E{serial}" | |
ENV{dir_name}=="", ENV{dir_name}="%E{ID_FS_LABEL_FATBOOT}-%E{serial}" |
This file contains 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
## neat catholic stuff | |
[http://holywar.org/index.htm](http://holywar.org/index.htm) | |
[https://remnantnewspaper.com/web/index.php/articles/item/3640-divine-office-the-prayer-that-built-western-civilization](https://remnantnewspaper.com/web/index.php/articles/item/3640-divine-office-the-prayer-that-built-western-civilization) | |
[https://the-american-catholic.com/tag/father-z/](https://the-american-catholic.com/tag/father-z/) | |
[http://whitesmoke1958.com/introduction.htm](http://whitesmoke1958.com/introduction.htm) | |
[https://web.archive.org/web/20140819132415/http://themcj.com/](https://web.archive.org/web/20140819132415/http://themcj.com/) | |
[http://timstaples.com/](http://timstaples.com/) | |
[http://saintpaul.episcopaloklahoma.org/About%20US/the-sign-of-the-cross-bowing-and-genuflecting-what](http://saintpaul.episcopaloklahoma.org/About%20US/the-sign-of-the-cross-bowing-and-genuflecting-what) |
This file contains 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
def runningUniq(anArray, compare=lambda x,y: x==y): | |
""" non-memory efficient linear deduplicator """ | |
retAr = [] | |
for n, elem in enumerate(anArray): | |
if n == 0: | |
last = elem | |
retAr.append(elem) | |
continue | |
if compare(elem, last): |
NewerOlder