This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Contact: ruzzzua@gmail.com | |
:: Version: 2015.08.25 | |
:: Dependencies: Android Debug Bridge (adb), IDA | |
@echo off | |
set path="c:\Program Files\Android\android-sdk\platform-tools\";%path% | |
set port=23946 | |
adb push android_server /system/xbin/android_server | |
adb shell chmod 06755 /system/xbin/android_server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$filename = $_GET['file']; | |
$downloadRate = isset($_GET['speed']) ? intval($_GET['speed']) : 500; | |
if (file_exists($filename) && is_file($filename)) | |
{ | |
header('Cache-control: private'); | |
header('Content-Type: application/x-shockwave-flash'); // Set MIME | |
header('Content-Length: '.filesize($filename)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
// From http://www.webtoolkit.info/javascript-base64.html | |
var Base64 = { | |
_keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", | |
encode : function (input) { | |
var output = ""; | |
var chr1, chr2, chr3, enc1, enc2, enc3, enc4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int floor(float a) | |
{ | |
int b = (int)a; | |
if (a >= 0 || (a - b) == 0) | |
return b; | |
else | |
return b - 1; | |
} | |
int trunc(float r) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See http://sourceforge.net/projects/astyle/ | |
Notepade++ | |
Script for NppExec: | |
NPP_SAVE | |
cd $(CURRENT_DIRECTORY) | |
с:\apps\dev\AStyle\AStyle.exe -A1 -s4 -S -w -Y -m0 -M120 -p -H -U -k3 -W3 -xj -c -xy -Z -z1 "$(FILE_NAME)" | |
Visual Studio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script for NppExec: | |
NPP_SAVE | |
cd $(CURRENT_DIRECTORY) | |
java -jar f:\apps\dev\GoogleClosureCompiler\compiler.jar --js "$(FILE_NAME)" --js_output_file "$(NAME_PART)_min$(EXT_PART)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
static TCHAR szWindowClass[] = TEXT("MinAppWindowClass"); | |
static TCHAR szTitle[] = TEXT("Min App"); | |
HINSTANCE hInst; | |
HWND hWnd; | |
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem Init | |
set ROOT_PATH=%~dp0..\.. | |
rem get #define VERSION "_VER_" | |
for /f "tokens=* delims= " %%a in (%ROOT_PATH%\src\defs.h) do ( | |
echo %%a | find "VERSION" > nul | |
if not errorlevel 1 set LINE=%%a | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"shell_cmd": "g++.exe \"${file}\" -O2 -std=c++0x -s -static -o \"${file_path}\\\\${file_base_name}\"", | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"path" : "%PATH%;c:\\mingw32\\bin\\", | |
"working_dir": "${file_path}", | |
"selector": "source.c, source.c++, source.cpp", | |
"variants": | |
[ | |
{ | |
"name": "Run", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env" : | |
{ | |
"CL_PARAMS" : "/O2 /W3 /GL /MT /GS /EHsc /D \"NDEBUG\" /D \"_UNICODE\" /D \"UNICODE\" /D \"WIN32_LEAN_AND_MEAN\" /D \"WIN32\" /D \"_WINDOWS\"", | |
"LINK_PARAMS" : "/link /OPT:REF /SUBSYSTEM:CONSOLE", | |
"EXE_SUFIX" : "_x64.exe" | |
}, | |
"path" : "%PATH%;%ProgramFiles(x86)%\\microsoft visual studio 11.0\\vc", | |
"shell_cmd": "vcvarsall.bat amd64 && cl.exe %CL_PARAMS% \"${file}\" %LINK_PARAMS% /OUT:\"${file_base_name}%EXE_SUFIX%\" && del *.obj", |