This script is meant to be run on a fresh Ubuntu LTS installation.
- Add fail2ban
- add packages such as vim, git, curl
- ?
# coding: utf-8 | |
from __future__ import unicode_literals | |
import re | |
# ⚠ Don't use relative imports | |
from yt_dlp.extractor.common import InfoExtractor | |
from yt_dlp.utils import int_or_none, try_get, clean_html, unescapeHTML |
#!/bin/bash | |
sudo apt update | |
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https | |
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg | |
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list | |
sudo apt update | |
sudo apt install caddy | |
sudo tee /etc/caddy/Caddyfile > /dev/null <<EOF | |
yourdomain.com { | |
reverse_proxy localhost:7860 |
#!/usr/bin/env bash | |
sudo apt update && sudo apt upgrade -y | |
apt_packages=( | |
git | |
tmux | |
htop | |
curl | |
wget | |
vim |
#unbind-key C-b | |
#set -g prefix 'C-a' | |
#bind-key 'C-a' send-prefix | |
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# split panes using | and - | |
bind | split-window -h |
#!/usr/bin/env bash | |
# This script downloads and installs a specific version of Go. | |
# Check if the version is provided | |
if [ -z "$1" ]; then | |
echo "Usage: ./update_go.sh version (example 1.20.4 or latest)" | |
exit 1 | |
fi |
#! /bin/bash | |
# NEWLY ADDED BACKUP FUNCTIONALITY IS NOT FULLY TESTED YET, USE WITH CARE, ESPECIALLY DELETION | |
# Developed for DSM 6 - 7.0.1. Not tested on other versions. | |
# Steps to install | |
# Save this script in one of your shares | |
# Edit it according to your requirements | |
# Backup /usr/syno/share/nginx/ as follows: | |
# # cd /usr/syno/share/ | |
# # tar cvf ~/nginx.tar nginx |
user_pref("devtools.editor.keymap", "emacs"); | |
user_pref("browser.tabs.closeWindowWithLastTab", false); | |
user_pref("app.normandy.api_url", ""); | |
user_pref("app.normandy.enabled", false); | |
user_pref("app.shield.optoutstudies.enabled", false); | |
user_pref("beacon.enabled", false); | |
user_pref("breakpad.reportURL", ""); | |
user_pref("browser.aboutConfig.showWarning", false); | |
user_pref("browser.crashReports.unsubmittedCheck.autoSubmit", false); | |
user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false); |
http://ictsentani.org/?p=258 | |
http://opensource.telkomspeedy.com/forum/viewtopic.php?pid=122506 | |
#------------------------------------------------------------------------------- | |
E1 Modem1 : 192.168.77.1 -> IP Modem1 : 192.168.77.2 | |
E2 Server : 192.168.88.1 -> IP Server : 192.168.88.2 | |
E3 Hotspot : 192.168.99.1 -> IP Hotspot : 192.168.99.10 - 192.168.99.250 | |
E4 Labkom : 10.10.10.254 -> IP Labkom : 10.10.10.1 - 10.10.10.20 | |
#------------------------------------------------------------------------------- |
from pathlib import Path | |
import tempfile | |
import tarfile | |
import zstandard | |
# pip install zstandard | |
def extract_zst(archive: Path, out_path: Path): | |
"""extract .zst file |