Skip to content

Instantly share code, notes, and snippets.

Avatar

bretton bretton

View GitHub Profile
@bretton
bretton / changepass.php
Last active Sep 23, 2020
simple php form to change samba password
View changepass.php
<?php
// original script from https://www.cyberciti.biz/tips/change-linux-or-unix-system-password-using-php-script.html
// adapted by Bretton 2020-09-22
//
// Requirements
// 1. webserver with https and php enabled
// 2. make sure you run visudo first and ensure it has
//
// www-data ALL=(ALL) NOPASSWD: /usr/bin/smbpasswd
//
@bretton
bretton / how-many-days-over-10k.py
Created Aug 2, 2020
How many days over $10k since CZ tweet to "slap yourself" for selling below that price?
View how-many-days-over-10k.py
#!/usr/bin/python3
# coding=utf-8
#
# Dev Log
# how-many-days-over-10k.py
# =======
# 2019-08-02 - https://twitter.com/cz_binance/status/1157075839495761920
# # "Slap yourself,
# # if you sold $BTC under $10,000."
# 2020-07-18 - setup script to pull data from Bitmex UDF and create candles and highlights
@bretton
bretton / bitmex-plotinit-plotly.py
Last active Aug 8, 2020
Bitmex price and volume chart using UDF datasource, with Python and Bokeh for chart
View bitmex-plotinit-plotly.py
#!/usr/bin/python3
# coding=utf-8
#
# Dev Log
# bitmex-plotinit-plotly.py
# =======
# 2020-07-19 - setup script to pull data from Bitmex UDF and create candles and highlights
# - intent is for a base script I can re-run to highlight specific things
# 2020-08-08 - switching to a different chart library
#
@bretton
bretton / toonmusic.md
Last active Oct 22, 2020
bretton's toonmusic journey
View toonmusic.md
@bretton
bretton / old-school-2-dec-2019.md
Last active Mar 7, 2020
Old School II - electronic music playlist
View old-school-2-dec-2019.md

Intro

Over 9-22 December 2019 I did a daily run of 2-3 old school tracks for this Sounds of Stereophoenix electronic music appreciation group.

About 5 years ago I'd spent 4 months cataloguing what others had posted. ~10 tracks listened to, logged, per day.

Over the last year I've been submitting a couple tracks a day, squaring youtube & soundcloud AIs against each other in a sense.

The following was my holiday project, and shows my age. Purpose was to find cool stuff, not just the latest flashy novelty.

This is a subset of a larger collection for the project, specifically the tracks I shared with the group in the same order.

@bretton
bretton / notakey-ubuntu-qemu-kvm.md
Last active Feb 4, 2020
Notakey Authentication Appliance on Ubuntu QEMU-KVM (unsupported by vendor)
View notakey-ubuntu-qemu-kvm.md

Introduction

Setup of an instance of the Notakey Authentication appliance running on Ubuntu with QEMU-KVM.

Sign up for license

Sign up for an evaluation license at https://www.notakey.com/

Download the legacy appliance

After you've signed up you will receive an email with download links for:

  • Vmware ESXi 6.5 or newer
  • Vmware ESXi 6.0 or older
@bretton
bretton / fetchlunohistory.sh
Last active Aug 7, 2019
Fetch Luno trade history and save as CSV for charting purposes
View fetchlunohistory.sh
#!/bin/bash
#
# About
#
# fetchlunohistory.sh
# get date in epoch time of last trade in csv
# get trades from luno from this time
# reverse order
# append to big log of all trades
#
@bretton
bretton / change-of-heart.md
Last active Apr 26, 2019
$obbing over a change of heart
View change-of-heart.md

change-of-heart

$obbing over a change of heart

A trade indicator that flashes a warning when people publicly state positions with reasoning, and then either express doubt over earlier assessment, or panic change their minds.

Input:

  • twitter feeds
  • slack channels
  • telegram
View studio-monitors.md
@bretton
bretton / ln-dashboard-list.md
Last active Jul 2, 2020
Dashboard tools for Lightning servers
View ln-dashboard-list.md

Lightning dashboards

clightning

NodeMonitor

NodeMonitor is a simple Python Django website that makes calls to Bitcoin (bitcoind) and Lightning Network (c-lightning lightningd) nodes and displays the results on a simple 'dashboard' style status page.

Zabbix clightning

You can’t perform that action at this time.