Skip to content

Instantly share code, notes, and snippets.

@kevinmeziere
kevinmeziere / now.sh
Created June 2, 2022 06:29
now.sh script for tailscale exit node
#!/usr/bin/env bash
# curl -k THIS_RAW_URL | /usr/bin/bash
##
## Defaults
################################
friendly="Tailscale"
version="1.24"
date=$(date "+%Y%m%d%H%M")
@kevinmeziere
kevinmeziere / gist:0680da5afee47d02ec92fb8850585b60
Created January 2, 2020 21:02
Fix makedev package on Ubuntu 14.04 for Joyent SmartOS LX zones
Unfortunately the Ubuntu makedev package fails to detect it's in a container environment on SmartOS LX zones, resulting in errors of the form:
# apt-get install nano
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nano
0 upgraded, 1 newly installed, 0 to remove and 141 not upgraded.
1 not fully installed or removed.
{
"cpu_cap": 100,
"image_uuid": "be77bc68-8339-11e7-b651-002590a63bc7",
"hostname": "test",
"uuid": "fe0b9b05-1f3e-4b11-b0ae-8494bb6ecd53",
"max_physical_memory": 1024,
"quota": 100,
"alias": "test",
"nics": [
{
(d/ul {:class "list-group"}
(let [hchanged? (= (:hostname state) (:hostname conf))]
(group-li "Hostname: "
(g/row
{}
(g/col {:md 10}
(i/input {:type "text"
:on-change (->state owner :hostname)
:value (:hostname state)}))
main() {
for CONF in `find /opt/local/fifo*/etc -name "*.conf"`
do
cat "$CONF" | grep -v "distributed_cookie" > "$CONF".tmp
transfer "$CONF".tmp
done
};
transfer() {
tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --silent --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --silent --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; };
#!/bin/bash
AWK=/usr/bin/awk
SED=/usr/bin/sed
CERTDIR="/var/db/fifo"
CERTPREFIX="fifo"
DAYS=1825 # 5 years
CERTSUBJECT="
C=AU
ST=Victoria
@kevinmeziere
kevinmeziere / .bash_profile
Created December 5, 2015 06:23 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management

Keybase proof

I hereby claim:

  • I am kevinmeziere on github.
  • I am ipalreadytaken (https://keybase.io/ipalreadytaken) on keybase.
  • I have a public key whose fingerprint is 9100 9FAF DC4B 5DFA 530D 2383 A182 2E64 C910 208F

To claim this, I am signing this object:

Node 1:
Fifo 1 (sniffle, snarl, howl, wiggle, jingles)
Leo Gateway
Node 2:
Fifo 2 (sniffle, snarl, howl, wiggle, jingles)
Leo Storage 1