Skip to content

Instantly share code, notes, and snippets.

View amackillop's full-sized avatar

Austin Mackillop amackillop

View GitHub Profile
@unlockedmutex
unlockedmutex / .bashrc
Last active February 7, 2022 07:18
Automatically enter/exit/hop pipenv virtualenvironments
# This will enter any virtualenvironment when there is a pipfile
# to be found in the current directory or a directory higher up
# in the hierarchy. It will exit if none is found, and switch if
# You cd into a different pipenv.
# Append this to your bashrc and it will work whenever you cd around
function search_up_pipfile {
ORIG_DIRECTORY=$PWD
if ! [[ -z $VIRTUAL_ENV ]]; then
@StephenSorriaux
StephenSorriaux / install-kubernetes-archlinux.md
Created October 25, 2018 18:47
Install Kubernetes on bare-metal ArchLinux host

Installing Kubernetes on ArchLinux

Packages

pacman -S curl docker ebtables ethtool wget unzip

Also cfssl is needed but available on AUR, using pacaur

pacaur -S cfssl
object ReadSample extends App {
/**
* The readable trait defines how objects can be converted from a string
* representation to the objects instance. For most of the standard types
* we can simply use the toType function of String.
*/
trait Readable[T] {
def read(x: String): T
}