- Model: Linksys EA8100
- Memory: 256MB
- Storage: Using 16GB thumb drive as extroot
- OpenWrt Version: OpenWrt 23.05.3 r23809-234f1a2efa / LuCI openwrt-23.05 branch git-24.073.29889-cd7e519
This file contains 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
const findDuplicateNames = () => { | |
// Get all form elements excluding radio buttons | |
const elements = document.querySelectorAll('input:not([type="radio"]), textarea, select'); | |
const nameMap = new Map(); | |
elements.forEach(element => { | |
const name = element.getAttribute('name'); | |
if (name) { | |
if (!nameMap.has(name)) { |
This file contains 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
# https://gist.github.com/ahbanavi/308b27b5538559352dac960d48772cde | |
services: | |
n8n: | |
image: docker.n8n.io/n8nio/n8n | |
container_name: n8n | |
restart: always | |
environment: | |
N8N_SECURE_COOKIE: false # If you also want to use it with localhost | |
WEBHOOK_URL: https://n8n.example.com # The domain configured in Cloudflare Zero Trust |
This file contains 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 | |
# RSS Feed Monitor for Nyaa.si | |
# ========================== | |
# This script monitors nyaa.si RSS feed for new items matching a keyword and sends | |
# notifications via Telegram. | |
# By default, this script only checks for english-translated anime items. | |
# | |
# Requirements: | |
# - curl |
This file contains 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
# Interface to bind in this example | |
# ID: wlan0, IP: 192.168.10.183, Gateway: 192.168.10.1 | |
docker network create -d bridge --subnet=172.18.0.0/16 --gateway=172.18.0.1 -o com.docker.network.bridge.enable_ip_masquerade=false -o com.docker.network.bridge.name=docker_binded docker_binded | |
echo '1 docker_binded' >> /etc/iproute2/rt_tables | |
ip rule add from 172.18.0.0/16 tab docker_binded | |
ip route add 172.18.0.0/16 dev wlan0 tab docker_binded |
This file contains 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
function updateSlideFootersWithNotSkippedCount() { | |
// Get the active presentation | |
var presentation = SlidesApp.getActivePresentation(); | |
// Get all the slides in the presentation | |
var slides = presentation.getSlides(); | |
// Initialize a counter for not skipped slides | |
var notSkippedCount = 0; | |
This file contains 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/ash | |
ASSETS_DIR="/usr/share/v2ray" | |
GEOIP_FILE_NAME="geoip.dat" | |
GEOSITE_FILE_NAME="geosite.dat" | |
RELEASE_BASE_URL="https://raw.githubusercontent.com/Chocolate4U/Iran-v2ray-rules/release/" | |
update_file() { | |
url="$RELEASE_BASE_URL$1" | |
current_file="$ASSETS_DIR/$1" |
This file contains 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 | |
# read url from args | |
url=$1 | |
# If no URL is provided, exit with usage | |
if [[ -z "$url" ]]; then | |
echo "Usage: $0 <url>" | |
exit 1 | |
fi |
This file contains 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 | |
interface=$1 | |
# Check if the interface is valid and set the other interface | |
if [[ $interface == "wan" ]]; then | |
other_interface="wanb" | |
elif [[ $interface == "wanb" ]]; then | |
other_interface="wan" | |
else |
This file contains 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
@echo off | |
for %%A in (%*) do ( | |
ffmpeg -i "%%A" -vcodec hevc_nvenc "%%~nA.x265%%~xA" | |
) | |
pause |
NewerOlder