Skip to content

Instantly share code, notes, and snippets.

View tarrenj's full-sized avatar
💭
Putting someone elses fire out.

Jake Tarren (DevOps Overlord) tarrenj

💭
Putting someone elses fire out.
View GitHub Profile
@tarrenj
tarrenj / zcube_gw.py
Last active May 17, 2023 14:20
Change the default GW of a zcube encoder as the network changes.
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
A garbage hacky script to automatically reconfigure the default gateway of the zcube video encoder
based on which network route is available.
Preferance is given to one link!
Must be run as root! - This might not be true anymore... /shrug
"""

Keybase proof

I hereby claim:

  • I am tarrenj on github.
  • I am smrtz_ (https://keybase.io/smrtz_) on keybase.
  • I have a public key ASDy0vP8yTQIpeFbt5O9Rv_iABAFisrvr6VhsZXPk8EIUAo

To claim this, I am signing this object:

#! /usr/bin/env bash
# Make sure the user gave the right arguments
# Might not include this in a script to be run automatically, since returning output different from expected might break things....
if [[ $# -eq 0 ]]; then
echo
echo "Example: subtractfiles.sh allFiles.csv filesToBeSubtracted.csv"
echo
exit 1 # Non zero exit code so the build system knows something went wrong and stops...
fi

Development Process

All repositories at the ZenCashOfficial GitHub org are held to the same standards outlined in this section.

We practice "Enforced Gitflow via Protected Branches". The important parts are:

  • All work must be done in feature branches and merged to development.
  • Only development can be merged to master.
  • Developers are not allowed to merge their own pull requests.
  • Pull requests must recive at least one TestedACK before merging.
  • All version numbers must follow Semantic Versioning (semver_bash is recommended).

Keybase proof

I hereby claim:

  • I am tarrenj on github.
  • I am smrtz (https://keybase.io/smrtz) on keybase.
  • I have a public key ASB6JhkWOFxwHnerJNGCqe0VMamQaM2fwAqnLDwCOozfvgo

To claim this, I am signing this object:

@tarrenj
tarrenj / zentester.sh
Last active February 13, 2018 05:44
(Bad) bash script to start and stop zend a bunch of times
#!/usr/bin/env bash
SLEEPY=30
ZEND="/home/smrtz/Builds/zen/src/zend --datadir=/home/smrtz/zen_test_datadir"
ZENCLI="/home/smrtz/Builds/zen/src/zen-cli --datadir=/home/smrtz/zen_test_datadir"
TESTNUM=60
for I in {0..$TESTNUM}; do
echo "TEST NUMBER: "$I
# Start zend and grab PID