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 | |
| TARGET=${1:?"Usage $0 <path to root dir>"} | |
| find $TARGET -type d -exec chmod a+rx {} + |
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
| const ethUtils = require('ethereumjs-util'); | |
| const privateKey = '0x3c9229289a6125f7fdf1885a77bb12c37a8d3b4962d936f7e3084dece32a3ca1' | |
| const message = 'hello world'; | |
| function sign(message, pkey) { | |
| let mHash = ethUtils.sha3(message); | |
| let keyBuf = new Buffer(pkey.slice(2), 'hex'); | |
| let vrs = ethUtils.ecsign(mHash, keyBuf); |
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
| 0x6449dc27bfe45F4a45b9784D8f511CeB2270348C |
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
| db.getCollectionNames().forEach( function (collection) { | |
| print('col: ', collection); | |
| if(0 === collection.indexOf('acl_allows_')) { | |
| db[collection].drop(); | |
| print("drop'd"); | |
| } | |
| }); |
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
| gs=`git status 2>&1`; | |
| #echo "gs: '$gs'"; | |
| echo ""; | |
| if [[ $gs =~ 'Not a git repository' ]]; then | |
| echo "No git"; | |
| pwd | |
| exit 1; | |
| fi |
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
| alias чокак='git status' | |
| alias естьчо='git pull' | |
| alias нака='git push' | |
| alias нунах='git reset —hard' |
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
| netstat -antp | grep :::9999 | sed 's/.* \([0-9][0-9]*\)\/node/\1/' |
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(localCallback) { | |
| if(curCategory) { | |
| curCategory.getChilds(function (err, childs) { | |
| // ... | |
| var conds = {}; | |
| // ... many code for cimplicated conds ... | |
| return localCallback(null, conds); | |
| }) | |
| } else { |
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
| syntax on | |
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#begin() | |
| Plugin 'tomlion/vim-solidity' | |
| call vundle#end() | |
| filetype plugin indent on | |
| " To ignore plugin indent changes, instead use: |
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
| <?php | |
| $_SERVER["DOCUMENT_ROOT"] = realpath(dirname(__FILE__)."/../.."); | |
| $DOCUMENT_ROOT = $_SERVER["DOCUMENT_ROOT"]; | |
| define("NO_KEEP_STATISTIC", true); | |
| define("NOT_CHECK_PERMISSIONS",true); | |
| define('BX_NO_ACCELERATOR_RESET', true); | |
| define('CHK_EVENT', true); |
NewerOlder