Skip to content

Instantly share code, notes, and snippets.

View avivrosenberg's full-sized avatar

Aviv A. Rosenberg avivrosenberg

View GitHub Profile
@avivrosenberg
avivrosenberg / docker_mac_postgres_bug.sh
Created July 24, 2016 07:34
Postgres-based image that doesn't run on Docker for mac beta
#!/bin/bash
set -e
####
## Settings:
DOCKER=${DOCKER:-"docker"} # How to run docker in this environment
CONTAINER_TEMP=test_db_bug # Name of a continer we'll create that will be used to load the new data into
CONTAINER_FINAL=test_db_bug_final # Name of a second container we'll create to copy the final data from the first one
IMAGE_FINAL=test-db-bug # Name of final image we'll create
@avivrosenberg
avivrosenberg / brew-updated.rb
Created October 18, 2014 09:16
Homebrew extension to update homebrew and show outdated brews in one command.
# require the Homebrew commands needed
require 'cmd/update'
require 'cmd/outdated'
###
# Just a helper to print bold output
def bold(str)
console_bold="\e[1m"
console_reset="\e[0m"
"#{console_bold}#{str}#{console_reset}"