Skip to content

Instantly share code, notes, and snippets.

View gregzuro's full-sized avatar

Greg Zuro gregzuro

View GitHub Profile
15:49 $ TF_LOG=DEBUG ./mtf dev switches sixgill_greg1.triton.joyent.us-west-1.dev apply
using triton switch image: b2287359-88d9-4528-9714-96abcf136ad7 , version (YYMMDDHHMMSS): 170502090158
using triton push image: 68324663-f663-43ee-9761-7db031584f04 , version (YYMMDDHHMMSS): 170502060811
using triton extractor image: b19173a0-0abf-4801-9048-94d3969d6353 , version (YYMMDDHHMMSS): 170501095212
Press [Enter] key to start terraform ..
2017/05/02 15:49:58 [INFO] Terraform version: 0.9.4 277bbf65d1141207dbb30485bf124b1dba08f80f
2017/05/02 15:49:58 [INFO] Go runtime version: go1.8
2017/05/02 15:49:58 [INFO] CLI args: []string{"/Users/gregz/go/bin/terraform", "apply", "-var-file=../sixgill_greg1.triton.joyent.us-west-1.dev.tfvars", "-var-file=local.tfvars", "-var", "home=/Users/gregz", "-var", "switch_image_uuid=b2287359-88d9-4528-9714-96abcf136ad7", "-var", "push_image_uuid=68324663-f663-43ee-9761-7db031584f04", "-var", "extractor_image_uuid=b19173a0-0abf-4801-9048-94d3969d6353", "-state=../sixgi
15:42 $ TF_LOG=DEBUG ./mtf dev switches sixgill_greg1.triton.joyent.us-west-1.dev apply
using triton switch image: b2287359-88d9-4528-9714-96abcf136ad7 , version (YYMMDDHHMMSS): 170502090158
using triton push image: 68324663-f663-43ee-9761-7db031584f04 , version (YYMMDDHHMMSS): 170502060811
using triton extractor image: b19173a0-0abf-4801-9048-94d3969d6353 , version (YYMMDDHHMMSS): 170501095212
Press [Enter] key to start terraform ..
2017/05/02 15:45:07 [INFO] Terraform version: 0.9.4 277bbf65d1141207dbb30485bf124b1dba08f80f
2017/05/02 15:45:07 [INFO] Go runtime version: go1.8
2017/05/02 15:45:07 [INFO] CLI args: []string{"/Users/gregz/go/bin/terraform", "apply", "-var-file=../sixgill_greg1.triton.joyent.us-west-1.dev.tfvars", "-var-file=local.tfvars", "-var", "home=/Users/gregz", "-var", "switch_image_uuid=b2287359-88d9-4528-9714-96abcf136ad7", "-var", "push_image_uuid=68324663-f663-43ee-9761-7db031584f04", "-var", "extractor_image_uuid=b19173a0-0abf-4801-9048-94d3969d6353", "-state=../sixgi
/* */
create class User extends V
create property User.name string
insert into User set name='Gandalf'
insert into User set name='Aragorn'
insert into User set name='Bilbo'
insert into User set name='Frodo'
insert into User set name='Gollum'
insert into User set name='Legolas'
== CakePHP ACL example from link:http://book.cakephp.org/2.0/en/core-libraries/components/access-control-lists.html[CAKE] in Neo4j
:neo4j-version: 2.0.0
:author: Greg Zuro
:twitter: @softboyled
:tags: LOTR
Simple implementation of the ACO-ARO tree with some permission resolution queries.
//setup
@gregzuro
gregzuro / gist:3bbf3b42bfefeae76a16
Created July 28, 2014 23:35
20140728-1633 - coreos boot failure
# Dom0: ubuntu 14.04
$ sudo ./coreos-install -v -d /dev/sdb -C stable
...
Downloading and verifying coreos_production_image.bin.bz2...
Writing coreos_production_image.bin.bz2 to /dev/sdb...
Success! CoreOS stable current is installed on /dev/sdb
$ sudo parted /dev/sdb
GNU Parted 2.3
Using /dev/sdb
@gregzuro
gregzuro / display.jl
Created June 3, 2013 08:26
Julia: display.jl button1press and bindwheel calls commented out to fix wonkiness on OSX
function display{A<:AbstractArray}(img::A; proplist...)
# Convert keyword list to dictionary
props = Dict{Symbol,Any}()
sizehint(props, length(proplist))
for (k,v) in proplist
props[k] = v
end
# Extract relevant information from the image and properties
img2 = ImageSlice2d(img, props)
imgc = ImageCanvas(cairo_format(img), props)
@gregzuro
gregzuro / algorithms.jl
Created May 30, 2013 23:58
julia algorithms
#### Math with images ####
(+)(img::AbstractImageDirect, n::Number) = share(img, data(img)+n)
(+)(n::Number, img::AbstractImageDirect) = share(img, data(img)+n)
(+)(img::AbstractImageDirect, A::BitArray) = share(img, data(img)+A)
(+)(img::AbstractImageDirect, A::AbstractArray) = share(img, data(img)+data(A))
(-)(img::AbstractImageDirect, n::Number) = share(img, data(img)-n)
(-)(n::Number, img::AbstractImageDirect) = share(img, n-data(img))
(-)(img::AbstractImageDirect, A::BitArray) = share(img, data(img)-A)
(-)(img::AbstractImageDirect, A::AbstractArray) = share(img, data(img)-data(A))