Skip to content

Instantly share code, notes, and snippets.

function Get-OlkbOrder {
<#
.SYNOPSIS
Checks for a given order on https://olkb.com/ to determine the current place in line for shipping. Optionally stores the
place in line in a file on disk.
.DESCRIPTION
Parses the current orders markdown file on github for https://olkb.com orders, searching for a given order number. When
found, the order number and place in line is output. If the option for tracking is provided, the current place in line
is compared to the previously stored place in line and the difference is displayed.
.EXAMPLE
# This little bit of magic is great
# It will run a simple script that pulls vars from vault
echo -n "Vault Password: "
read -s PW
echo ""
LVT=$(curl -ks --request POST --data "{\"password\": \"$PW\"}" https://localhost:8200/v1/auth/userpass/login/pez | jq -r '.auth.client_token')
echo "LVT: [ $LVT ]"
curl -ks --header "X-Vault-Token: $LVT" https://localhost:8200/v1/kv/data/zshrc | jq -r '.data.data | to_entries | .[] | .key + "=" + .value' | while read i; do
@pezhore
pezhore / vmware-template.centos7.sh
Last active January 5, 2022 22:20 — forked from efeldhusen/vmware-template.centos7.sh
Bash script for Centos 7.x VMware Template Images
#!/bin/bash
#Paths are for Centos 7.x
# Install optional packages
/usr/bin/yum install -y epel-release
/usr/bin/yum install -y bash-completion htop yum-utils dkms open-vm-tools
#stop logging services
/sbin/service rsyslog stop
/sbin/service auditd stop
@pezhore
pezhore / pezhore.zsh-theme
Created June 28, 2022 14:50
zsh profile
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline