Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am phinze on github.
  • I am phinze (https://keybase.io/phinze) on keybase.
  • I have a public key whose fingerprint is 00F8 AB3B 96AA 8BCB D650 E426 70B9 4C31 D170 FB29

To claim this, I am signing this object:

hello self
diff --cc lib/plugin_setting_with_account.rb
index 48c1009,3892c2e..0000000
--- a/lib/plugin_setting_with_account.rb
+++ b/lib/plugin_setting_with_account.rb
@@@ -9,15 -9,47 +9,56 @@@ PluginSetting.class_eval d
def validate_uniqueness_of_name?
false
end
++<<<<<<< HEAD
+
@phinze
phinze / source_canvas_console.rb
Last active August 29, 2015 14:08
notorious content migration
migrating_shard_id = 3276
Shard.find(migrating_shard_id).activate!
File.open('/tmp/media_ids', 'r') { |f| MediaObjects.all.each { |m| f.puts m.media_id } }
# then scp the file from job101-vpc to work00 of target notorious env
variable "dep" { }
resource "aws_instance" "bar" {
ami = "ami-408c7f28"
instance_type = "t1.micro"
tags {
DependsOn = "${var.dep}"
}
}
@phinze
phinze / foo.md
Last active August 29, 2015 14:17

Homebrew Cask

"To install, drag this icon..." no more!

Let's see if we can get the elegance, simplicity, and speed of Homebrew for the installation and management of GUI Mac applications such as Google Chrome and Adium.

Homebrew-cask provides a friendly homebrew-style CLI workflow for the administration of Mac applications distributed as binaries.

=== RUN TestProvider
--- PASS: TestProvider (0.00s)
=== RUN TestProvider_impl
--- PASS: TestProvider_impl (0.00s)
=== RUN TestAccBlockStorageV1Volume_basic
openstack_blockstorage_volume_v1.volume_1
openstack_blockstorage_volume_v1.volume_1
--- PASS: TestProvider (0.00s)
--- PASS: TestProvider_impl (0.00s)
--- PASS: TestAccBlockStorageV1Volume_basic (28.24s)
--- FAIL: TestAccComputeV2FloatingIP_basic (28.82s)
testing.go:121: Step 0 error: Error applying: 1 error(s) occurred:
* 1 error(s) occurred:
* 1 error(s) occurred:
resource "aws_vpc" "web" {
cidr_block = "10.0.0.0/16"
}
resource "aws_subnet" "web-2a" {
vpc_id = "${aws_vpc.web.id}"
cidr_block = "10.0.1.0/24"
availability_zone = "us-west-2a"
}
resource "aws_subnet" "web-2b" {
@phinze
phinze / main.tf.js
Created April 15, 2015 14:28
Terraform Example: injecting config into an AWS instance
variable "instance_type" {
default = "t2.micro"
}
variable "region" {
default = "us-west-2"
}
variable "custom" {
default = "env-specific-value"