Skip to content

Instantly share code, notes, and snippets.

View atmos's full-sized avatar
🌴
On vacation

Corey Donohoe atmos

🌴
On vacation
View GitHub Profile
@atmos
atmos / heaven.md
Last active November 23, 2020 22:35
Response to a dude who asked about heaven. https://github.com/holman/feedback/issues/422

@holman got a request about our deployment system, heaven

I know it's not a high priority, but has there been any activity on open-sourcing the core Heaven gem?

There is. I've been working on extracting the non-GitHub specific parts into two gems. This first is a CLI portion called hades. The second is an HTTP API portion called heaven.

When you open source something previously used as in internal tool like Heaven, Hubot, Boxen, etc., how do you manage and hook in the parts that need to stay internal?

Normally I focus around four questions:

@atmos
atmos / shell_output.txt
Created July 19, 2013 01:54
how to iterate quickly on gems without cutting releases.
$ rails new foo
create
create README.rdoc
...
~$ cd foo
~/foo$ git init
Initialized empty Git repository in /Users/atmos/foo/.git/
~/foo$ git add .
~/foo$ git commit -m "initial import"
[master (root-commit) c3392c9] initial import
$home = '/Users/atmos'
$ni_home = "${home}/Documents/Native Instruments"
$dotfiles = "${home}/p/dotfiles"
file {
["${home}/.vimswap", $dotfiles, "${home}/Dropbox"]:
ensure => directory;
}
repository { $dotfiles:
@atmos
atmos / curl
Created April 27, 2013 20:18
rbate's tweet on curl form posting slowdown.
$ time curl -vv -F "foo=bar" google.com -o /dev/null
* About to connect() to google.com port 80 (#0)
* Trying 173.194.40.163...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connected
* Connected to google.com (173.194.40.163) port 80 (#0)
> POST / HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
> Host: google.com
@atmos
atmos / integration_branch.rb
Created February 26, 2013 21:54
Simple integration branching with octokit
#!/usr/bin/env ruby
require 'rubygems'
require 'bundler/setup'
require 'octokit'
class IntegrationBranch
def self.user
ENV['GITHUB_USER'] || ENV['USER']
end
@atmos
atmos / disable-java-safari-6.md
Last active December 13, 2015 23:29
Disable Java in Safari 6

Disable Java in Safari 6

I keep coming across articles talking about browser vulnerabilities related to java. Apparently I don't have to worry about Chrome or Firefox, but it appears Java is enabled by default in Safari.

I had a hard time finding documentation on the correct safari defaults to set to disable Java in Safari 6.

If you really need to run java for some shit, keep it off by default and turn it on when needed.

To Disable

@atmos
atmos / builds.md
Last active December 10, 2015 01:08
stuff for your buildpacks
def run!
pid = fork do
exec_pid = fork do
$0 = "heaven[#{Heaven.current_sha}] : executing deployment of #{application_name}"
out_file = File.new(log, "w")
STDIN.reopen("/dev/null")
STDOUT.reopen(out_file)
STDERR.reopen(out_file)
@atmos
atmos / .vimrc
Created November 17, 2012 09:26
let g:NERDTreeMapOpenSplit = 'i'
set nu
set et
set ts=2
set sw=2
set ruler
colorscheme vibrantink
"set columns=145
"set lines=48
set guioptions-=T
@atmos
atmos / .vimrc
Created November 17, 2012 01:23
let g:NERDTreeMapOpenSplit = 'i'
set nu
set et
set ts=2
set sw=2
set ruler
colorscheme vibrantink
"set columns=145
"set lines=48
set guioptions-=T