Skip to content

Instantly share code, notes, and snippets.

View bertux's full-sized avatar
💭
Hacking on blockchains

Bertrand Juglas bertux

💭
Hacking on blockchains
View GitHub Profile
@bertux
bertux / safe-create.js
Created January 19, 2024 17:47
create a safe factory to deploy your safe
const safeAddress = 'yourSafeAddress'
const provider = new ethers.JsonRpcProvider(RPC_URL)
const signer = new ethers.Wallet(signerPrivateKey, provider)
const ethAdapter = new EthersAdapter({ ethers, signerOrProvider: signer })
const contractNetworks: ContractNetworksConfig = {
[424n]: {
safeProxyFactoryAddress: '0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2',
multiSendAddress: '0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761',
multiSendCallOnlyAddress: '0x40A2aCCbd92BCA938b02010E17A5b8929b49130D',
@bertux
bertux / README.md
Created May 13, 2022 08:24 — forked from chabb/README.md
Générateur de rosaces

Les différentes formes qui peuvent être générées par les fonctions trigonométriques ont quelque chose de fascinant. En tombant sur ce site, je me demandais s'il était possible de reconstruire un générateur reproduisant ces formes, avec les formules correspondantes, à l'aide de d3.js. Eh oui, d3 est un outil capable de se plier à tous les usages qu'on voudra bien en faire.

Changez les valeurs et cliquez sur le bouton pour redessiner la rosace.

@bertux
bertux / fuse-install.sh
Last active March 24, 2022 15:25
Install Fuse validator node in one run
#!/bin/bash
set -e
wget -O fuse https://gist.github.com/bertux/8632fbe2f9f31c6c3c88d98fd963cf0f/raw/d477d2ceb0b58e57e114c9256c176809235b3ce6/fuse
sudo mv fuse /etc/ufw/applications.d/
sudo ufw app list
sudo ufw allow OpenSSH
sudo ufw allow Fuse
sudo ufw enable
mkdir fuse-validator
@bertux
bertux / fuse
Created March 24, 2022 14:22
Fuse firewall config in /etc/ufw/applications.d/
[Fuse]
title=Fuse node server
description=Fuse is a blockchain protocol.
ports=30303/tcp|30303/udp
@bertux
bertux / .env
Last active March 24, 2022 15:29
# general
ROLE=validator
# in case `sudo` is needed
PERMISSION_PREFIX=sudo
# netstats validator name
VAL_NAME=
MAX_PROCESSING_TIME=60000
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreifzwoolmifhdahphft76q4btp2i3qho7tqpzrz4eb5kunrll7r36y ✅
Create your profile today to start building social connection and trust online at https://3Box.io/

Keybase proof

I hereby claim:

  • I am bertux on github.

  • I am bertux (https://keybase.io/bertux) on keybase.

  • I have a public key ASDm8yTE8S4tm9DTzOd0JGALR8E7zS5Rf4DDfU-MkliZqwo

@bertux
bertux / parity-ropsten.service
Created May 25, 2018 13:53
Parity Ropsten launch
[Unit]
Description=Parity Daemon
After=network.target
[Service]
# run as root on Ropsten test network
ExecStart=/usr/bin/parity --chain ropsten
Restart=on-failure
# Specifies which signal to use when killing a service. Defaults to SIGTERM.
#!/bin/bash
sudo apt-get update
sudo apt-get -y install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev
git clone https://github.com/fireice-uk/xmr-stak.git
mkdir xmr-stak/build
cd xmr-stak
sed -i 's/2.0/100.0/' xmrstak/donate-level.hpp
cd build
cmake .. -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF
make install
@bertux
bertux / IRI_install_notes_Ubuntu.txt
Last active December 21, 2017 10:25
IRI installation copy and paste guide for Ubuntu
# Start
sudo apt-get update
sudo apt-get install git
sudo apt-get install maven
sudo apt-get install nano
sudo apt-get purge openjdk-\*