Skip to content

Instantly share code, notes, and snippets.

View fr1t2's full-sized avatar
:octocat:
building

fr1t2 fr1t2

:octocat:
building
View GitHub Profile
@fr1t2
fr1t2 / qrl_address_report.py
Created February 14, 2023 01:08
QRL Address Report
"""Generate an address report for a given address"""
import json
import html
import sys
import csv
from datetime import datetime
from ratelimit import limits, sleep_and_retry
import requests
TRANSACTIONS = {}
@fr1t2
fr1t2 / zond-rebuild.sh
Last active November 30, 2020 17:20
rebuild to latest version and relaunch node
#!/bin/bash
# This script will update a running session of zond to the latest
zondDIR='$HOME/zond'
screenName='zond'
isFork=false
source $HOME/.profile
@fr1t2
fr1t2 / rebase
Created March 17, 2020 13:18
Rebase github repo
#!/bin/bash
# first arg is upstream repo name. the bit after github.com/
git checkout master && git pull
git remote add upstream https://github.com/f$1
git fetch upstream
git rebase upstream/master
git push -f origin master
@fr1t2
fr1t2 / ed25519Gen.sh
Last active January 6, 2022 05:55
Linux SSH key generation script to create a ed25519 ssh key. Uses the 'ssh-keygen' command to generate a secure key. The script accepts 3 variables, FILENAME to store, EMAIL for key, ABSOLUTE_PATH to store the key.
#!/bin/bash
## Generate ssh key
#
# ssh-keygen -o -a 100 -t ed25519 -f PATH/FILENAME_ed25519 -C "EMAIL"
#
# minimum paramaters
MINPARAMS=2
ABSOLUTE_PATH=/home/${USER}/.ssh
if [ $# -lt "$MINPARAMS" ]
then
#!/bin/bash
# update and install packages
apt-get update
apt-get -y install swig3.0 python3-dev python3-pip build-essential pkg-config libssl-dev libffi-dev libhwloc-dev libboost-dev wget
## Add SWAP if not exist
## Define some variables
swapFile=/swapfile
swapSize=2G
#
@fr1t2
fr1t2 / addSwap
Last active November 28, 2020 00:38
Add 2Gi swap file to Ubuntu
#!/bin/bash
## Add swap to Ubuntu server
## This assumes that you have root and do not lready have swap setup
#
## Define some variables
swapFile=/swapfile
swapSize=2G
#
## Check for SWAP...
if free | awk '/^Swap:/ {exit !$2}'; then
#!/bin/bash
# add swap space for AWS servers if needed
if free | awk '/^Swap:/ {exit !$2}'; then
echo 'Swap exsists'
else
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
@fr1t2
fr1t2 / installQRL_pip3.sh
Last active August 21, 2019 20:33
Install QRL using pip3 - Ubuntu
#!/bin/bash
# add swap space for AWS servers if needed
if free | awk '/^Swap:/ {exit !$2}'; then
echo 'Swap exsists'
else
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

Keybase proof

I hereby claim:

To claim this, I am signing this object: