Skip to content

Instantly share code, notes, and snippets.

View ahbanavi's full-sized avatar
🎯
Focusing

Amir ahbanavi

🎯
Focusing
View GitHub Profile
@ahbanavi
ahbanavi / docker-pi-hole-whitelist.sh
Last active August 12, 2021 17:00
Pi-hole Common Whitelist
#!/bin/bash
docker exec -it pihole pihole -w clients4.google.com clients2.google.com s.youtube.com video-stats.l.google.com \
android.clients.google.com reminders-pa.googleapis.com firestore.googleapis.com gstaticadssl.l.google.com \
googleapis.l.google.com dl.google.com redirector.gvt1.com www.msftncsi.com outlook.office365.com products.office.com \
c.s-microsoft.com i.s-microsoft.com login.live.com login.microsoftonline.com \
g.live.com dl.delivery.mp.microsoft.com geo-prod.do.dsp.mp.microsoft.com displaycatalog.mp.microsoft.com \
sls.update.microsoft.com.akadns.net fe3.delivery.dsp.mp.microsoft.com.nsatc.net tlu.dl.delivery.mp.microsoft.com \
msedge.api.cdp.microsoft.com clientconfig.passport.net v10.events.data.microsoft.com v20.events.data.microsoft.com \
client-s.gateway.messenger.live.com arc.msn.com activity.windows.com \
@ahbanavi
ahbanavi / iranian-banks-bin.json
Created March 18, 2021 11:10
Iranian banks cart number bin
[
{
"bank": "markazi",
"title": "اداره معاملات ریالی بانک مرکزی",
"bin": "636795"
},
{
"bank": "sanat",
"title": "بانک صنعت و معدن",
"bin": "627961"
@ahbanavi
ahbanavi / amozeshyar_bypass_igap.user.js
Created February 20, 2021 11:05
Bypass Amozeshyar iGap code
// ==UserScript==
// @name Amozeshyar Bypass iGap
// @version 1
// @description Bypass Amozeshyar iGap code
// @author Yedoost
// @match http://stdn.iau.ac.ir/Student/captchaProcess
// @match http://stdn.iau.ac.ir/Student/manageAccount
// @grant none
// ==/UserScript==
@ahbanavi
ahbanavi / ForceBindIP.reg
Created February 9, 2021 15:41
Run apps through network Interface
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\exefile\shell\ForceBindIP]
@="Run through INTERFACE_NAME"
[HKEY_CLASSES_ROOT\exefile\shell\ForceBindIP\command]
@="C:\\Program Files (x86)\\ForceBindIP\\ForceBindIP64.exe -i {INTERFACE_GUID} \"%l\""
@ahbanavi
ahbanavi / docker-compose.yaml
Last active January 13, 2021 17:31
My sellf hosted Gitlab configs
version: "3"
services:
gitlab:
container_name: gitlab
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |