Skip to content

Instantly share code, notes, and snippets.

View profbot's full-sized avatar
💭
probably bored, or something similar

Prof profbot

💭
probably bored, or something similar
View GitHub Profile
@ckcr4lyf
ckcr4lyf / qbit.md
Last active May 20, 2021 04:58
Installing qbittorrent on USB

qBittorrent on USB Shared Boxes

This guide needs basic terminal (SSH) knowledge.

Setup

cd ~/.apps
wget https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-4.3.1_v1.2.11/amd64-glibc-qbittorrent-nox -O qbittorrent-nox
chmod +x qbittorrent-nox
@ZenulAbidin
ZenulAbidin / ig_stories.js
Last active July 23, 2020 23:15
Scrape links of full-resolution images and videos from Instagram stories. Paste in DevTools console to run.
l = []
intvl = setInterval(() => {
// The first image doesn't have a back button so it's children[0] not children[1]
try {
a = document.getElementsByClassName('_3MEiY')[0].children[0].children[0].children[2].children[1].children[0].children[0];
} catch (e) {
a = document.getElementsByClassName('_3MEiY')[0].children[0].children[0].children[2].children[0].children[0].children[0];
}
// If there is a video save its link as well
try {
@rafaelbiriba
rafaelbiriba / tree-report.sh
Last active March 7, 2024 03:19
Generate tree report file on NAS and send it by email (optional)
#!/bin/bash
# Creates DISK0.tree, DISK1.tree, DISKx.tree inside each disk, with the output of tree command.
# After generating the report, it send via email using mail.
# To add more disks, just add DISK[x]=/full/path to the disk. Just make sure that the array index are sequencial.
# Why this?
# With the reports from tree, in case of disk failure, you will know which file got lost and you can recover them, downloading or via backups.
# GIST: https://gist.github.com/rafaelbiriba/0ee7ca2baec1ef80a878c825295f09e1
EMAIL_ADDRESS="" # EMAIL_ADDRESS="email@gmail.com" or leave it blank "" to disable email
DISKS[0]="/srv/dev-disk-by-id-ata-WDC_WD80EMAZ-00WJTA0_ABC123-part1"
#!/bin/sh
set -x
USER="$1"
API_URL="https://api.github.com/users/${USER}/repos?type=owner"
DATE=$(date +"%Y%m%d")
TEMP_DIR="github_${USER}_${DATE}"
BACKUP_FILE="${TEMP_DIR}.tgz"
@steven2358
steven2358 / ffmpeg.md
Last active July 31, 2024 17:44
FFmpeg cheat sheet
@joepie91
joepie91 / vpn.md
Last active July 30, 2024 11:11
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.