Skip to content

Instantly share code, notes, and snippets.

View bussyjd's full-sized avatar
💭
🛠️ Buidl

Jean-Daniel Bussy bussyjd

💭
🛠️ Buidl
View GitHub Profile
@bussyjd
bussyjd / Dockerfle
Last active December 20, 2022 07:57
Namada Dockerfile
FROM snyk/snyk:linux as builder
ENV NAMADA_TAG=v0.12.0
ENV TM_HASH=v0.1.4-abciplus
RUN apt-get update -y && apt-get install -y \
build-essential \
make \
pkg-config \
libssl-dev \
@bussyjd
bussyjd / flatten.py
Created November 5, 2019 06:09
silversurfer@SilverXPS:~$ python3.7 -i flatten.py >>> runit() [1, 2, 3, 4]
def flatlist(input):
result = []
for item in input:
# It's a int? store it!
if isinstance(item, int):
result.append(item)
#print(item)
# It's a list? Run through it!
elif isinstance(item, list):
result += flatlist(item)
@bussyjd
bussyjd / nginx.conf for proxifying ipfs
Created September 17, 2019 11:50
Nginx.conf config file
server {
server_name <your ipfs domain name>; # managed by Certbot
location /api/v0/add {
proxy_pass http://localhost:5001;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
allow all;
}
@bussyjd
bussyjd / dsla-token-abi.txt
Created March 27, 2019 01:04
dsla-token-abi
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
[
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "icoRounds",

Keybase proof

I hereby claim:

  • I am bussyjd on github.
  • I am bussyjd (https://keybase.io/bussyjd) on keybase.
  • I have a public key whose fingerprint is C964 76FD 1311 D287 3572 1AEB 2E7D AECB 224C 16FA

To claim this, I am signing this object:

@bussyjd
bussyjd / nova.conf
Created March 29, 2013 07:01
Nova.conf of a workinf folsom cluster. Networking is quantum with gre.
[DEFAULT]
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/run/lock/nova
verbose=True
api_paste_config=/etc/nova/api-paste.ini
scheduler_driver=nova.scheduler.simple.SimpleScheduler
s3_host=172.16.1.13
ec2_host=172.16.1.13
ec2_dmz_host=172.16.1.13
require 'rubygems'
require 'tire'
require 'yajl/json_gem'
require 'debugger'
#class Lastic
url = ''
content = ''
@bussyjd
bussyjd / radosgwdemo.py
Created October 15, 2012 05:27
A simple demonstration of the S3 API of RADOS Gateway
import boto
import boto.s3.connection
access_key = 'J64L2H11GU5DA15E7KY3'
secret_key = '5ClGdd9ttXNDOAhqvBQbqXzZIXQGK++QEb9GojMY'
conn = boto.connect_s3(
aws_access_key_id = access_key,
aws_secret_access_key = secret_key,
host = 'stacktest3',
@bussyjd
bussyjd / radospybinddemo.py
Last active October 11, 2015 15:57
A simple demonstration of LIBRADOS binding to RADOS cluster
### Import of the Python Rados library classes
### https://github.com/ceph/ceph/blob/master/src/pybind/rados.py
from rados import Rados,ObjectIterator
### Initialize Rados class
cluster = Rados()
### /etc/ceph/ceph.conf file is read
cluster.conf_read_file()
print "Configuration file successfully loaded [OK]"
### Connection to the RADOS cluster