Skip to content

Instantly share code, notes, and snippets.

View ewollesen's full-sized avatar

Eric Wollesen ewollesen

  • Salt Lake City, UT
View GitHub Profile
@ewollesen
ewollesen / go.mod
Last active January 12, 2024 23:53
utility for extracting SSO data
module keycloak-idp-phase2
go 1.21.5
@ewollesen
ewollesen / go.mod
Last active January 8, 2024 22:23
A small utility for swapping the hosts from keycloak SSO metadata
module saml-replace
go 1.21.5
@ewollesen
ewollesen / csvknife.go
Last active January 5, 2024 21:24
csvknife: a utility to cut a column from CSV data
package main
// csvknife cuts a specified column from a CSV file.
//
// To build:
//
// go build .
//
// If you're reading this online, you can clone your own copy with a
// command like this:
@ewollesen
ewollesen / display-names.go
Created October 1, 2018 20:17
Parses the EDID info reported by xrandr to print names for monitors
// Copyright (C) 2018 Eric Wollesen <ericw at xmtp dot net>
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@ewollesen
ewollesen / dotfiles-setup
Last active April 5, 2018 15:14
Clone my dotfiles setup
set -e
[ -d ~/.dotfiles ] && mv ~/.dotfiles{,-pre-git}
function config {
/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME" "$@"
}
alias config='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree=$HOME'
git clone --bare git@pain.xmtp.net:df.git "$HOME/.dotfiles"
@ewollesen
ewollesen / i3status-mpd.go
Last active August 14, 2021 20:52
A small go binary for putting MPD status in your i3 statusbar
// Copyright (C) 2018 Eric Wollesen <ericw at xmtp dot net>
// https://gist.github.com/ewollesen/ac51b20c863184c88c56fe9587c663e6
// $ git clone https://gist.github.com/ewollesen/ac51b20c863184c88c56fe9587c663e6 $GOPATH/src/$(hostname -s)/i3status-mpd
// $ go install $(hostname -s)/i3status-mpd
package main
import (
"bytes"
@ewollesen
ewollesen / dnsimple-update-ip
Created December 22, 2015 16:56
Script for updating IP and IPv6 addresses with dnsimple.com.
#!/bin/bash
# Pass RECORD_ID_IP or RECORD_ID_IP6 on the command line
# EMAIL and TOKEN can come from ~/.auth/dnsimple.sh or the command line
set -e
#set -x
[ -r ~/.auth/dnsimple.sh ] && . ~/.auth/dnsimple.sh
Verifying that +ewollesen is my blockchain ID. https://onename.com/ewollesen

Keybase proof

I hereby claim:

  • I am ewollesen on github.
  • I am ewollesen (https://keybase.io/ewollesen) on keybase.
  • I have a public key whose fingerprint is 378D F017 5D64 F25F 86D7 F270 9FE4 DADB 02AB 949F

To claim this, I am signing this object:

@ewollesen
ewollesen / extract-addon.bat
Created February 25, 2014 03:18
World of Warcraft Add-on Installing Batch File
@echo off
c:
cd "\Users\Public\World of Warcraft\interface\addons"
"C:\Program Files\7-zip\bin\7za.exe" x -y "%1"