Skip to content

Instantly share code, notes, and snippets.

View nonkronk's full-sized avatar
:octocat:
g.dev/nonkronk

Irvan Tristian nonkronk

:octocat:
g.dev/nonkronk
View GitHub Profile
@nonkronk
nonkronk / deploy-openwrt-mudfish-unraid.md
Last active January 28, 2024 04:39
Deploy OpenWRT (Mudfish) VM on UnRaid Server

Deploy OpenWRT Mudfish as Unraid VM

What is mudfish?

Download & Convert Mudfish VM image

# Download ova 
wget https://mudfish.net/releases/openwrt/ova/OpenWRT_with_Mudfish-2.1.26.ova
# Extract image
@nonkronk
nonkronk / bold-markdown-shortcut-vscode.md
Last active March 31, 2023 20:10
Enable Bold Markdown shortcut on VSCode

Enable Bold Markdown Shortcut in VSCode

Press Cmd+Shift+P to open the command palette and type Open Keyboard Shortcut to open the [keybindings] file. Add the following code to the file:

    {
        "key": "cmd+b",
        "scope": "markdown",
 "command": "editor.action.insertSnippet",
@nonkronk
nonkronk / node-red-openwrt.md
Last active March 31, 2023 23:46
Install & autostart Node-RED on OpenWRT

Install & Auto-start Node-RED on OpenWrt

Install Node

opkg update
opkg install node-npm

Install Node-RED & pm2

@nonkronk
nonkronk / unraid-essentials.md
Last active April 2, 2023 18:42
List of unRAID essentials

List of unRAID essentials

Directories

No Path Description Reference
1 /boot/config/plugins/dockerMan/templates Contains Docker templates where users can create their own custom Docker container templates that can be used with the Docker Manager.
2 /etc/libvirt/qemu/ Contains XML configuration files that are used to define the configuration of virtual machines
3 /usr/local/emhttp/plugins
/boot/config/plugins
Contains plugins that can be installed to extend the functionality of the system
4 /boot/config/ssh``/boot/config/ssh/root - Contains configurations used to enable and configure SSH access to the system- Contains SSH keys that can be used to access the system via SSH
@nonkronk
nonkronk / auto-resolve-wireguard-endpoints.md
Last active April 2, 2023 20:14
Auto-resolve all Wireguard endpoints (Dynamic DNS / IP address)

Auto-resolve all Wireguard endpoints (Dynamic DNS / IP address)

Add a systemd timer to run the script every 30 seconds:

sudo vi /etc/systemd/system/wg-autoresolve.timer
[Unit]
@nonkronk
nonkronk / deploy-custom-vaultwarden-logo.md
Last active April 2, 2023 20:47
Deploy Vaultwarden with custom logo/icon

Deploy Vaultwarden with custom logo

Docker-compose:

version: "3.8"
services:
  vaultwarden:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    restart: unless-stopped
@nonkronk
nonkronk / deny-all-filter-rules-mikrotik.md
Last active April 11, 2023 16:04
Securing Mikrotik: default-deny-all filter rules for VLANs

Securing Mikrotik: default-deny-all filter rules + VLANs

Notes: Some IPs are already rotated to protect the innocent.

Give Admin access to trusted local devices

/ip firewall filter
add action=reject chain=forward comment="Block Telkom Router access" \
    dst-address=172.31.100.1 dst-port=80 protocol=tcp reject-with=\
@nonkronk
nonkronk / konami-efootball-server-ip-list.md
Last active June 20, 2023 16:09
List of KONAMI server (eFootball) IP addresses for white/blacklisting in Mudfish VPN

List of KONAMI server (eFootball) IP addresses for white/blacklisting in Mudfish VPN

Only relevant for Southeast users.

Whitelist

# Google Cloud - Jakarta
34.101.0.0/16
34.128.0.0/16
@nonkronk
nonkronk / vscode-tunnel-daemon-oracle-cloud.md
Last active May 23, 2024 16:06
Setup an Always-on VSCode Tunnel on Ubuntu Server

Setup an Always-on VSCode Tunnel on Oracle Cloud Always-free Instance

Access Oracle Cloud VM from any browser on any devices

Install VSCode for arm64

wget -O vscode.deb https://code.visualstudio.com/sha/download\?build\=stable\&os\=linux-deb-arm64 && sudo apt install ./vscode.deb --fix-broken -y && rm vscode.deb
@nonkronk
nonkronk / ZoomHosts.rsc
Last active April 13, 2023 05:41 — forked from ChrisG661/ZoomHosts.rsc
MikroTik Zoom Hosts address list
## Made by ChrisG661, 2021
## github.com/ChrisG661
# Address list name
:local listname "zoom"
# Zoom IP range URLs
:local sourceUrl {"https://assets.zoom.us/docs/ipranges/Zoom.txt"; \
"https://assets.zoom.us/docs/ipranges/ZoomMeetings.txt"; \
"https://assets.zoom.us/docs/ipranges/ZoomCRC.txt"; \
"https://assets.zoom.us/docs/ipranges/ZoomPhone.txt"}