Skip to content

Instantly share code, notes, and snippets.

Avatar
🏆
Everybody's a critic

Mo Beigi mobeigi

🏆
Everybody's a critic
View GitHub Profile
View MD5 Collision Demo
From: http://www.mscs.dal.ca/~selinger/md5collision/
Block 1:
d131dd02c5e6eec4693d9a0698aff95c 2fcab58712467eab4004583eb8fb7f89
55ad340609f4b30283e488832571415a 085125e8f7cdc99fd91dbdf280373c5b
d8823e3156348f5bae6dacd436c919c6 dd53e2b487da03fd02396306d248cda0
e99f33420f577ee8ce54b67080a80d1e c69821bcb6a8839396f9652b6ff72a70
Block 2:
d131dd02c5e6eec4693d9a0698aff95c 2fcab50712467eab4004583eb8fb7f89
@mobeigi
mobeigi / gist:5a5dd9c6d012f849348e
Last active Aug 29, 2015
cmp of two image files saved in succession in paint
View gist:5a5dd9c6d012f849348e
86 66 6 74 <
87 354 ì 76 >
96 55 - 57 /
97 170 x 134 \
98 343 ã 34 ^\
99 72 : 307 Ç
100 23 ^S 373 û
101 205 … 307 Ç
102 27 ^W 323 Ó
103 56 . 252 ª
@mobeigi
mobeigi / conemu reg add.reg
Last active Aug 29, 2015
Ass conemu shell extension registry file
View conemu reg add.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\conemu1]
@="Open ConEmu"
[HKEY_CLASSES_ROOT\Directory\Background\shell\conemu1\command]
@="C:\\Program Files\\ConEmu\\ConEmu64.exe"
@mobeigi
mobeigi / visual go training website
Last active Aug 29, 2015
Data structures and algorithms website
@mobeigi
mobeigi / c++ guessing game.cpp
Last active Aug 29, 2015
Guessing Game (One of my first C++ programs)
View c++ guessing game.cpp
// Number Guessing Game
// Version 1.000
// By: Mohammad
#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <stdlib.h>
@mobeigi
mobeigi / EICAR.txt
Created Apr 8, 2015
EICAR Test Virus
View EICAR.txt
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
View 100_to_1.cpp
/*
* Question/Challenge from: http://www.thousandtyone.com/blog/EasierThanFizzBuzzWhyCantProgrammersPrint100To1.aspx
*
* Task: Print 100 to 1.
* Start code with "for(int i=0;".
* You cannot write anything before "for(int i=0;".
* You cannot use two loops.
*
* Time to complete: 30 seconds
*/
@mobeigi
mobeigi / fizzbuzz.cpp
Created Apr 11, 2015
C++ Fizzbuzz solution
View fizzbuzz.cpp
#include <iostream>
#include <string>
int main()
{
for (int i = 1; i <= 100; ++i) {
std::string ans;
ans += (i % 3 == 0) ? "Fizz" : "";
@mobeigi
mobeigi / Ducky_Shine_Multimedia.ahk
Created May 1, 2015
Ducky Shine III Multimedia Key Autohotkey script
View Ducky_Shine_Multimedia.ahk
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;Multimedia Keys for Ducky Shine 3
;Open selected file using notepad++
SC121::run % "D:\Program Files (x86)\Notepad++\notepad++.exe """ gst() """"
@mobeigi
mobeigi / Falchion.txt
Created May 27, 2015
Falchion Skin Codes
View Falchion.txt
"Rocket Pop"
{
"paint" "478"
}
"Bunsen Burner"
{
"paint" "479"
}
"Ranger"
{