Skip to content

Instantly share code, notes, and snippets.

View antonwinter's full-sized avatar
🕹️
Beep Boop!

Anton Winter antonwinter

🕹️
Beep Boop!
View GitHub Profile
#!/bin/zsh
## postinstall
pathToScript=$0
pathToPackage=$1
targetLocation=$2
targetVolume=$3
# Optionally replace the value of this variable with the name of your organization.
organizationIdentifier=com.arekdreyer
# Anton's config for Starship
# Don't print a new line at the start of the prompt
add_newline = false
# Order of modules on prompt
format = """\
[](fg:#9A348E)\
$kubernetes\
$username\
@antonwinter
antonwinter / Geiger_WiFi_OLED_Example.ino
Created June 5, 2019 03:52 — forked from SyncChannel/Geiger_WiFi_OLED_Example.ino
MightyOhm Geiger Counter Wi-Fi and OLED Upgrade Example
// Example Program for MightyOhm Geiger Counter FeatherWing + OLED Upgrade
// This example is specifically for use with Adafruit Feather HUZZAH (ESP8266)
// It will also work with other Feather boards with modifications
//
// By: Dan Watson
// syncchannel.blogspot.com
// 1/31/2016
// This program makes use of the EspSoftSerial library to receive data from the Geiger counter.
// EspSoftwareSerial: https://github.com/scottwday/EspSoftSerial
### Keybase proof
I hereby claim:
* I am antonwinter on github.
* I am antonwinter (https://keybase.io/antonwinter) on keybase.
* I have a public key whose fingerprint is EBEC 73B6 32E5 A92F AFBE AB78 91B7 FBA3 CE9A 0380
To claim this, I am signing this object:
@antonwinter
antonwinter / whisper-calculator.py
Created December 18, 2015 21:32 — forked from jjmaestro/whisper-calculator.py
whisper-calculator.py: Calculates the size of the whisper storage for the given retention (in frequency:history format)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def archive_to_bytes(archive):
def to_seconds(s):
SECONDS_IN_A = {
's': 1,
'm': 1 * 60,
'h': 1 * 60 * 60,
#!/usr/bin/env python
# Find the IAM username belonging to the TARGET_ACCESS_KEY
# Useful for finding IAM user corresponding to a compromised AWS credential
# Usage:
# find_iam_user AWS_ACCESS_KEY_ID
# Requirements:
#
# Environmental variables:
# AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
# or