Mo Beigi mobeigi
-
Atlassian
- Sydney, Australia
- Sign in to view email
- https://mobeigi.com
View autoexec.cfg
// Byte's CS:GO config | |
// Updated 01/11/2019 | |
echo "" | |
echo "##########################################" | |
echo " Executing autoexec.cfg" | |
echo "##########################################" | |
echo "" | |
// *********** Default Binds ***************** |
View fastdl_virtualhost.txt
########## fastdl.example.com ########## | |
<VirtualHost *:443> | |
# SSL Config (omitted) | |
# Server Config (omitted) | |
# Allow indexing | |
<Directory /> | |
Options -Indexes | |
AllowOverride all | |
Require all granted |
View fastdl_notes.txt
FastDL notes: | |
- Files can either be uncompressed raw or bzip2 compressed (bz2 extension). | |
- srcds will try to download compressed version first, then try to download uncompressed version (NEEDS TESTING) | |
- Extention whitelist is good idea (either per folder or global as you don't want junk files in fastdl) | |
- 150MB compression limit exists for files (CSGO quirk): | |
- http://csgo-servers.1073505.n5.nabble.com/Problem-with-bz2-map-big-size-gt-150-MB-td11402.html | |
- If uncompressed file size is >= 150 MB, then do not compress and put it uncompressed on FASTDL OR put it on community workshop. | |
- Otherwise, download completes but unzipping fails. |
View except_block_break_example.py
# | |
# Problem, we have exception which returns some data (i.e. code) | |
# We would like to 'break' out of an exception in except block based on conditions | |
# Here are some approaches: | |
# | |
class CodeException(Exception): | |
def __init__(self, message, code): | |
super().__init__(message) | |
self.code = code |
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"=- |
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. |
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%" |
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" |
NewerOlder