Skip to content

Instantly share code, notes, and snippets.

docker pull gitlab/gitlab-ce
docker run --detach --hostname git.test.smartad.com.au --publish 2180:80 --name gitlab --restart always --volume /srv/gitlab/config:/etc/gitlab --volume /srv/gitlab/logs:/var/log/gitlab --volume /srv/gitlab/data:/var/opt/gitlab gitlab/gitlab-ce:latest
add-apt-repository ppa:certbot/certbot
apt-get update
apt-get install python-certbot-apache
certbot --apache -d example.com -d www.example.com
certbot renew --dry-run
Need to check out
https://medium.com/@richardkall/setup-lets-encrypt-ssl-certificate-on-amazon-cloudfront-b217669987b2
@imylomylo
imylomylo / gist:1011ca329621ce1c4b86cbc3e0de7ac5
Last active March 8, 2019 05:59
Iguana restart terminates unexpectedly from script (hypothesis)
#############
ENV different
#############
My cron restarts iguana like this:
13 0 * * 1 . $HOME/.profile;/home/me/cron_rotate.sh 2>&1
The `. $HOME/.profile` is needed because the cron ENV is not the same as the logged in user ENV.
##########################
@imylomylo
imylomylo / gist:f063396686a4151bf923f4cc7f8a1d8b
Last active March 9, 2019 06:07
Dart server mobile web ubuntu18
sudo apt-get update
sudo apt-get install apt-transport-https
sudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
sudo apt-get update
sudo apt-get install dart
echo 'export PATH="$PATH:/usr/lib/dart/bin"' >> ~/.profile
logout
```
mylo@cakeshop1:~$ komodod -regtest -ac_name=TTEST -ac_supply=5000 &
[1] 31633
mylo@cakeshop1:~$ Created (/home/mylo/.komodo/TTEST/TTEST.conf)
call komodo_args.(komodod) NOTARY_PUBKEY.()
>>>>>>>>>> TTEST: p2p.12379 rpc.12380 magic.8ca6aa5b 2359732827 5000 coins
initialized TTEST at 1552909428
finished loading blocks TTEST
fAddressIndex.0/0 fSpentIndex.0/0
height.0 slowflag.1 possible.1 cmp.0
@imylomylo
imylomylo / komodo-notary-testnet-2019.md
Last active March 30, 2019 16:48
komodo notary testnet 2019 using kvm virtualization

Testnet 2019 Install Barebones

This is a barebones install. It does not lock down SSH for key access only or configure the firewall.

This is on ubuntu 18.04

This part is for KVM VPS using make-vps from my repo Using my make-vps repository, clone an existing VPS template, start it and log in

VPSNAME=nntestnet2019 make clone18
virsh start nntestnet2019
@imylomylo
imylomylo / kmdice-web.md
Last active March 31, 2019 03:56
CORS anywhere and KMDICE

Start & Sync KMDICE

Using komodo-in-a-box admin interface

Still in beta, the repo is komodo-in-a-box.

Using cli to start komodod

If you don't have a data directory or configuration First syncing the chain with this configuration and creating a data dir for wallet if one doesn't exist, otherwise just skip these commands.

mkdir ~/.komodo/KMDICE
@imylomylo
imylomylo / bet.md
Created April 15, 2019 05:15
lightning build fail with bet
cc: error: cli/cli_main.o: No such file or directory
cc: error: cli/lightning-bet.o: No such file or directory
cc: error: common/configdir.o: No such file or directory
cc: error: common/json.o: No such file or directory
cc: error: common/json_escaped.o: No such file or directory
cc: error: common/version.o: No such file or directory
cc: error: ccan-asort.o: No such file or directory
cc: error: ccan-autodata.o: No such file or directory
cc: error: ccan-breakpoint.o: No such file or directory
@imylomylo
imylomylo / komodo-in-a-box.depends.md
Last active May 20, 2019 01:30
komodo-in-a-box apt-get install system dependencies

One command

sudo apt-get update ; sudo apt-get install -y dialog python3 python3-dev python3-pip netcat-openbsd wget curl git sudo coreutils bc haveged pollinate unzip unattended-upgrades cron ntp fail2ban rsyslog build-essential pkg-config git libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip python zlib1g-dev wget bsdmainutils automake libssl-dev libprotobuf-dev protobuf-compiler libqrencode-dev ntp ntpdate jq software-properties-common curl libcurl4-openssl-dev cmake clang libevent-dev libboost-all-dev build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python python-zmq zlib1g-dev wget libcurl4-openssl-dev bsdmainutils automake curl python3 python3-requests libsodium-dev libdb++-dev

These are broken down into Komodo Platform's komodo dependencies, James Lee's komodo dependencies (new pre-alpha features), the convenience packages for the system & komodo-in-a-box dependencies.

Komodo Platform dependencies

sudo apt-get update
@imylomylo
imylomylo / komodo-in-a-box.install-komodo.md
Last active June 8, 2019 07:51
komodo-in-a-box install komodo and nanomsg

If installing iguana-in-a-box notary mgmt - Iguana dependency - nanomsg

cd ~
git clone https://github.com/nanomsg/nanomsg
cd nanomsg
mkdir build
cd build
cmake .. -DNN_TESTS=OFF -DNN_ENABLE_DOC=OFF
cmake --build . 
sudo cmake --build . --target install