Skip to content

Instantly share code, notes, and snippets.

@bmoyles
bmoyles / prompt.sh
Created November 7, 2019 17:37
our standard prompt
color_prompt=
if [[ -z ${NO_COLOR_PROMPT:-} ]] && \
[[ ! -e ${HOME}/.no_color_prompt ]] && \
[[ -r /etc/bash_colors ]]
then
if [[ -x /usr/bin/tput ]] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
@bmoyles
bmoyles / 52-ec2-xen-vbd-devices.rules
Created March 19, 2019 17:29
ec2 vbd and NVMe udev rules and helpers
# ensure any xen virtual block devices named xvdN get a sdN symlink for consistency
KERNEL=="xvd*", PROGRAM="/sbin/ec2udev-vbd %k", SYMLINK+="%c"

Keybase proof

I hereby claim:

  • I am bmoyles on github.
  • I am bmoyles (https://keybase.io/bmoyles) on keybase.
  • I have a public key whose fingerprint is 019E 90E1 9828 719C 4CBC 20AC EFB8 3316 83AC 5742

To claim this, I am signing this object:

@bmoyles
bmoyles / musl-cross.rb
Created July 18, 2016 17:26 — forked from FiloSottile/README.md
Homebrew Formula for musl-based GCC cross-compilers.
class MuslCross < Formula
desc "Linux cross compilers based on musl libc"
homepage "https://github.com/richfelker/musl-cross-make"
head "https://github.com/richfelker/musl-cross-make.git"
bottle do
cellar :any_skip_relocation
end
option "with-arm-hf", "Build cross-compilers targeting arm-linux-musleabihf"
@bmoyles
bmoyles / summary
Created August 20, 2013 00:42 — forked from phaedryx/summary
Original text here: http://www.heartmindcode.com/blog/2013/08/loyalty-and-layoffs/