Skip to content

Instantly share code, notes, and snippets.

View jsmecham's full-sized avatar
💣
Breaking Things…

Justin Mecham jsmecham

💣
Breaking Things…
View GitHub Profile
@jsmecham
jsmecham / build-package.sh
Created June 15, 2017 23:04
Atom build-package
#!/bin/sh
echo "Downloading latest Atom release..."
ATOM_CHANNEL="${ATOM_CHANNEL:=stable}"
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
curl -s -L "https://atom.io/download/mac?channel=${ATOM_CHANNEL}" \
-H 'Accept: application/octet-stream' \
-o "atom.zip"
mkdir atom
### Keybase proof
I hereby claim:
* I am jsmecham on github.
* I am jsmecham (https://keybase.io/jsmecham) on keybase.
* I have a public key whose fingerprint is BAA8 933A E979 B718 AF8E 2AE8 A529 B5C4 3E5A 5F04
To claim this, I am signing this object:
@jsmecham
jsmecham / app-environment-injection.js
Last active August 29, 2015 14:09
Ember CLI Environment Injection Example
//
// Illustrates a potential method for injecting environment settings into the
// Ember environment provided by Ember CLI as a serialized JSON blob in a
// META tag.
//
// You could return this from a backend, such as Rails, that is aware of the
// variables for the given environment and load this with a SCRIPT tag before
// loading the Ember application.
//
(function() {
@jsmecham
jsmecham / gist:c82cc6150be84947d1f0
Last active August 29, 2015 14:08
MySQL Craziness
~ % mysql test
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 279
Server version: 5.6.21 Homebrew
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
[mysql]
user = root
[mysqladmin]
user = root
#
# Justin's "Staple" ZSH Theme
#
# For use with Oh-My-Zsh. Place in ~/.oh-my-zsh/custom.
#
autoload -U add-zsh-hook
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}[%{$fg_no_bold[green]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=""
#
# Justin's IRB Configuration
#
# Support User Gems in Bundler-Managed Applications --------------------------
#
# if defined? ::Bundler
# user_gem_paths = Dir.glob("#{Gem.user_dir}/gems/*")
# user_gem_paths.each do |path|
# gem_path = "#{path}/lib"
@jsmecham
jsmecham / .gemrc
Last active December 25, 2015 15:49
install: --user-install --no-document
update: --user-install --no-document
@jsmecham
jsmecham / .zshrc
Last active October 28, 2017 17:11
#
# Justin's ZSH Configuration
#
# Oh My ZSH Configuration ====================================================
# Path to Oh My ZSH ----------------------------------------------------------
ZSH=$HOME/.oh-my-zsh

Useful Regular Expressions

Received Message Headers

/(^Received:.*?\n)(?=[a-zA-Z-]+:|\n)/im