Skip to content

Instantly share code, notes, and snippets.

View valentinbud's full-sized avatar

Valentin Bud valentinbud

View GitHub Profile
import os
import psycopg2
import requests
# endpoints
database_url = os.getenv("DATABASE_URL", "postgresql://blockscout@localhost/emerald")
destination_api_url = os.getenv("DESTINATION_API_URL", "http://localhost:4000/api")
# query
sql_query = """
@valentinbud
valentinbud / README.md
Last active October 24, 2021 13:21
oasis network state sync

The consensusrpc node

On localhost initiliaze the node with

ENTITY_DIR=/localhostdir/entity
ENTITY_ID=`cat $ENTITY_DIR/entity.json | jq -r .id`

mkdir -p /localhostdir/node-consensusrpc
cd /localhostdir/node-consensusrpc

oasis-node registry node init \

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@valentinbud
valentinbud / Dockerfile
Created April 11, 2018 06:43
docker-jenkins-master
FROM jenkins/jenkins:lts-alpine
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
@valentinbud
valentinbud / gist:4d749b8bab87a17d7a409de66e535de2
Created May 25, 2017 10:34
diff aerospike cloudformation template
--- /Users/bud/code/aerospike/aws-cloudformation/aerospike-existing-vpc.json 2017-04-28 08:35:50.000000000 +0300
+++ /Users/bud/code/f4m/tfdev/aerospike/templates/aerospike-cloudformation.json 2017-05-25 10:57:21.000000000 +0300
@@ -21,6 +21,31 @@
"Default" : "default",
"AllowedValues" : [ "default", "dedicated"]
},
+ "Cli53AwsAccessKey" : {
+ "Description" : "The cli53 AWS Access Key",
+ "Type" : "String",
+ "Default" : "AZNJVH"
@valentinbud
valentinbud / up.sls
Created May 7, 2015 20:00
cloudgist#0
#!py
import salt.utils.smtp as smtp
import salt.cloud.clouds.opennebula as ONE
import logging
import xmlrpclib
import xml.etree.ElementTree as ET
import binascii
import os
FIRST TRY
### REMOVE FLOWS
process do |nic|
@nic = nic
if @nic[:ovs_insecure] == "YES"
ovs.deactivate
end
FROM ubuntu:trusty
MAINTAINER "Valentin Bud <[email protected]>"
# Update the Operating System
RUN apt-get update && apt-get upgrade -y
# Install PHP and Requirements
RUN apt-get install php php-fpm -y
# Add code in image
wget -O ~/.dircolors https://raw2.github.com/seebi/dircolors-solarized/master/dircolors.ansi-dark
cat >> ~/.zshrc <<EOF
# DIRCOLORS
eval `dircolors ~/.dircolors`
EOF
# Copy mode
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
### Tmux default terminal
# set -g default-terminal "screen-256color"