Skip to content

Instantly share code, notes, and snippets.

View rodhfr's full-sized avatar
🎯
Focusing

Rodolfo Souza rodhfr

🎯
Focusing
View GitHub Profile
services:
microbin:
container_name: microbin
image: danielszabo99/microbin:latest
environment:
- MICROBIN_HIGHLIGHTSYNTAX=true
- MICROBIN_ETERNAL_PASTA=true
- MICROBIN_GC_DAYS=30
- MICROBIN_ENCRYPTION_CLIENT_SIDE=true
- MICROBIN_ENCRYPTION_SERVER_SIDE=true
tailscale funnel --bg --https=10000 https+insecure://127.0.0.1:8787
tailscale funnel --bg 8096
sudo btrfs filesystem mkswapfile --size 16g /swapfile
sudo swapon /swapfile
htop
sudo nvim /etc/sysctl.d/99-sysctl.conf
# /etc/sysctl.d/99-sysctl.conf
# vm.swappiness=20
# check swapiness:
ls /proc/sys/vm/swapiness
https://davideger.github.io/blog/taildrop_on_linux.html
sudo nano /usr/local/bin/tailscale-ethtool.sh
---
#!/bin/bash
# Detect primary network interface
NETDEV=$(ip -o route get 8.8.8.8 | awk '{print $5}')
# Apply Tailscale UDP GRO optimization
/usr/sbin/ethtool -K $NETDEV rx-udp-gro-forwarding on rx-gro-list off
---
client_max_body_size 20M;
proxy_buffering off;
add_header X-Content-Type-Options "nosniff" always;
add_header Permissions-Policy "accelerometer=(), ambient-light-sensor=(), battery=(), bluetooth=(), camera=(), clipboard-read=(), display-capture=(), document-domain=(), encrypted-media=(), gamepad=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), interest-cohort=(), keyboard-map=(), local-fonts=(), magnetometer=(), microphone=(), payment=(), publickey-credentials-get=(), serial=(), sync-xhr=(), usb=(), xr-spatial-tracking=()" always;
add_header Content-Security-Policy "default-src https: data: blob: ; img-src 'self' https://* ; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' https://www.gstatic.com https://www.youtube.com blob:; worker-src 'self' blob:; connect-src 'self'; object-src 'none'; font-src 'self'" always;
templates:
torrent:
transmission:
host: transmission
port: 9091
username: rodhfr
password: linux123
anime:
template: torrent
configure_series:
from flexget import plugin
from flexget.entry import Entry
from flexget.task import Task
from flexget.event import event
import logging
log = logging.getLogger('RoundRobinRSS')
class RoundRobinRSS(object):
"""
// ==UserScript==
// @name Debrid Media Manager
// @namespace https://debridmediamanager.com
// @version 1.6.2
// @description Add accessible DMM buttons to IMDB, MDBList, AniDB, TraktTV, and Bittorrent sites with magnet links
// @author Ben Adrian Sarmiento <[email protected]>
// @license MIT
// @match *://*/*
// @grant none
// @downloadURL https://update.greasyfork.org/scripts/463268/Debrid%20Media%20Manager.user.js
TCP/IP (wireless)
Scrcpy uses adb to communicate with the device, and adb can connect to a device over TCP/IP. The device must be connected on the same network as the computer.
Automatic
An option --tcpip allows to configure the connection automatically. There are two variants.
If adb TCP/IP mode is disabled on the device (or if you don't know the IP address), connect the device over USB, then run:
scrcpy --tcpip # without arguments