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
function venv() { | |
if [ ! -f ./.venv/bin/activate ]; then | |
echo 'ERROR: No virtual environment found.' | |
return | |
fi | |
if [ -v $VIRTUAL_ENV ]; then | |
source ./.venv/bin/activate | |
else | |
deactivate | |
fi |
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
-- strict tables | |
CREATE TABLE foo (name TEXT, age INT) STRICT; | |
-- Enable Write ahead log (just run this on the db file once and it is enabled) | |
PRAGMA journal_mode=WAL; | |
-- Lower synchronous level (with WAL, you should set it to 1. Default is 2) | |
PRAGMA synchronous=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
#!/bin/zsh | |
REMOTE_SERVER=$1 | |
REPLACEMENT="anon@ubuntu" | |
LOGIN="$USER@$HOSTNAME" | |
WD=`mktemp -d` | |
pushd $WD > /dev/null | |
ssh-keygen -t rsa -b 4096 -q -f "$WD/id_rsa" -N "" | |
sed -i -e "s/$LOGIN/$REPLACEMENT/g" "$WD/id_rsa.pub" | |
chmod 400 "$WD/id_rsa" |
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 | |
readonly MODE_INFO=0 | |
readonly MODE_VERBOSE=1 | |
readonly MODE_EXTRACT=2 | |
PLISTBUDDY=/usr/libexec/PlistBuddy | |
RUNMODE=$MODE_BASIC | |
TMP=`mktemp -t ios-profile-certs` |
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
// ==UserScript== | |
// @name No YT Ambilight | |
// @namespace https://oisann.net/ | |
// @version 0.3 | |
// @description Remove YouTube Cinematics Effect. | |
// @author Oisann | |
// @match https://www.youtube.com/watch* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
// @grant none | |
// ==/UserScript== |
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 | |
POST_NUMBER=$1 | |
if [ -z "$POST_NUMBER" ] | |
then | |
POST_NUMBER="0655" | |
fi | |
echo "Post nummer: $POST_NUMBER" |
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
{"v":"5.5.7","meta":{"g":"LottieFiles AE 0.1.21","a":"","k":"","d":"","tc":"none"},"fr":60,"ip":0,"op":150,"w":280,"h":144,"nm":"17MAI-group","ddd":1,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":0,"nm":"▽ wristL","parent":7,"refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.333],"y":[0]},"t":32,"s":[22]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":70,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.333],"y":[0]},"t":110,"s":[22]},{"t":150,"s":[0]}],"ix":10},"p":{"a":0,"k":[-11.785,15.334,0],"ix":2},"a":{"a":0,"k":[48.2,21.736,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":60,"h":39,"ip":0,"op":152,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"▽ flag 3","parent":1,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[-26.721,-41.593,0],"ix":2},"a":{"a":0,"k":[39,55,0],"ix":1},"s":{"a":0 |
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
. { | |
cache | |
forward . 127.0.0.1:5301 127.0.0.1:5302 | |
} | |
.:5301 { | |
forward . 8.8.8.8 8.8.4.4 { | |
tls_servername dns.google | |
} | |
} |
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
from requests_html import HTMLSession | |
from urllib.parse import urljoin, urlparse | |
scheme = "https" | |
domain = "example.com" | |
checked = [] | |
failed = [] | |
prettyFail = [] |
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
time = 1 | |
if time == 1: | |
print("time is 1") | |
elif time == 3: | |
print("time is 3") | |
else: | |
print("time is not 1 or 3") |
NewerOlder