Skip to content

Instantly share code, notes, and snippets.

@fliphess
fliphess / create-ubuntu-build-environment.sh
Last active January 27, 2020 21:40
Setup an ubuntu build environment with git-pbuilder
#!/bin/bash
# This script installs a basic build environment for debian/ubuntu
ACTION="${1}"
ARGS="${#}"
UBUNTU_VERSION="trusty"
INSTALL_PACKAGES=(
apt-file
cdebootstrap
@andrewgross
andrewgross / util.rb
Created July 15, 2013 14:20
Helper functions for safely working with node attribute keys.
def has_nested_key?(key, hash)
hash = hash.to_hash
if has_indeterminate_key?(key, hash)
return true
end
hash.values.each do |v|
if v.is_a?(Hash) && has_nested_key?(key, v)
return true
end
@chetan
chetan / yardoc_cheatsheet.md
Last active May 10, 2024 02:53
YARD cheatsheet