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 json | |
from time import sleep | |
import requests | |
with open("loonacord_imgur_commands.json", "rb") as f: | |
commands_raw = json.load(f) | |
for command in commands_raw: | |
sleep(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
# 1. start the db container and map it to local port 3306 | |
# 2. dump it (remove --no-create-info to also migrate schema) | |
$ mysqldump --port 3306 -h 0.0.0.0 -prootpw --no-create-info database > mydb.sql | |
# 3. move to another host | |
$ scp source:~/mydb.sql dest:~/ | |
# 4. start db on destination | |
# 5. create schema if not created automatically | |
# 6. restore data | |
$ mysql --port 3306 -h 0.0.0.0 -prootpw database < mydb.sql |
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 | |
# Brightness adjuster script by Joinemm | |
# | |
# Why? | |
# My brightness adjustments werent working through xbacklight so i made this as a replacement. | |
# Just bind this to your brightness keys | |
# | |
# To remove sudo requirement, add this to /etc/udev/rules.d/backlight.rules | |
# |