Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
monkeyin' around

Erik Hollensbe erikh

💭
monkeyin' around
  • the internet
View GitHub Profile
View config
// =============================================================================
//
// Waybar configuration
//
// Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration
//
// =============================================================================
{
// -------------------------------------------------------------------------
View monitors
#!env bash
case "$1" in
boot)
(sleep 1 && bash $0 fix) &
;;
fix)
exec &>/dev/null
# transform monitors to form a vertical wall
View monitors
#!env bash
case "$1" in
boot)
(sleep 1 && bash $0 fix) &
;;
fix)
exec &>/dev/null
# transform monitors to form a vertical wall
View monitors
#!env bash
case "$1" in
boot)
(sleep 5 && bash $0 fix) &
;;
fix)
exec &>/dev/null
# transform monitors to form a vertical wall
View monitors
#!env bash
case "$1" in
boot)
(sleep 5 && bash $0 fix) &
;;
fix)
xrandr --dpi 192 \
--output DisplayPort-2 --dpi 192 --primary --auto --rotate right --left-of DisplayPort-0 \
--output DisplayPort-1 --dpi 192 --auto --left-of DisplayPort-2 --rotate right \
View 10kubectl.sh
if [ -x "$(which kubectl)" ] && [ -d ~/.kube ]
then
## usage: k <config file> <kubectl command>
## config file must exist in ~/.kube
k() {
config=$1
shift
KUBECONFIG=~/.kube/${config} kubectl "$@"
}
fi
View soundboard.go
package main
import (
"fmt"
"os"
"path/filepath"
"time"
"github.com/veandco/go-sdl2/sdl"
)
View aestar.go
// Package aestar implements an encrypted tar file that can be extracted by any
// tar program. The filenames and contents are obfuscated; an encrypted index
// is formed to map the obfuscated names to real names.
//
// aestar does not implement all tar features at this time, but as it matures
// it will extend to support most common options.
package aestar
import (
"archive/tar"
View box-base.rb
from "centos:7.3.1611"
ROOT = "/hack/saratk/nic"
env GOROOT: "/usr/local/bin/go",
GOPATH: "/go",
PATH: "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/go/bin:/go/bin"
run "yum install -y gcc gcc-c++ wget autoconf automake libtool curl make g++ unzip pkg-config"
View dev.rb
from "ubuntu"
myuser = "erikh"
homedir = "/home/#{myuser}"
packages = %w[
man
ack-grep
zsh
tmux
build-essential