- AWS Account
- AWS API User API Key/Secret
- Bitbucket Account
- Create or update an existing Bitbucket repo
- Open https://bitbucket.org/USERNAME/REPO/addon/pipelines/deployments
def mine(self, reward_address): | |
""" | |
Mines a new block into the chain | |
:param reward_address: <str> address where the reward coin will be transferred to | |
:return: result of the mining attempt and the new block | |
""" | |
last_block = self.last_block | |
index = last_block.index + 1 | |
previous_hash = last_block.hash |
## Netcat server command | |
nc -l <unused port # > /dev/null | |
eg: | |
nc -l 1122 > /dev/null | |
## Netcat Client command | |
dd if=/dev/zero bs=9100004096 count=1 | nc <netcat server> <netcat port> | |
eg: | |
dd if=/dev/zero bs=9100004096 count=1 | nc 10.0.1.251 1122 |
# ---- Base Node ---- | |
FROM mhart/alpine-node:10 AS base | |
# install node | |
RUN apk add --no-cache nodejs-current | |
# set working directory | |
WORKDIR /root/nextApp | |
# copy project file | |
COPY package.json . | |
COPY tsconfig.server.json . | |
COPY .npmrc . |
Add --allow-privileged=true
to:
# kubelet config
sudo vim /var/snap/microk8s/current/args/kubelet
#kube-apiserver config
sudo vim /var/snap/microk8s/current/args/kube-apiserver
Restart services:
# Ansible playbook AWS - install docker | |
--- | |
- name: "AWS - Install docker" | |
hosts: aws-docker-vms | |
become: yes | |
tasks: | |
- name: Update all packages | |
yum: | |
name: '*' | |
state: latest |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
skeithc@freedom ~ % ethminer --help | |
Usage ethminer [OPTIONS] | |
Options: | |
Work farming mode: | |
-F,--farm <url> Put into mining farm mode with the work server at URL (default: http://127.0.0.1:8545) | |
-FF,-FO, --farm-failover, --stratum-failover <url> Failover getwork/stratum URL (default: disabled) | |
--farm-retries <n> Number of retries until switch to failover (default: 3) | |
-S, --stratum <host:port> Put into stratum mode with the stratum server at host:port | |
-SF, --stratum-failover <host:port> Failover stratum server at host:port |
Docker image to Virtualbox disk
https://stackoverflow.com/questions/23436613/how-can-i-convert-a-docker-image-into-a-vagrant-virtualbox-box by user blueskin (CC by-sa 3.0)
Find the size of the docker image from docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
#!/usr/bin/env bash | |
# Released into the Public Domain. | |
# | |
# Original implementation in C by Brad Conte (brad@bradconte.com) <https://github.com/B-Con/crypto-algorithms> | |
# Ported to Bash (lol) by Josh Junon (josh@junon.me) <https://github.com/qix-> | |
# | |
# Yes, it's absolutely as slow as it looks. | |
# | |
# The only external dependency it has is on a utility called `od`, |