Skip to content

Instantly share code, notes, and snippets.

@davidyuk
davidyuk / watch.sh
Created February 4, 2021 07:57
Simple rebuild and run on the latest commit changing
#!/bin/bash
cd ~/folder-with-git-repository
while true
do
git fetch
git reset --hard origin/master
commit=$(git log -n 1)
if [ "$lastCommit" != "$commit" ]
then
{
"ak_28CpE1HJzhyGz75MNynTDjMxKwFKGHu25MhpvrcNQrmQg1D7X9": 20992551998600000000000,
"ak_vAmDdQTFhEunzerNHYKudwy4Go65R1XYkdWwUpXiZEbnyKNX2": 2998445640750000000000,
"ak_rSx6yHmtfMdUGkHuCGZ6o6bbWKdTRi3BYJakWrkZQfRxutsW4": 10000000000000000000000,
"ak_5WVVfKqFeNzKjThrzuSMzPCeZzDsYL2mLGZL1d11GQDAuGmac": 3000000000000000000000,
"ak_eXzzWWwZwyazMVCCcAujKSg57gQg3mNquTGYmS7qUxd2z3uQT": 24188000000000000000000,
"ak_28qquWQyzVBivLZfqhEbiGLfPMxWBqyTUKcoj8czomftVxWh1h": 19163738582825319014528,
"ak_8trDwpmcGuCFU62SthgcmqJ8RcrxMHRLpEdz27n24bpyULwBd": 20000000000000000000000,
"ak_gyBEprsuEbp3YnKkbyzZDQixQWciQS2gDAQ26WJMfGEF682Et": 6430200000000000000000,
"ak_2fnSArQ6bEShNnGH8p4U4azGJFwSrHFh15oNDDiTVqrXcVCFHb": 20000000000000000000000,
@davidyuk
davidyuk / gist:56f4ff5abf365b35a9935abaafe751fd
Created January 24, 2018 16:29
aepp-response-contracts performance-tests
$ truffle test
Compiling ./contracts/BubbleSort.sol...
Compiling ./contracts/RewriteMin.sol...
Compiling ./contracts/RewriteMinPreCalculated.sol...
Compiling ./contracts/Simplest.sol...
Contract: Simplest
Simplest gas usage is 62064
Overall gas usage is 27928800
0xfA491DF8780761853D127A9f7b2772D688A0E3B5
denis@Ubuntu-VirtualBox:~$ ./meteor-error.sh
+ meteor update
The latest version of Meteor, 1.4.2.3, is already installed on this computer. Run 'meteor update'
inside of a particular project directory to update that project to Meteor 1.4.2.3
+ meteor create test-app
Created a new Meteor app in 'test-app'.
To run your new app:
cd test-app
meteor npm install