-
Install Notepad++ (check "set as default HTML editor" to replace Notepad in IE).
-
Run Notepad++, update its plugins, and install "NppExec" via Plugins, Plugin Manager.
-
Download DBGpPlugin . Place in C:\Program Files (x86)\Notepad++\plugins\DBGpPlugin
-
Use this link to download a modified version of the Komodo Remote Debugging Package. Place in plugin directory. (Unmodified Komodo package does not work with DBGpPlugin) Also contains DBGpPlugin
-
Enter these scripts for Python debugging:
Press F6 to create a NppExec Execute script, save as "Run Python":
cd "$(CURRENT_DIRECTORY)"
This file contains hidden or 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
// from https://maltechx.de/en/2020/06/host-static-page-on-backblaze-with-cloudflare-workers/ | |
// Backblaze Url | |
const baseURL = "https://f000.backblazeb2.com/file/skywirex" | |
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event)) | |
}) | |
async function handleRequest(event) { | |
This file contains hidden or 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
name: Build & Deploy Hugo Static Site to Backblaze B2 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest |
This file contains hidden or 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
# fdisk /dev/sda | |
Welcome to fdisk (util-linux 2.33.1). | |
Changes will remain in memory only, until you decide to write them. | |
Be careful before using the write command. | |
Device does not contain a recognized partition table. | |
The size of this disk is 3.7 TiB (4000787030016 bytes). DOS partition table format cannot be used on drives for volumes larger than 2199023255040 bytes for 512-byte sectors. Use GUID partition table format (GPT). | |
Created a new DOS disklabel with disk identifier 0x5644fbf2. |
This file contains hidden or 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
# Global | |
# # The first block, global, contains global settings for controlling the Prometheus | |
# # server’s behavior | |
global: | |
scrape_interval: 15s | |
evaluation_interval: 15s | |
# Alerting | |
# # The second block, alerting, configures Prometheus’ alerting. | |
# # Alerting is provided by a standalone tool called Alertmanager |
This file contains hidden or 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
# Update Cloudflare DNS IPv4 address script | |
# RouterOS version >= 6.44 is required | |
# Update time 17:35:25 UTC Thursday, 22 February 2024 by hyk0083 | |
# ** CONFIGURE SECTION ** | |
# WAN IPv4 interface | |
:local wanif "pppoe-out1" | |
# Cloudflare section |
This file contains hidden or 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
{ | |
"target": "terminus_exec", | |
"cancel": "terminus_cancel_build", | |
"focus": true, | |
"timeit": true, | |
"cmd": ["python3", "-u", "$file"], | |
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", | |
"selector": "source.python", | |
This file contains hidden or 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
# attempt 6, success | |
# relies on Magisk auto start script | |
# pause script to give wireguard time to autostart | |
bullhead:/ # cat /data/adb/service.d/prep_gateway.sh | |
#!/system/bin/sh | |
sleep 2m | |
su -c 'iptables -F tetherctrl_FORWARD' | |
su -c 'sysctl -w net.ipv4.ip_forward=1' | |
su -c 'iptables -A FORWARD -i tun0 -j ACCEPT' | |
su -c 'iptables -t nat -A POSTROUTING -o rmnet_data0 -j MASQUERADE' |
This file contains hidden or 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 | |
# Function to check internet connection | |
check_internet() { | |
if ping -q -c 1 -W 1 8.8.8.8 >/dev/null 2>&1; then | |
return 0 # Internet is available | |
else | |
return 1 # No internet connection | |
fi | |
} |
This file contains hidden or 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
--- | |
services: | |
# Main Immich Server service configuration | |
immich-server: | |
container_name: immich-server | |
image: ghcr.io/immich-app/immich-server:v1.118.2 # Image to be used | |
ports: # Mapping ports from the host OS to the container | |
- 2283:2283 | |
volumes: # Mounting directories for persistent data storage - CHANGE THIS | |
- /srv/immich:/usr/src/app/upload |