Skip to content

Instantly share code, notes, and snippets.

View alamin-mahamud's full-sized avatar
🎯
Focusing

Alamin Mahamud alamin-mahamud

🎯
Focusing
View GitHub Profile
This file has been truncated, but you can view the full file.
/ip firewall address-list
add list=kahf-ips address=1.220.90.178/31
add list=kahf-ips address=1.220.90.180/32
add list=kahf-ips address=102.129.143.4/32
add list=kahf-ips address=102.129.143.12/31
add list=kahf-ips address=102.129.143.14/32
add list=kahf-ips address=102.129.143.16/32
add list=kahf-ips address=102.129.143.18/32
add list=kahf-ips address=102.129.143.23/32
add list=kahf-ips address=102.129.143.26/32
@alamin-mahamud
alamin-mahamud / list of false positives.md
Last active September 30, 2025 10:29
list of false positives.txt

File: big.oisd.nl_domainswild2 Count: 31 URLs found

• opentracker.net • sentry.io • c.bing.com • iadsdk.apple.com • ssw.live.com • host-tracker.com • symcd.com

#!/bin/bash
#
# DNS Fallback Resolution Test Script with Error Handling
# Handles communication errors and timeouts properly
#
# Configuration
declare -A SAFETY_MODES
SAFETY_MODES["LOW"]="203.190.10.114 203.190.10.115"
SAFETY_MODES["MEDIUM"]="203.190.10.116 203.190.10.117"
@alamin-mahamud
alamin-mahamud / mongo-docker.bash
Created December 17, 2018 00:33 — forked from davideicardi/mongo-docker.bash
Running mongodb inside a docker container (with mongodb authentication)
# Create a container from the mongo image,
# run is as a daemon (-d), expose the port 27017 (-p),
# set it to auto start (--restart)
# and with mongo authentication (--auth)
# Image used is https://hub.docker.com/_/mongo/
docker pull mongo
docker run --name YOURCONTAINERNAME --restart=always -d -p 27017:27017 mongo mongod --auth
# Using the mongo "localhost exception" (https://docs.mongodb.org/v3.0/core/security-users/#localhost-exception)
# add a root user
@alamin-mahamud
alamin-mahamud / install_mongo.sh
Created October 31, 2018 06:09
install mongodb on ubuntu 18.04
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
@alamin-mahamud
alamin-mahamud / Makefile
Last active October 20, 2018 03:55
Makefile for Golang
# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
BINARY_NAME=mybinary
BINARY_UNIX=$(BINARY_NAME)_unix
all: test build

Yoga

bind, join, attach and yoke. union or communion with the universal power.

Fundamentals

8 Limbs

  1. yama [abstensions]
    • violence
    • lying
  • theft
@alamin-mahamud
alamin-mahamud / alamin.zsh-theme
Last active September 3, 2021 02:55
oh my zsh theme showing docker icon
MODE_INDICATOR="%{$fg_bold[red]%}❮%{$reset_color%}%{$fg[red]%}❮❮%{$reset_color%}"
local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_PREFIX="|"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}⚡%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_bold[red]%}!%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}✓%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚"
@alamin-mahamud
alamin-mahamud / django_cmd.sh
Created August 4, 2018 08:36 — forked from hezhao/django_cmd.sh
Django Commands Cheatsheet
# Use Python 3 for easy unicode
$ virtualenv -p python3 .env
$ source .env/bin/activate
$ pip install django
$ deactivate
# Start new django project and app
$ django-admin.py startproject mysite
$ ./manage.py migrate
$ ./manage.py createsuperuser

Version History

Version 0.5.9

  • Add missing Jinja2 templates in the pypi packages.

Version 0.5.8