Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am justanwar on github.
  • I am anwarp (https://keybase.io/anwarp) on keybase.
  • I have a public key ASAwlyeIwK6UczPAAdWYxnh-q_Emm0jn4SAdXbPkRGzq5Ao

To claim this, I am signing this object:

@justanwar
justanwar / zcoin
Last active September 2, 2019 05:55
Logrotate Zcoin's debug file
# An example of a logrotate file for Zcoin's debug.log
# This assumes that Zcoin data directory is in the default location. Please modify accordingly.
# The file should be created at /etc/logrotate.d/zcoin
/home/username/.zcoin/debug.log {
daily
missingok
rotate 28
compress
copytruncate
# Install monit if not installed
sudo apt install monit
# Edit monit control file
sudo nano /etc/monit/monitrc
# Uncomment the following lines
set httpd port 2812 and
use address localhost # only accept connection from localhost
allow localhost # allow localhost to connect to the server and
@justanwar
justanwar / update_zcoin_mns.yml
Last active December 20, 2019 10:35 — forked from goodc0re/update_zcoin_mns.yml
Ansible playbook to update a zcoin masternode on Ubuntu, update Ubuntu with apt and reboot if needed
# update_zcoin_mns.yml
---
- hosts: zcoin_masternodes
vars_files: vault.yml
become: yes
become_method: sudo
tasks:
- name: Download zcoin binary
become: no
get_url: