Skip to content

Instantly share code, notes, and snippets.

View wanderingstan's full-sized avatar

Stan James wanderingstan

View GitHub Profile
@wanderingstan
wanderingstan / make_grid.py
Last active November 17, 2020 20:27
Create grid of movies using ffpeg
# Create a movie which is a grid of other movies.
# Based on: https://trac.ffmpeg.org/wiki/Create%20a%20mosaic%20out%20of%20several%20input%20videos
# With help from: http://superuser.com/questions/991714/select-audio-from-second-input-file-for-ffmpeg-movie-overlay/991747#991747
#
# Example:
# python make_grid.py -x 4 -y 4 -o 4x4.mov Breezeblocks*.mov
#
# Will take up to 16 (4x4) movies with name staring with "Breezeblocks" and
# create a movie grid of them playing simultaneously, saved as 4x4.mov.
#
@wanderingstan
wanderingstan / install_opencv2.4.11.sh
Last active December 21, 2015 02:29 — forked from mitmul/install_opencv2.4.8.sh
install OpenCV 2.4.11 for CentOS 6.2
#! /bin/bash -x
sudo yum install -y gcc g++ gtk+-devel libjpeg-devel libtiff-devel jasper-devel libpng-devel zlib-devel cmake unzip
sudo yum install -y yum-priorities
wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -ivh epel-release-6-8.noarch.rpm
sudo yum install -y eigen3-devel —enablerepo=epel
pip install numpy
wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.11/opencv-2.4.11.zip
unzip opencv-2.4.11
@wanderingstan
wanderingstan / My Rinkeby faucet gist
Created October 16, 2017 03:50
My Rinkeby faucet gist
0x564AAe0251d49d1F8d4d8d9E5da08f8CcEFf9eF2
Verifying my Blockstack ID is secured with the address 1Gb2k1A2X3tzR7mSUhk5gAE77Lm8kxLEd3 https://explorer.blockstack.org/address/1Gb2k1A2X3tzR7mSUhk5gAE77Lm8kxLEd3
@wanderingstan
wanderingstan / keybase.md
Created December 28, 2017 18:14
keybase verification

Keybase proof

I hereby claim:

  • I am wanderingstan on github.
  • I am wanderingstan (https://keybase.io/wanderingstan) on keybase.
  • I have a public key ASCPnta_Alcflas8yGwJjAf9nk97KqyS_WstNKbRelxXBAo

To claim this, I am signing this object:

@wanderingstan
wanderingstan / Truffle ERC20 debugging.md
Created May 3, 2018 00:11
Notes for debugging erc20 contracts with truffle
@wanderingstan
wanderingstan / heroku.log
Created May 22, 2018 15:33
origin demo-dapp heroku deploy 0.6.0
~/Origin/demo-dapp$ git push --force heroku
Counting objects: 26, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (24/24), done.
Writing objects: 100% (26/26), 4.37 KiB | 447.00 KiB/s, done.
Total 26 (delta 15), reused 5 (delta 2)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
@wanderingstan
wanderingstan / listing_types.md
Last active June 5, 2018 15:22
Origin Listing Types
  • Offline
    • "All activity happens offline."
    • Annoucements
      • "No price, only info"
    • For Sale Anouncement
      • "Item for sale, but purchase happens offline"
      • eg: Craigslist: buyer/seller transact offline
  • Online
    • "Transaction is mediated by software"
  • Unit
~/Origin/origin-box$ docker exec -ti origin-js /bin/bash
root@b527ebfeb84c:/app#
root@b527ebfeb84c:/app# ls
CONTRIBUTING.md README.md artifacts dist package-lock.json scripts test webpack.config.js
LICENSE RELEASE.md contracts node_modules package.json src v0.1_migration
root@b527ebfeb84c:/app# cd contracts/
root@b527ebfeb84c:/app/contracts# ls
build contracts migrations releases test truffle.js
root@b527ebfeb84c:/app/contracts# export RINKEBY_MNEMONIC="<REDACTED>"
root@b527ebfeb84c:/app/contracts# npx truffle migrate --network rinkeby
// In origin-js containter
// Save this file as `/app/scripts/deploy_checklist.js`
// Then run `node deploy_checklist.js`
// Output should be similar to:
//
// root@b527ebfeb84c:/app/scripts# node deploy_checklist.js
// Network: rinkeby
// 0 0xfF2BA846ab52EDBd724A5ef674AbF5A763849B61 61.7776839
// 1 0x3003F9dCFDC17e63cfe7023130B804829b369882 1.751959367