Skip to content

Instantly share code, notes, and snippets.

View EdisonJwa's full-sized avatar
:octocat:
Verified by GitHub

EdisonJwa EdisonJwa

:octocat:
Verified by GitHub
View GitHub Profile
@EdisonJwa
EdisonJwa / ddns.py
Created June 14, 2023 17:10
Vercel DDNS
!/usr/bin/python3
import requests
import json
import dns.resolver
API = "AAAAAAAAAAAAAAAA"
NAMESERVER = '1.1.1.1'
DOMAIN = 'www'
ROOT = 'example.com'
TTL = 60
@EdisonJwa
EdisonJwa / permissionlist.md
Created April 30, 2022 16:38
TeamSpeak Permission List

Permission List

permissionlist

ID Name Description
1 b_serverinstance_help_view Retrieve information about ServerQuery commands
2 b_serverinstance_info_view Retrieve global server information
3 b_serverinstance_virtualserver_list List virtual servers stored in the database
4 b_serverinstance_binding_list List active IP bindings on multi-homed machines
5 b_serverinstance_permission_list List permissions available available on the server instance
#!/bin/bash
_CRONTAB="crontab"
_DATA="0 18 * * * wget https://git.io/JtBaQ -O /tmp/dhcp_refresh.sh && chmod +x /tmp/dhcp_refresh.sh && /bin/bash /tmp/dhcp_refresh.sh && rm /tmp/dhcp_refresh.sh"
if ! [ -x "$(command -v $_CRONTAB)" ] && [ -x "$(command -v fcrontab)" ]; then
_CRONTAB="fcrontab"
fi
if ! [ -x "$(command -v $_CRONTAB)" ] && ! [ -x "$(command -v fcrontab)" ]; then
echo 'Error: crontab is not installed.' >&2
#!/bin/bash
mkdir -p ~/.ssh
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAvrUF267Q31y8UoABtenoethbQaH5JgwU0/xQlQtOAH i@uv.uy" >> ~/.ssh/authorized_keys
@EdisonJwa
EdisonJwa / cf_purgeall.sh
Created November 11, 2020 13:48
Cloudflare purge files
#!/bin/bash
# Install curl before using it
email=user@example.com
zone_id=xxxxx
api_key=xxxxx
curl -X POST "https://api.cloudflare.com/client/v4/zones/${zone_id}/purge_cache" \
-H "X-Auth-Email: ${email}" \
@EdisonJwa
EdisonJwa / tgnick.service
Last active April 22, 2021 06:09 — forked from RedL0tus/tgnick.service
Real time nick (systemd timer version)
[Unit]
Description=Telegram nickname updater
After=network-online.target
[Service]
User=yourname
Type=oneshot
WorkingDirectory=/path/to/updater
ExecStart=/path/to/updater/venv/bin/python3 /path/to/updater/updater.py
@EdisonJwa
EdisonJwa / cloudflare-ddns.sh
Last active October 15, 2020 04:35
CloudFlare DDNS Script
#!/bin/bash
# Install curl and dig before using it
# Using this command to get your record id
# curl -X GET "https://api.cloudflare.com/client/v4/zones/[YOUR_ZONE_ID]/dns_records?type=[TYPE A (for ipv4)or AAAA (for ipv6)]&name=[DOMAIN]&match=all" \
# -H "X-Auth-Email: [YOUR_EMAIL_ADDRESS]" \
# -H "X-Auth-Key: [YOUR_API_KEY]" \
# -H "Content-Type: application/json"
ipv4=$(curl -s ipv4.whatismyip.akamai.com)
@EdisonJwa
EdisonJwa / manifest.json
Created January 5, 2019 21:02
manifest.json
{
"name": "Vigorous Pro",
"short_name": "Vigorou Pro",
"theme_color": "#2196f3",
"background_color": "#f8f9fa",
"display": "minimal-ui",
"Scope": "/",
"start_url": "https://www.wevg.org",
"icons": [
{