Skip to content

Instantly share code, notes, and snippets.

View nasirhafeez's full-sized avatar

Nasir Hafeez nasirhafeez

View GitHub Profile
@nasirhafeez
nasirhafeez / walled-garden.md
Last active January 31, 2024 07:56
Walled Garden

Walled Garden

Zoho Survey

survey.zohopublic.com
webfonts.zoho.com
css5.zohostatic.com
js5.zohostatic.com
@nasirhafeez
nasirhafeez / opennds-commands.md
Created August 15, 2023 07:24
openNDS Commands

OpenNDS Commands

OpenNDS Documentation

Tested successfully on GL.iNet GL-MT300N-V2 device with OpenWrt 22.03.5 (stock OpenWRT firmware, not GL.iNet firmware).

Note: faskey in config file is generated dynamically and is present at the end of the config file.

Installation

@nasirhafeez
nasirhafeez / tp-link-omada-lets-encrypt-ubuntu.md
Created March 12, 2023 09:26
TP Link Omada Let's Encrypt Certificate on Ubuntu 20
@nasirhafeez
nasirhafeez / mikrotik-api-routerosv7.md
Created January 24, 2023 07:36
Mikrotik API RouterOS v7

Mikrotik API RouterOS v7

Prerequisites for enabling Rest API access in Mikrotik:

Allow in firewall:

/ip firewall filter add action=accept chain=input
@nasirhafeez
nasirhafeez / freeradius-setup.md
Last active September 29, 2023 09:32
FreeRADIUS Setup

FreeRADIUS Setup

Install FreeRADIUS:

apt-get install freeradius freeradius-mysql freeradius-utils

Allow all NAS clients to connect to it:

@nasirhafeez
nasirhafeez / coova-chilli-commands.md
Last active April 24, 2024 16:31
Coova Chilli Commands

Coova Chilli Commands

Installation

Recommended OpenWRT firmware version: OpenWRT 19. Newer versions do not have iptables installed by default so Coova Chilli will not work out of the box

opkg update
opkg install coova-chilli nano
@nasirhafeez
nasirhafeez / lamp-server-setup-ubuntu-20.md
Last active October 15, 2023 19:50
LAMP Server Setup on Ubuntu 20
@nasirhafeez
nasirhafeez / kubernetes-commands.md
Last active May 29, 2022 11:02
Kubernetes Commands

Kubernetes Commands

List Pods

kubectl get pod
kubectl describe pod <pod_name>
kubectl get po -o wide
@nasirhafeez
nasirhafeez / notepad-regexp-substitution-and-backtracking.md
Last active August 7, 2022 06:48
NotePad++ Regular Expressions, Substitution and Backtracking

NotePad++ Regular Expressions, Substitution and Backtracking

To replace dates of the format yyyy-mm-d with the format yyyy-mm-dd use the following find expression:

^(....-..-)(.)$

And the following replace expression:

\10\2

BIRD eBGP Example

BIRD version 2.0.8

An example configuration file /etc/bird/bird.conf where an eBGP adjacency is formed. All incoming routes are being rejected and one subnet is being advertised. The remaining defaults haven't been changed.

protocol static {
        ipv4;
 route 58.65.175.0/24 blackhole;