This file contains hidden or 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
| #!/bin/bash | |
| # Give the usual warning. | |
| clear; | |
| echo "[INFO] Automated Android root script started.\n\n[WARN] Exploit requires sdk module \"NDK\".\nFor more information, visit the installation guide @ https://goo.gl/E2nmLF\n[INFO] Press Ctrl+C to stop the script if you need to install the NDK module. Waiting 10 seconds..."; | |
| sleep 10; | |
| clear; | |
| # Download and extract exploit files. | |
| echo "[INFO] Downloading exploit files from GitHub..."; |
This file contains hidden or 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
| // check browser console in https://try.haxe.org/#cFBDb | |
| class Trace { | |
| static function main() { | |
| var a = {}; | |
| Reflect.setProperty(a, "b", "c"); | |
| trace("before"); | |
| trace("a"); |
This file contains hidden or 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
| using WithMacro; | |
| typedef Player = { | |
| final name:String; | |
| final level:Int; | |
| } | |
| class Main { | |
| static function main() { | |
| var player = {name: "Dan", level: 15}; |
This file contains hidden or 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
| # pcre | |
| ./configure --prefix=/opt/pcre-8.42 --enable-pcre16 --enable-utf --enable-pcregrep-libz | |
| make | |
| sudo make install | |
| # ocaml |
This file contains hidden or 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
| #!/usr/bin/env haxex -lib mcli @ | |
| /** | |
| Taken from mcli example https://github.com/waneck/mcli | |
| Say hello. | |
| Example inspired by ruby's "executable" lib example | |
| **/ | |
| class HaxeScript extends mcli.CommandLine | |
| { | |
| /** |
This file contains hidden or 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
| package async; | |
| #if macro | |
| import haxe.macro.Context; | |
| #end | |
| class Async { | |
| public static macro function async(expr:haxe.macro.Expr) { | |
| expr = Context.storeTypedExpr(Context.typeExpr(expr)); | |
| return macro untyped __js__("(async {0})", ${expr})(); |
Because I have no trust in people.
<hashlink>points to your installation of Hashlink, e.g. folder in whichhl.exe(or Unix executable) is, alongside with library binaries (.hdllfiles), andincludefolder.<src>points to the folder containing generated HL/C sources. One that containshlc.jsonfile.<app>refers to your output executable name, including extension.<main>refers to your entry-point file name, including extension (see below).- I provide example of doing it on Windows via MSVC
cl.exe, but Unix should be more or less same with replacement of argument flags and compiler. - I expect that you DO have a compiler installed and can call
cl.exeor other compiler from command-line.
This file contains hidden or 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
| #!/bin/bash | |
| command=$1 | |
| args=${@:2} | |
| winrun_pid=$$ | |
| pidfile="/tmp/winrun-pid-$(date +%s)" | |
| if [[ $args != '' ]]; then | |
| argumentlist="-ArgumentList \"$args\"" | |
| fi |