Skip to content

Instantly share code, notes, and snippets.

View bladedoyle's full-sized avatar

Blade Doyle bladedoyle

View GitHub Profile
@bladedoyle
bladedoyle / Dockerfile
Last active March 30, 2016 16:59
Dockerfile for Kibana 4.4.2 on ARM
FROM armv7/armhf-debian
ENV DEBIAN_FRONTEND noninteractive
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9165938D90FDDD2E && \
apt-get -y update && \
apt-get -y upgrade && \
apt-get -y --force-yes install sudo npm wget gzip unzip git
RUN wget http://node-arm.herokuapp.com/node_latest_armhf.deb && \
dpkg -i node_latest_armhf.deb && \
@bladedoyle
bladedoyle / Dockerfile
Last active March 30, 2016 20:11
Dockerfile for Elasticsearch 2.3.0 on ARM
FROM armv7/armhf-debian
# setup debian sources
ENV DEBIAN_FRONTEND noninteractive
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9165938D90FDDD2E && \
apt-get -y update && \
apt-get -y upgrade && \
apt-get -y --force-yes install sudo wget
ADD ejdk-8u77-linux-armv6-vfp-hflt.tar.gz /
@bladedoyle
bladedoyle / Dockerfile
Created September 27, 2017 15:27
OpenBazaar 1 Docker
FROM ubuntu:latest
RUN set -e && \
apt-get update -q && \
apt-get install -y git gconf2 gconf-service gvfs-bin libgtk2.0-0 libnotify4 \
wget libnss3 libxtst6 python xdg-utils libxss1 libasound2
RUN apt-get install -y python python-pip
WORKDIR /ob
@bladedoyle
bladedoyle / README.md
Last active November 16, 2017 12:08
Configure and Run an OpenBazaar 2.0 Server on a Raspberry Pi
@bladedoyle
bladedoyle / letsencrypt-create-or-renew.sh
Created December 26, 2017 21:01
LetsEncrypt - create or renew certificates on startup and once per day - can be used as nginx docker entrypoint
#!/bin/bash
# LetsEncrypt - create or renew certificates on startup and once per day
# can be used as nginx docker entrypoint, or standalone via cron
#
# Ex:
# letsencrypt-create-or-renew.sh /usr/local/nginx/sbin/nginx -c /etc/nginx/nginx.conf
#
# If used in Dockerfile, I suggest the following:
# ENTRYPOINT ["/tini", "--", "/letsencrypt-create-or-renew.sh"]
@bladedoyle
bladedoyle / gist:421d3f508945bdf59c93d515ee420fc9
Last active October 10, 2019 14:41
grin share value notes
Pool finds block 4300 - https://grinscan.net/block/4300
Secondary scale = 529
scale = factor = Scaling difficulty =
for primary pow (cuckatooN solution) where N>=31 = 2^(1+EDGEBITS-24)*N
for secondary pow - (cuckatoo29 solution) = variable, retargeted every block, stored as header field "secondary_scaling"
Example: Three workers contributed shares:
Worker A submitted 50 cuckaroo29 shares
Worker B submitted 25 cuckaroo29 shares and
# This script has been moved into grin-pool/utils repo:
# https://github.com/grin-pool/utils
# MOVED: to https://github.com/grin-pool/nicehash_bot
@bladedoyle
bladedoyle / gist:bcbcd80706268d7223b6de7e8c9fe24d
Last active July 15, 2019 18:07
How to find a transaction on the grin blockchain
How to find a transaction on the grin blockchain:
-------------------------------------------------
If you have the slate file, you can get the shared transaction id with:
cat payment_slate.json | jq .id
The transaction id will look like this:
6d7e9c04-18b4-4b8f-b3a3-b52bd6e9b18a
You can then get the status from your wallet:
@bladedoyle
bladedoyle / grin-cold-storage-wallet-howto.txt
Last active December 3, 2019 19:55
How To: Grin Cold-Storage Wallet
These steps describe one possible method to create a grin wallet offline and add coins - i.e cold-storage.
1) Download the grin-wallet - either the executable or the source code and compile it into an executable
2) Partition and format a USB thumb drive (drive 1)
3) Copy the grin-wallet executable to the USB thumb drive 1
4) Copy a Grin TX slate file to the USB thumb drive 1
5) On a second USB thumb drive, or a CD/DVD, (drive 2) create a bootable image (https://linuxmint-installation-guide.readthedocs.io/en/latest/burn.html)
6) Unplug your network cable
7) Boot the image you created on drive 2
8) Insert and mount the drive with grin-wallet and slate file (drive 1)