Skip to content

Instantly share code, notes, and snippets.

@jmuchovej
jmuchovej / query-zt-update-hosts.py
Created July 26, 2020 18:01
Query ZeroTier is a script that accesses the ZeroTier API to determine network peers of a given network, then updates /etc/hosts to allow for human-like name access.
"""Query ZeroTier is a script that accesses the ZeroTier API to determine network peers
of a given network, then updates /etc/hosts to allow for human-like name access.
(c) Copyright 2020 John Muchovej
"""
#!/usr/bin/env python
import os
import sys
import json

Keybase proof

I hereby claim:

  • I am ionlights on github.
  • I am ionlights (https://keybase.io/ionlights) on keybase.
  • I have a public key ASB0Hk307GxOkMstYpJlxJYlVBvsgX4dCddE5y2Z12DAmQo

To claim this, I am signing this object:

@jmuchovej
jmuchovej / os_finder.sh
Last active March 30, 2017 13:42
Determines the OS of your machine to utilize the proper repositories to install software.
#!/bin/bash
if [[ $# -eq 0 ]]
then
inst = ""
for i in "$@"
do
inst = "$inst $i"
done
fi