- Run as root
sudo su
- Create swap file
Note: set count to your RAM capacity + 2, eg 8GB RAM so count=10
#!/bin/bash | |
# Package updater for EndeavourOS and Arch. | |
# Handles db lock file, keyrings, syncing, and optionally AUR with given AUR helper as well as Flatpak. | |
echo2() { echo -e "$@" >&2 ; } | |
echo3() { echo -e "\n${BLUE}[>>]${RESET}${BOLD} $@${RESET}" >&2 ; } | |
echo_err() { echo -e "\n${RED}[!!]${RESET}${BOLD} $@${RESET}" >&2 ; } | |
printf2() { printf "$@" >&2 ; } | |
WARN() { echo2 "==> $progname: warning: $1"; } |
### USAGE ### | |
# 0. Install the requirements: python -m pip install opencv-python pyperclip selenium | |
# 1. Fill out the credentials below | |
USERNAME = "USERNAME" | |
PASSWORD = "PASSWORD" | |
AUTO_REDEEM = True | |
# If Auto Redeem (True): | |
# 2. Run program | |
# 3. Hold the Online TCG Cards in front of the webcam, once the card has been registered it's code will be printed to the console |
### Requirements | |
# pip install requests tabulate | |
### Config | |
# Update interval in seconds | |
update_interval = 14 | |
# Terms to search for (can be list) | |
query = ["[UK]", "[EU/GER]"] | |
# Display query | |
display_query = True |
import subprocess | |
import json | |
import sys | |
output = subprocess.Popen(["curl", "-s", "-L", "http://suggestqueries.google.com/complete/search?client=firefox&q=" + sys.argv[1]], stdout=subprocess.PIPE).communicate()[0] | |
l = json.loads(output)[1] | |
for i,e in enumerate(l): | |
print(str(i) + ": " + e) | |
i = input("> ") | |
p = subprocess.Popen(["xsel", "-bi"], stdin=subprocess.PIPE) | |
p.communicate(input=l[int(i)].encode()) |
sudo su
Note: set count to your RAM capacity + 2, eg 8GB RAM so count=10
// ==UserScript== | |
// @name Fix half width | |
// @namespace http://tamprmonkey.net/ | |
// @version 1.2 | |
// @description Removes the album cover from covering the whole screen and adds the like/dislike buttons back | |
// @author Aikufurr | |
// @match https://music.youtube.com/* | |
// @icon https://www.google.com/s2/favicons?domain=youtube.com | |
// @grant none | |
// ==/UserScript== |
// ==UserScript== | |
// @name Firefox Still works | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Firefox Still works | |
// @author Aikufurr | |
// @match https://hegartymaths.com/* | |
// @grant none | |
// ==/UserScript== |
// ==UserScript== | |
// @name Amazon URL Shortener | |
// @namespace https://gist.github.com/Aikufurr | |
// @version 0.1 | |
// @description Replaces the long URL with a simpler shorter one | |
// @author Aikufurr | |
// @match https://www.amazon.co.uk/* | |
// @match https://www.amazon.com/* | |
// @match https://www.amazon.de/* | |
// @match https://www.amazon.co.jp/* |