Skip to content

Uploading Boxes to Atlas via Curl

First, you'll need to get an access token.

Then, prepare the upload:

curl ''
View gist:11401896

Banana Bread


  • 1/2 butter
  • 1 c. sugar
  • 2 eggs
  • 3 smashed bananas
  • 2 c. flour - whole grain or white spelt is best
  • 1 tsp. baking soda


Recently, a rather large database provider named MongoHQ had a security incident allowing the attackers to gain access to all of their customer databases.

Although we are not directly affected by this, it does raise a possible question:

  • Are we fully prepared for a similar intrusion?
  • Does our admin/support system have similar vulnerabilities?

Here is an excerpt from their security posting (bold is mine):

View host
# cp host /usr/local/bin/
# I only use host for checking records, and 9 times out of 10
# I copy paste the url from my browser. Chrome adds http[s]://
if [ -n "$1" ]
# 1 parameter, let's do this thing
/usr/bin/host ${1#*//}
View flactomp3
# Converts a directory of .flac files to the proprietary and lossy
# .mp3 format, retaining meta data.
# Note: Requires ffmpeg (brew/apt-get install ffmpeg)
# Use:
# flactomp3 DIRECTORY
#!/usr/bin/env bash
# Run as root (sorry mom) like this: curl http://gist/ | sed 's/defaulthost/pablo/g' | sudo sh
# This basically turns on ssh and sets a new hostname.
scutil --set HostName defaulthost
echo "Succesfully changed hostname to `hostname`"
echo "Enabling SSH access.."
systemsetup -setremotelogin on
View gist:4069203
# Example:
prompt() {
PS1="${GREEN}\W\$(parse_git_branch) $BROWN\$(parse_vm_state) ${GREEN}${GREY}"
PS2="\[[33;1m\]continue \[[0m[1m\]> "
parse_git_branch() {
View git-completion.bash
# bash/zsh completion support for core Git.
# Copyright (C) 2006,2007 Shawn O. Pearce <>
# Conceptually based on gitcompletion (
# Distributed under the GNU General Public License, version 2.0.
# The contained completion routines provide support for completing:
View gist:2403889
Google Weather API Conditions. Compiled by Dennis Delimarsky
<!-- Last updated: March 12, 2010 -->
<type>PARTLY SUNNY</type>
<type>RAIN AND SNOW</type>
View gist:2209293
$ git clone git:// ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/sublimelint/
Something went wrong with that request. Please try again.