mkdir chromium && cd chromium
fetch --nohooks chromium --nosvn=True
gclient sync --with_branch_heads --nohooks # May not even need this.
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
#!/bin/bash | |
# This script has to be run as your confluence user or root | |
# Create a backup of, and attempt to restore a confluence h2 internal database | |
# Go home. | |
cd ~ | |
# Stop confluence | |
/opt/atlassian/confluence/bin/stop-confluence.sh | |
# Really though... |
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
diff -Naur duktape/src-input/builtins.yaml duktape-ooo/src-input/builtins.yaml | |
--- duktape/src-input/builtins.yaml 2019-05-11 19:06:14.000000000 -0700 | |
+++ duktape-ooo/src-input/builtins.yaml 2019-05-04 18:07:33.000000000 -0700 | |
@@ -204,80 +204,80 @@ | |
# This could be stripped when DUK_USE_GLOBAL_BUILTIN is disabled | |
# ("void 0" is the same and safer) but it's commonly used so keep. | |
- - key: "Object" | |
+ - key: "OOOObjectOOO" | |
value: |
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 doubler(int x) { | |
return 2 * x; | |
} |
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
import frida, argparse | |
parser = argparse.ArgumentParser(description='List modules for a process') | |
parser.add_argument('process_names', metavar='process name', nargs='+', help='names of processes to enumerate') | |
parser.add_argument('-R', dest='target', action='store_const', const=True, default=False, | |
help='target remote device') | |
try: | |
args = parser.parse_args() | |
target = frida |
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 Enumerable(generator, length, start) { | |
this.generator = generator; | |
this.length = length || Infinity; | |
this.current = start || 0; | |
this.index = 0; | |
Object.defineProperty(this, this.index, { get: this.next, configurable: true }); | |
} | |
Enumerable.prototype.next = function() { |
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 create() { | |
var types = Array.prototype.slice.call(arguments, 0, arguments.length - 1); | |
var body = arguments[arguments.length - 1]; | |
return function () { | |
if (arguments.length < types.length) | |
throw new Error("Argument count mismatch."); | |
for (var i = 0; i < types.length; i++) { | |
if (arguments[i].constructor != types[i] && !(arguments[i] instanceof types[i])) | |
throw new Error("Argument type mismatch. (" + types[i].name + ")"); |
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 () { | |
var filename = "amd.js"; | |
var scripts = Array.prototype.slice.call(document.querySelectorAll("script[src]")); | |
var self = scripts.filter(function (x) { return x.getAttribute("src").indexOf(filename) > -1; })[0]; | |
var src = self.getAttribute("src"); | |
var root = src.substring(0, src.indexOf(filename)); | |
var modules = {}; |
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 debounce(fn, ms) { | |
let id; | |
return function() { | |
clearTimeout(id); | |
id = setTimeout(() => fn.apply(this, arguments), ms); | |
} | |
} |
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 throttle(fn) { | |
let waiting = false; | |
return function() { | |
if (!waiting) { | |
waiting = true; | |
requestAnimationFrame(() => { | |
waiting = false; | |
fn.apply(this, arguments); | |
}); | |
} |