Skip to content

Instantly share code, notes, and snippets.


Alexandre Bourget abourget

View GitHub Profile
View sample_tx.json
"expiration": "2018-07-09T13:09:20",
"ref_block_num": 955,
"ref_block_prefix": 2477295815,
"max_net_usage_words": 0,
"max_cpu_usage_ms": 0,
"delay_sec": 0,
"context_free_actions": [],
"actions": [
View launch.yaml
launch_btc_block_height: 525123 # Approx June 3rd 2018 9am EST, 6am PST, 3pm UTC.
# Corresponds to
opening_balances_snapshot_hash: af36de814f2b63484cbc565effc03c3b9277882d01ff5c0c85f924cf4b53a9d5
eosio.bios: de6b010347d6ed6f56a5caf406332fbe61a1a485990c5a43484323269ba6b5dd
eosio.system: 21ebeb718e516e727cae6851cb87b0dd040e3cdc1a57dca8d90f88cd8fc1d315
eosio.msig: 8608b380ab76eaa8f8dbe9ebedb4e09f3d4c496d366711d3f09d8865fc0efcb4
eosio.token: c470675ba4809eb1899739394c7913f2582582860ff137854eada1151d1e180c

Keybase proof

I hereby claim:

  • I am abourget on github.
  • I am abourget ( on keybase.
  • I have a public key ASDOwPRLvU0tt95s4Kx0mbdy76giDFpfPBLizucn60qPhgo

To claim this, I am signing this object:

abourget / main.go
Last active Mar 12, 2016
Sample security middleware for goa's Security framework..
View main.go
func serve() error {
service := goa.New("Featurette")
publicKeys := loadJWTPublicKeys(service)
// JWTSecurity was generated, because I named my security method "jwt"
abourget / main.go
Last active Mar 5, 2016
In my package's `gen/` folder
View main.go
package main
import (
_ ""
abourget / .bashrc
Created Feb 25, 2016
Powerful functions to switch Go environments :)
View .bashrc
function go16 {
if [ "`go version`" = "go version go1.6 linux/amd64" ]; then
echo Already on Go 1.6
echo Swapping to Go 1.6
sudo mv /usr/local/go /usr/local/go15
sudo mv /usr/local/go16 /usr/local/go
echo Done
View external_test.csv
Col1 Col2 Col3
1 2 3
4 5 6
7 8 9
View dartIrcbot.dart
import "dart:io";
import "dart:utf";
import 'dart:json' as JSON;
import 'dart:async';
import 'dart:isolate' as isolate;
import 'dart:mirrors';
class Bot {
abourget /
Created Nov 30, 2012
Ansible helper to connect to remote nodes via ssh, using the Ansible inventory
#!/usr/bin/env python
# This is a script we use at Tenscores, and it is specific only in the sense that we use IP addresses
# and use the variable `hostname` to find the correct nodes. Also, it connect to user `ubuntu` by
# default.. that could be checked up in the vars too.
# Our hosts file looks like:
abourget / directives.js
Created Aug 8, 2012
Hammer.js integration with AngularJS
View directives.js
* Inspired by AngularJS' implementation of "click dblclick mousedown..."
* This ties in the Hammer events to attributes like:
* hm-tap="add_something()"
* hm-swipe="remove_something()"
* and also has support for Hammer options with: