Skip to content

Instantly share code, notes, and snippets.

🐠
Just keep swimming

Mo Beigi mobeigi

🐠
Just keep swimming
Block or report user

Report or block mobeigi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mobeigi
mobeigi / Add_Open_command_window_here.reg
Last active Aug 11, 2019
Command Prompt context menu registry files
View Add_Open_command_window_here.reg
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; Created on: December 10th 2016
; Tutorial: https://www.tenforums.com/tutorials/72024-open-command-window-here-add-windows-10-a.html
[HKEY_CLASSES_ROOT\Directory\shell\cmd2]
@="@shell32.dll,-8506"
"Extended"=-
@mobeigi
mobeigi / keymap_pref.txt
Last active Jul 30, 2019
My keymap preference for IDE's
View keymap_pref.txt
Closely resembles Notepad++ default keymap.
CUT - Ctrl+X
COPY - Ctrl+C
PASTE - Ctrl+V
SELECTALL - Ctrl+A
UNDO - Ctrl+Z
REDO - Ctrl+Y
View facebook_locale_identifiers.txt
af_ZA
am_ET
ar_AR
as_IN
az_AZ
be_BY
bg_BG
bn_IN
br_FR
bs_BA
View facebook_login_quirk.txt
It looks like Facebook automatically tries to fix email corrections upon logging in.
If you login with the wrong email but correct password, it will do a bruteforce/close match attempt with similar emails.
If successfully, you login to that account, even if the email you put in belongs to another user.
Seems to work for even really wack emails that are 4 characters different!
If both accounts have the same password, it logs in the email that matches.
Tested on custom domain, might be a lot less usable on public @gmail.com domain etc.
@mobeigi
mobeigi / intellij_terminal_startup.bat
Created Jan 9, 2019
IntelliJ Terminal Startup Script
View intellij_terminal_startup.bat
REM IntelliJ Terminal Startup Script
SET /p TARGET=<.idea\JAVA_HOME.txt
IF /i "%TARGET%"=="java6" (
SET JAVA_HOME=%JAVA_6_HOME%
)
IF /i "%TARGET%"=="java8" (
SET JAVA_HOME=%JAVA_8_HOME%
)
cmd.exe /K "CLEAR && ECHO ^>^> IntelliJ Terminal Startup Script V1.00 && ECHO ^>^> Using JAVA_HOME: %JAVA_HOME%"
@mobeigi
mobeigi / intellij_terminal_startup.bat
Last active Nov 19, 2018
IntelliJ Terminal Startup
View intellij_terminal_startup.bat
REM IntelliJ Terminal Startup Script
SET /p TARGET=<.idea\JAVA_HOME.txt
IF /i "%TARGET%"=="java6" (
SET JAVA_HOME=%JAVA_6_HOME%
)
IF /i "%TARGET%"=="java8" (
SET JAVA_HOME=%JAVA_8_HOME%
)
cmd.exe /K "CLEAR && ECHO ^>^> IntelliJ Terminal Startup Script V1.00 && ECHO ^>^> Using JAVA_HOME: %JAVA_HOME%"
@mobeigi
mobeigi / mysql_dumpall.sh
Created Nov 9, 2017
MySQL Dump All Databases
View mysql_dumpall.sh
#!/bin/bash
TIMESTAMP=$(date +"%F")
BACKUP_DIR="/root/mysql/$TIMESTAMP"
MYSQL_USER="root"
MYSQL=/usr/bin/mysql
MYSQL_PASSWORD="REMOVED"
MYSQLDUMP=/usr/bin/mysqldump
mkdir -p "$BACKUP_DIR/mysql"
@mobeigi
mobeigi / vac_ban_checker.py
Created Oct 21, 2017
Vac Ban Checker (scraper)
View vac_ban_checker.py
#!/usr/bin/env python
import requests, re
from bs4 import BeautifulSoup
num_vac_bans = 0
num_game_bans = 0
num_punished = 0
total = 0
@mobeigi
mobeigi / cruelhackers_scraper.py
Created Nov 20, 2016
SQL injection example for cruelhackers.net
View cruelhackers_scraper.py
import requests, re, os
START_NUM = 0
#Create dump file
file = open('db_dump.txt', 'a+')
count = 0
while True:
View gist:a9daf4ad088aacec9148382e1b85381e
Code:
$timezone_identifiers = DateTimeZone::listIdentifiers();
for ($i=0; $i < sizeof($timezone_identifiers); $i++) {
echo "$timezone_identifiers[$i]<br />";
}
Prints:
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
You can’t perform that action at this time.