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 getParameterByName(name) { | |
'use strict'; | |
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); | |
var regex = new RegExp("[\\?&]" + name + "=?([^&#]*)"), | |
results = regex.exec(location.search); | |
return results === null ? null : decodeURIComponent(results[1].replace(/\+/g, " ")); | |
} |
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
defineReplace(map) { | |
vname = $$1 | |
fs = $$2 | |
eval(v = \$\$$$vname) | |
for(f, fs) { | |
eval(v = \$\$$${f}(v)) | |
} | |
return ($$v) |
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
while getopts "u:r:" opt; | |
do | |
case "$opt" in | |
"u") | |
SVN_URL=$OPTARG | |
;; | |
"r") | |
REVISION=$OPTARG | |
;; | |
*) |
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
Run configuration -> | |
Python unittest -> | |
(one of the configuration) -> | |
Arguments -> | |
PyUnit: Override PyUnit preferences for this launch? | |
--include_files 'integration_*.py' |
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 bitcoin = require('bitcoinjs-lib'); | |
var network = bitcoin.networks.bitcoin; | |
var privateSeed = 'f9b64acde29b65ea8909f33380a7e87dc5f07b9437891cb8a0ef0e6fedc775e7fab0c846d45afb226c08d373f55a21c025410ee5a168a57000a8db9e8e3a29cb'; | |
console.log("privateSeed", privateSeed); | |
var master = bitcoin.HDNode.fromSeedHex(privateSeed, network); | |
// derive hardened node and its neutered version | |
var hardenedNode = deriveAccount(master, 0); | |
var hardenedNeutered = hardenedNode.neutered(); | |
var hardenedBase58 = hardenedNeutered.toBase58(); |
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
!/usr/bin/env node | |
var spawn = require('child_process').spawn; | |
var fs = require('fs'); | |
var c = spawn(process.argv[3], process.argv.slice(4), { stdio: 'inherit' }); | |
if (c.pid) { | |
pidFile = fs.createWriteStream(process.argv[2]); | |
pidFile.write(c.pid.toString()); |
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 1 > /proc/sys/net/ipv4/ip_forward | |
iptables -t nat --flush | |
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8000 | |
iptables -t nat -A POSTROUTING -j MASQUERADE |
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
NameVirtualHost * | |
# default vhost | |
<VirtualHost *> | |
DocumentRoot / | |
</VirtualHost> | |
# www.snailattach.com | |
<VirtualHost *> | |
ServerName www.example.com |
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
===== geth-dev | |
#!/bin/bash | |
exec geth \ | |
--datadir "C:\Users\zhimiao\AppData\Roaming\Ethereum.dev" \ | |
--password "C:\Users\zhimiao\AppData\Roaming\Ethereum.dev\dev.passwordfile" \ | |
--dev \ | |
"$@" |
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
composite -dissolve 30% -gravity southwest ../utilities/roth_emblem_105_bordered.png fed-assets-2003-2016.png fed-assets-2003-2016-marked.png |
OlderNewer