Skip to content

Instantly share code, notes, and snippets.

0x7d24558fB9fb51022aE180074718738f1a824f61
@rllola
rllola / gist:0e46feae5a41cb7d29352a84fb388304
Created June 3, 2018 11:11
Dogecoin 1.14-branding install ubuntu 18.04
# Clone the repo
git clone git@github.com:dogecoin/dogecoin.git
# Pick the correct branch/version
cd dogecoin
git checkout 1.14-branding
# Install dependencies
sudo apt install build-essential libtool autotools-dev autoconf pkg-config libssl-dev
@rllola
rllola / grin-miner
Created July 1, 2018 17:56
Instruction to build grin-miner on ubuntu 16.04
# Update
$ apt update
# Install cargo
$ curl https://sh.rustup.rs -sSf | sh; source $HOME/.cargo/env
# Install dependencies (not sure about libclang-dev llvm-dev clang)
$ apt install cmake libclang-dev llvm-dev clang libncurses5-dev libncursesw5-dev
# Build
@rllola
rllola / electron-forge démo
Created July 3, 2018 15:02
Comande pour la démo pour electron-forge
# Init
$ electron-forge init --template=react electron-example
# Start
$ npm start
# Package
$ npm run package
# Make
@rllola
rllola / grin.toml
Created July 19, 2018 09:19
Grin config file in docker
# Sample Server Configuration File for Grin
#
# When running the grin executable without specifying any command line
# arguments, it will look for this file in three places, in the following
# order:
#
# -The working directory
# -The directory in which the executable resides
# -[user home]/.grin
#
@rllola
rllola / install-pyqt5.sh
Last active May 11, 2020 12:39
How to install PyQt5 (5.11.2) with from source for python2.7
#!/bin/bash
NP="$(nproc)"
PYQTSIP_VERSION=4.19.14
QT5_VERSION=5.12
QT5_PATH=/opt/qt512
@rllola
rllola / updater.js
Last active December 16, 2018 06:34
Electron updater code basic example
const electron = require('electron')
const APP_VERSION = require('../package.json').version
const AUTO_UPDATE_URL = 'https://api.update.rocks/github.com/rllola/electron-example/update/' + process.platform + '/' + APP_VERSION
function init () {
if (process.platform === 'linux') {
console.log('Auto updates not available on linux')
} else {
initDarwinWin32()
Hello World !
@rllola
rllola / script.py
Created January 19, 2021 20:08
Get all the environement variable in electron project
import re
import glob
javascript_files = glob.glob('**/*.js', recursive=True)
variables = []
for file in javascript_files:
with open(file, 'r') as f:
javascript_blob = f.read()
@rllola
rllola / ecdsa_private_recovering.py
Last active October 5, 2022 22:50
Recover private key from ECDSA signature
#!/usr/bin/env python3
from Crypto.Util.number import inverse
import ecdsa
import random
import hashlib
C = ecdsa.SECP256k1
G = C.generator
n = C.order