Skip to content

Instantly share code, notes, and snippets.

@tgerring
tgerring / geth-develop.sh
Last active August 18, 2021 07:55
Geth installation Ubuntu
#!/bin/bash
#######################################################################
# Install base dependencies (required)
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y git build-essential
# Install Go binaries
GOVERSION="1.7.3"
pyepm -a 29d33c02a200937995e632c4597b4dca8e503978 testBulkDeploy.yaml
PyEPM 0.9.6
=====
Deploying testBulkDeploy.yaml...
Loading testBulkDeploy.yaml...
Parsing testBulkDeploy.yaml...
deploy:
Deploying btcBulkStoreHeaders.py...
Contract will be available at 0xb8e116ddf8b8d451e04c5733a96a853b9036e883
Waiting for transaction... took 3s
@ethers
ethers / gist:7fd8363880a675edeb2c
Created March 19, 2015 22:07
pyepm deploy to Alethzero
pyepm -a 29d33c02a200937995e632c4597b4dca8e503978 testBulkDeploy.yaml
PyEPM 0.9.5-2-g13e13e7-dirty
=====
Deploying testBulkDeploy.yaml...
Loading testBulkDeploy.yaml...
Parsing testBulkDeploy.yaml...
deploy:
Deploying btcBulkStoreHeaders.py...
Contract will be available at 0xcf2d91e4a42568344d6222f08003db3104f3cddd
Waiting for transaction.. took 2s
@ethers
ethers / gist:4e348c99347008e207d9
Last active August 29, 2015 14:17
pyepm deploy to C++ cli
pyepm -a f52a423ecad0b6c70b5adf69edbe51b9db11c7c9 testBulkDeploy.yaml
PyEPM 0.9.6
=====
Deploying testBulkDeploy.yaml...
Loading testBulkDeploy.yaml...
Parsing testBulkDeploy.yaml...
deploy:
Deploying btcBulkStoreHeaders.py...
Contract will be available at 0x6da764a088e1d16610f38b305eb4f320f1cb227c
Waiting for transaction.
@ethers
ethers / gist:16cd74b0a1e90d112b59
Last active August 29, 2015 14:17
pyepm deploy to Go cli
pyepm -a 9409fe90e19bc99a9316e9f80bb3ede98cffac75 testBulkDeploy.yaml
PyEPM 0.9.6-2-ga67094c
=====
Deploying testBulkDeploy.yaml...
Loading testBulkDeploy.yaml...
Parsing testBulkDeploy.yaml...
deploy:
Deploying btcBulkStoreHeaders.py...
Contract will be available at 0xdc6b46483528c59c7354f3f84e27e79f41ad1e55
Waiting for transaction............................................. took 45s
@ethers
ethers / gist:4f2cab393d13b8000c55
Last active August 29, 2015 14:16
move untracked files outside a git repository
# Found from https://snipt.net/akaihola/move-untracked-files-outside-a-git-repository/
git ls-files --others --exclude-standard -z | cpio -pmd0 ../untracked/
# git clean -d -f
# git ls-files: print a
# * null-delimited (-z) list of
# * untracked (--others)
# * non-ignored (--exclude-standard) files.
# cpio:
@VinGarcia
VinGarcia / walksync.js
Last active September 9, 2020 11:18 — forked from kethinov/walksync.js
// List all files in a directory in Node.js recursively in a synchronous fashion
var walkSync = function(dir, filelist) {
if( dir[dir.length-1] != '/') dir=dir.concat('/')
var fs = fs || require('fs'),
files = fs.readdirSync(dir);
filelist = filelist || [];
files.forEach(function(file) {
if (fs.statSync(dir + file).isDirectory()) {
@cobyism
cobyism / gh-pages-deploy.md
Last active May 3, 2024 19:07
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).