Malin / pihole.list
0 likes
0 forks
1 files
Last active
| 1 | # adult |
| 2 | wikixh.world |
Malin / use-custom-ruby-macOS.profile
0 likes
0 forks
1 files
Last active
| 1 | # add to .zshrc |
| 2 | |
| 3 | if [ -d "/usr/local/opt/ruby/bin" ]; then |
| 4 | export PATH=/usr/local/opt/ruby/bin:$PATH |
| 5 | export PATH=`gem environment gemdir`/bin:$PATH |
| 6 | fi |
Malin / stuck-backup.sh
0 likes
0 forks
1 files
Last active
| 1 | # for Proxmox |
| 2 | # get backup jobs: |
| 3 | |
| 4 | ps awxf | grep vzdump |
| 5 | |
| 6 | # unlock VM after killing job |
| 7 | |
| 8 | qm unlock ID |
| 9 |
Malin / rip-imagebam.py
0 likes
0 forks
1 files
Last active
| 1 | # from: https://www.reddit.com/r/DataHoarder/comments/1d90f3c/nsfw_best_way_to_download_hundreds_of_separate/ |
| 2 | import requests |
| 3 | from bs4 import BeautifulSoup |
| 4 | from datetime import datetime, timedelta |
| 5 | import os |
| 6 | from concurrent.futures import ThreadPoolExecutor, as_completed |
| 7 | |
| 8 | |
| 9 | def fetch_webpage(url): |
| 10 | response = requests.get(url) |
Malin / docker-cleanup.sh
0 likes
0 forks
1 files
Last active
| 1 | # from: https://docs.docker.com/config/pruning/ |
| 2 | # get used/available space |
| 3 | docker system df |
| 4 | # remove all images without a container associated |
| 5 | docker image prune -a |
Malin / flush-journal.sh
0 likes
0 forks
1 files
Last active
| 1 | # from: https://unix.stackexchange.com/questions/139513/how-to-clear-journalctl |
| 2 | |
| 3 | journalctl --flush --rotate --vacuum-time=1s |
| 4 | journalctl --user --flush --rotate --vacuum-time=1s |
| 5 | journalctl --vacuum-time=2d |
| 6 | journalctl --vacuum-size=500M |
Malin / remove-PVE-cluster.sh
0 likes
0 forks
1 files
Last active
| 1 | # from https://www.reddit.com/r/Proxmox/comments/avk2gx/help_cluster_not_ready_no_quorum_500/ |
| 2 | |
| 3 | systemctl stop pve-cluster |
| 4 | systemctl stop corosync |
| 5 | pmxcfs -l |
| 6 | rm /etc/pve/corosync.conf |
| 7 | rm /etc/corosync/* |
| 8 | killall pmxcfs |
| 9 | systemctl start pve-cluster |