Skip to content

Instantly share code, notes, and snippets.

View AdroitAdorKhan's full-sized avatar
:octocat:
1x.engineer

Ador AdroitAdorKhan

:octocat:
1x.engineer
  • Madaripur, Bangladesh
View GitHub Profile

docker-compose.yml

services:
  redis:
    image: redis:7.0.8-alpine
    container_name: unbound-redis
    command: redis-server --save 43200 1 7200 100 --loglevel warning --rdbchecksum no 
    volumes:
      - "./redis:/data"

Build unbound from source with cachedb support using redis as backend.

1. Download needed library components:

sudo apt install bison build-essential flex libevent-dev libexpat1-dev libhiredis-dev libmnl-dev libnghttp2-dev libprotobuf-c-dev libssl-dev libsystemd-dev libunbound-dev lsb-release protobuf-c-compiler python3-dev swig -y

2. Install redis-server

@AdroitAdorKhan
AdroitAdorKhan / custom-dns.bat
Created February 9, 2023 19:28
batch to set dns
netsh interface ipv4 add dnsserver "Ethernet" 162.159.36.1
ipconfig /flushdns
@AdroitAdorKhan
AdroitAdorKhan / xcaddy-cloudflare
Created January 27, 2023 13:18
Install xcaddy with cloudflare dns module
1. Install xcaddy - https://github.com/caddyserver/xcaddy (Install go first)
2. Install built caddy - https://caddyserver.com/docs/running#manual-installation
- `/etc/systemd/system/caddy.service` https://github.com/caddyserver/dist/blob/master/init/caddy.service
- `/etc/systemd/system/caddy-api.service` https://github.com/caddyserver/dist/blob/master/init/caddy-api.service
3. Done!
@AdroitAdorKhan
AdroitAdorKhan / https-on-lan.md
Last active July 6, 2023 20:47 — forked from jkelin/howto.md
HTTPs on Local Network. 7 simple-ish steps to green HTTPS on LAN with custom domain, Caddy, LetsEncrypt and Cloudflare.

7 simple-ish steps to green HTTPS on LAN with custom domain, Caddy, LetsEncrypt and Cloudflare. And a bonus tip!

Ever felt envious of those pretty green lock on sites like Github.com or Google.com? Ever wished to have one of those for services on your homelab? Well wish no more because I have a guide for you!

This guide is written for Ubuntu 16.04 server with domain registered on NameSilo and nameservers using Cloudflare. However it will work for any OS that Caddy supports (this includes Linux, Windows, macOS and many others on several architectures) and any other DNS provider with an API that Caddy supports.

What will you need:

  1. $$ Domain
  2. Cloudflare account, or account with other DNS provider with API listed in https://caddyserver.com/docs/automatic-https#enabling-the-dns-challenge
  3. Basic understanding of DNS, server management and ability to RTFM
@AdroitAdorKhan
AdroitAdorKhan / iptables-rules
Created September 14, 2022 07:35 — forked from baalajimaestro/iptables-rules
General iptables rules to permit wireguard, openvpn and prevent ddos
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 10.0.2.0/24 -o eth0 -j MASQUERADE
# allow established sessions to receive traffic
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# allow your application port
iptables -I INPUT -p tcp --dport 443 -j ACCEPT
iptables -I INPUT -p udp --dport 443 -j ACCEPT
# allow SSH
iptables -I INPUT -p tcp --dport 22 -j ACCEPT
# Allow Ping
@AdroitAdorKhan
AdroitAdorKhan / android-backup-apk-and-datas.md
Created April 21, 2022 05:19 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

Fetch application APK

@AdroitAdorKhan
AdroitAdorKhan / GetNordVPNWireGuardDetails.md
Created February 6, 2022 09:55 — forked from bluewalk/GetNordVPNWireGuardDetails.md
Getting NordVPN WireGuard details
@AdroitAdorKhan
AdroitAdorKhan / ep-magisk-module.old.changes.md
Created May 21, 2020 10:06
Previous Changelog of Energized Protection Module.

v.éclairs

  • Added Magisk 20.0 Compatibility.
  • Fixed Magisk Version Detection.
  • Fixed Symlink. Now you can type Energized also to run the script.
  • Updated Check Function.
  • Script Optimization & Improvement Patches Applied.

v.pluot

  • Fixed shell check.
  • Fixed instant whitelist.