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 | |
| # | |
| # supervisord This scripts turns supervisord on | |
| # | |
| # Author: Mike McGrath <mmcgrath@redhat.com> (based off yumupdatesd) | |
| # Jason Koppe <jkoppe@indeed.com> adjusted to read sysconfig, | |
| # use supervisord tools to start/stop, conditionally wait | |
| # for child processes to shutdown, and startup later | |
| # Cameron Kerr <cameron.kerr.nz@gmail.com> adjusted 'status' | |
| # to return an LSB-compliant return code so things like |
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
| composite -dissolve 30% -gravity southwest ../utilities/roth_emblem_105_bordered.png fed-assets-2003-2016.png fed-assets-2003-2016-marked.png |
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
| function GetSyncListItems(serviceInstanceId, listId, accountSid, authToken) { | |
| var url = "https://preview.twilio.com/Sync/Services/" + serviceInstanceId + "/Lists/" + listId + "/Items"; | |
| var result = ImportJSON(url, "", "", accountSid, authToken); | |
| return result; | |
| } |
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
| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |
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
| ===== 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 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 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 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
| 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 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
| Run configuration -> | |
| Python unittest -> | |
| (one of the configuration) -> | |
| Arguments -> | |
| PyUnit: Override PyUnit preferences for this launch? | |
| --include_files 'integration_*.py' |
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
| 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 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
| NameVirtualHost * | |
| # default vhost | |
| <VirtualHost *> | |
| DocumentRoot / | |
| </VirtualHost> | |
| # www.snailattach.com | |
| <VirtualHost *> | |
| ServerName www.example.com |