Skip to content

Instantly share code, notes, and snippets.

View onlydole's full-sized avatar
☁️
Cloud Native: where every commit has a silver lining.

Taylor Dolezal onlydole

☁️
Cloud Native: where every commit has a silver lining.
View GitHub Profile
@onlydole
onlydole / output.log
Created July 28, 2020 23:35
Helm Provider Output
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
helm_release.datadog_agent: Creating...
@onlydole
onlydole / harryPotterAliases
Created June 12, 2016 02:50 — forked from graceavery/harryPotterAliases
bash aliases for Harry Potter enthusiasts
alias accio=wget
alias avadaKedavra='rm -f'
alias imperio=sudo
alias priorIncantato='echo `history |tail -n2 |head -n1` | sed "s/[0-9]* //"'
alias stupefy='sleep 5'
alias wingardiumLeviosa=mv
alias sonorus='set -v'
alias quietus='set +v'

Keybase proof

I hereby claim:

  • I am onlydole on github.
  • I am onlydole (https://keybase.io/onlydole) on keybase.
  • I have a public key whose fingerprint is 7B49 13AE C30D 0E4A E5AD C0F0 CC6C 0DB3 E4A2 F92B

To claim this, I am signing this object:

@onlydole
onlydole / Elixir Email Validation
Created May 17, 2016 19:13 — forked from mgamini/Elixir Email Validation
Elixir Email Validation
defmodule EmailValidator do
# ensure that the email looks valid
def validate_email(email) when is_binary(email) do
case Regex.run(~r/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/, email) do
nil ->
{:error, "Invalid email"}
[email] ->
try do
Regex.run(~r/(\w+)@([\w.]+)/, email) |> validate_email
#!/bin/bash
#
# When you are working on your macbook sitting in cafe and you have to go pee,
# you need some way to guard you machine.
#
# Start this script, remove any earphones, and go do the job.
# The assumption is the thief will close the lid of the laptop before taking it away.
# This script detects the closing of the lid and plays some loud audio that will
# likely distract the thief and/or grab attention of nearby people, making the
@onlydole
onlydole / virtualbox_fix.sh
Created August 8, 2015 23:56
Fix for Virtualbox on Mac OS X 10.11 Beta
for bin in VirtualBox VirtualBoxVM VBoxNetAdpCtl VBoxNetDHCP VBoxNetNAT VBoxHeadless; do
sudo chmod u+s "/Applications/VirtualBox.app/Contents/MacOS/${bin}"
done
#!/bin/bash
sudo apt-get update
sudo apt-get -y install linux-image-extra-$(uname -r)
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get -y install lxc-docker
$.each($('.format-epub > a'),
function( k, v ) {
window.open(v.baseURI, '_blank');
}
)
$.each($('a[title="download ePub"]'),
function( k, v ) {
window.open(v, '_blank');
}
)