Skip to content

Instantly share code, notes, and snippets.

View leto's full-sized avatar
🐉
The Blocks Must Flow

Duke Leto leto

🐉
The Blocks Must Flow
View GitHub Profile
@leto
leto / gist:8873213
Created February 7, 2014 22:21
Grab tree id from a nexson file with jq
cat 14.json | jq '.nexml | .trees | .["@id"]'
@leto
leto / gist:f85a4de823dc7172ceb9
Created July 24, 2014 17:14
redis server log ascii art
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 2.8.4 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in stand alone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 8159
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
@leto
leto / gist:f6ec252b0485d839e7ff
Created October 31, 2014 18:26
Crazy git error
fatal: confused by unstable object source data for 2e45c719075a4c1598a4efabb62ec7bddcdc4688
@leto
leto / gist:55aee8fd6c585546c3b2
Last active August 29, 2015 14:10
Vagrant digital ocean plugin woes
$ vagrant install vagrant-digitalocean
Installing the 'vagrant-digitalocean' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
An error occurred while installing nokogiri (1.6.4.1), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.4.1'` succeeds before bundling.
Skip to content
This repository
Explore
Gist
Blog
Help
Duke Leto leto
@leto
leto / gist:18bf8c0172c0f42aa6ed
Created January 23, 2015 04:04
Vagrant destroy -f fails
$ vagrant destroy -f
==> prod: Droplet has not been created
==> local: Destroying VM and associated drives...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["unregistervm", "9582fa8f-e2db-43ee-924d-cf1ae67c8cde", "--delete"]
Stderr: VBoxManage: error: Cannot unregister the machine 'api_local_1421950995066_55115' while it is locked
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Machine, interface IMachine, callee nsISupports
Bringing machine 'prod' up with 'digital_ocean' provider...
==> prod: Using existing SSH key: vagrantfile created this
There was an issue with the request made to the Digital Ocean
API at:
Path: /v2/droplets
URI Params: {:size=>"512mb", :region=>"sfo1", :image=>9801950, :name=>:prod, :ssh_keys=>[622190], :private_networking=>false, :backups=>false, :ipv6=>false, :user_data=>nil}
The response status from the API was:
@leto
leto / gist:1bc85bb6acfd26e22076
Created February 5, 2015 04:29
openresty configure bug?
Invalid option
./openresty_provision.sh: 20: ./openresty_provision.sh: --without-http_lua_module: not found
./openresty_provision.sh: 22: ./openresty_provision.sh: --without-http_headers_more_module: not found
./openresty_provision.sh: 25: ./openresty_provision.sh: --without-http_redis2_module: not found
@leto
leto / gist:97e7c15cc4ff3b700d5a
Last active August 29, 2015 14:15
Example vagrant-aws config
config.vm.define "dev" do |dev|
config.vm.box = "dummy"
dev.vm.provider :aws do |aws, override|
override.vm.provision :shell, :path => "scripts/aws_provision.sh"
override.ssh.private_key_path = 'foo.pem'
override.vm.hostname = "foo.com"
override.ssh.username = "ubuntu"
aws.access_key_id = "REALLY SECRET DONT TELL..."
aws.secret_access_key = "asdf",
aws.keypair_name = "foo dev"
{
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/root_setup.sh"
],
"override": {
"virtualbox": {
"execute_command": "echo 'vagrant' | sudo -S sh '{{ .Path }}'"