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
// ==UserScript== | |
// @name CrossGrease | |
// @namespace https://gist.github.com/166MMX/ | |
// @description Script to load required external scripts before execution of user code - Cross browser compatible | |
// @downloadURL https://gist.github.com/166MMX/3845101/raw | |
// @updateURL https://gist.github.com/166MMX/3845101/raw | |
// @version 1.3 | |
// ==/UserScript== | |
var crossGrease = 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
import de.huxhorn.lilith.data.eventsource.EventWrapper | |
import de.huxhorn.lilith.data.eventsource.LoggerContext | |
import de.huxhorn.lilith.data.logging.ExtendedStackTraceElement | |
import de.huxhorn.lilith.data.logging.LoggingEvent | |
import de.huxhorn.lilith.data.logging.Marker | |
import de.huxhorn.lilith.data.logging.ThrowableInfo | |
import de.huxhorn.lilith.services.clipboard.ClipboardFormatter | |
import de.huxhorn.lilith.data.logging.ThreadInfo | |
import de.huxhorn.lilith.data.logging.Message |
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
\w+?(?:\.(?:trace|debug|info|warn|error)|\[(?:'(?:trace|debug|info|warn|error)'|"(?:trace|debug|info|warn|error)")\])\((?:"(?:[^\\"]|\\\\|\\")*?"|'(?:[^\\']|\\\\|\\')*?'|[^'"\(\)])+\+(?:"(?:[^\\"]|\\\\|\\")*?"|'(?:[^\\']|\\\\|\\')*?'|[^'"\(\)])+\) |
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
find /usr/bin -name 'arm-linux-gnueabihf-*' | sed 's_/.*/arm-linux-gnueabihf-__' | xargs -l -i ln -s '/usr/bin/arm-linux-gnueabihf-{}' '{}' |
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
fdisk -l /dev/block/mmcblk0 | |
parted /dev/block/mmcblk0 print all | |
dd if=/dev/block/mmcblk0 of=/sdcard/mmcblk0gpt0.img bs=512 count=34 | |
cat /dev/block/mmcblk0boot0 > /sdcard/mmcblk0boot0.img | |
cat /dev/block/mmcblk0boot1 > /sdcard/mmcblk0boot1.img | |
cat /dev/block/platform/s3c-sdhci.0/by-name/userdata | gzip > /sdcard/userdata.img.gz | |
cat /dev/block/platform/s3c-sdhci.0/by-name/system | gzip > /sdcard/system.img.gz | |
cat /proc/mtd |
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
class Model { | |
Model(seed) | |
{ | |
this.seed = seed | |
} | |
int seed | |
} | |
class A { | |
public Model seed | |
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
#!/bin/sh | |
dnsName= | |
dnsServer= | |
checkUrl= | |
refreshUrl= | |
nsResult=$(nslookup -querytype=A "${dnsName}" "${dnsServer}" \ | |
| sed -n ' | |
/^Address:/ { | |
s/^.*:\s*// p |
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
task distJar(type: Jar, dependsOn: jar) { | |
group = DistributionPlugin.DISTRIBUTION_GROUP | |
classifier = 'all' | |
from { | |
configurations.runtime.collect { | |
it.isDirectory() ? it : zipTree(it) | |
} | |
} | |
from { | |
jar.outputs.files.collect { |
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
var extendObject = function extendObject (subObject, superObject) | |
{ | |
var tempObject = function tempObject () {}; | |
tempObject.prototype = superObject.prototype; | |
subObject.prototype = new tempObject(); | |
subObject.prototype.constructor = subObject; | |
}; |
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 (jQuery, window) { | |
var packageRoot = window; | |
packageRoot.example = packageRoot.example || {}; | |
packageRoot.example.namespace = packageRoot.example.namespace || {}; | |
var packageBase = packageRoot.example.namespace; | |
var ObjectPrototypeToString = Object.prototype.toString; | |
var isFunction = isFunction (object) | |
{ |
OlderNewer