Skip to content

Instantly share code, notes, and snippets.

View cjcjameson's full-sized avatar

C.J. Jameson cjcjameson

View GitHub Profile
@cjcjameson
cjcjameson / gist:b430e1b7fc4a196538831a5d40eb7567
Created December 12, 2018 00:33
Changing Description of Security Group tries to create before destroying TF_LOG=debug
Truncated for privacy
...
An execution plan has been generated and is shown below.
2018/12/11 16:25:38 [DEBUG] command: asking for input: "Do you want to perform these actions?"
Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
@cjcjameson
cjcjameson / gist:00994f758b1534d8a6957609376613fd
Created June 11, 2017 03:08
Using devpost for Superposition hackathon submissions
https://superposition.devpost.com/
Use Facebook, Github, or LinkedIn to register
- All integrations powered by OAuth, so you'll need to "authorize application" to connect
- But otherwise, no need to create a separate account. It will say "authorize challengepost".
Challengepost was the company's name before it became Devpost... they pivoted. :)
It'll take you to a home page with lots of other participants
- Find your teammates and join up together
@gpperfmon
Feature: gpperfmon
@gpperfmon_install
Scenario: install gpperfmon
Given the database "gpperfmon" does not exist
When the user runs "gpperfmon_install --port 15432 --enable --password foo"
Then gpperfmon_install should return a return code of 0
Then verify that the last line of the master postgres configuration file contains the string "gpperfmon_log_alert_level=warning"
And verify that there is a "heap" table "database_history" in "gpperfmon"
@gpperfmon
Feature: gpperfmon
@gpperfmon_install
Scenario: install gpperfmon
Given the database "gpperfmon" does not exist
When the user runs "gpperfmon_install --port 15432 --enable --password foo"
Then gpperfmon_install should return a return code of 0
Then verify that the last line of the master postgres configuration file contains the string "gpperfmon_log_alert_level=warning"
And verify that there is a "heap" table "database_history" in "gpperfmon"
root 2 0 0 Oct31 ? 00:00:00 [kthreadd]
root 3 2 0 Oct31 ? 00:00:36 [ksoftirqd/0]
root 5 2 0 Oct31 ? 00:00:00 [kworker/0:0H]
root 6 2 0 Oct31 ? 00:00:00 [kworker/u256:0]
root 8 2 0 Oct31 ? 00:04:45 [rcu_sched]
root 9 2 0 Oct31 ? 00:00:00 [rcu_bh]
root 10 2 0 Oct31 ? 00:00:00 [migration/0]
root 11 2 0 Oct31 ? 00:00:00 [watchdog/0]
root 12 2 0 Oct31 ? 00:00:00 [watchdog/1]
root 13 2 0 Oct31 ? 00:00:00 [migration/1]
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 2 0.0 0.0 0 0 ? S 17:48 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S 17:48 0:02 \_ [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 17:48 0:00 \_ [kworker/0:0H]
root 7 0.0 0.0 0 0 ? S 17:48 0:01 \_ [rcu_sched]
root 8 0.0 0.0 0 0 ? S 17:48 0:00 \_ [rcu_bh]
root 9 0.0 0.0 0 0 ? S 17:48 0:00 \_ [migration/0]
root 10 0.0 0.0 0 0 ? S 17:48 0:00 \_ [watchdog/0]
root 11 0.0 0.0 0 0 ? S 17:48 0:00 \_ [watchdog/1]
root 12 0.0 0.0 0 0 ? S 17:48 0:00 \_ [migration/1]
./garden.stdout.log.2:2405:{"timestamp":"1477957789.555036783","source":"guardian","message":"guardian.create.start","log_level":1,"data":{"handle":"39d42719-565e-4f18-76e2-3615930b8253","session":"360"}}
./garden.stdout.log.2:2406:{"timestamp":"1477957789.555116653","source":"guardian","message":"guardian.create.gc.start","log_level":1,"data":{"handle":"39d42719-565e-4f18-76e2-3615930b8253","session":"360.1"}}
./garden.stdout.log.2:2407:{"timestamp":"1477957789.555145025","source":"guardian","message":"guardian.create.gc.finished","log_level":1,"data":{"handle":"39d42719-565e-4f18-76e2-3615930b8253","session":"360.1"}}
./garden.stdout.log.2:2408:{"timestamp":"1477957789.555168867","source":"guardian","message":"guardian.create.containerizer-create.start","log_level":1,"data":{"handle":"39d42719-565e-4f18-76e2-3615930b8253","session":"360.2"}}
./garden.stdout.log.2:2415:{"timestamp":"1477957789.598308325","source":"guardian","message":"guardian.create.containerizer-create.depot-create.started","log_level":1,"
@cjcjameson
cjcjameson / install.bash
Last active August 29, 2015 14:23
Bootstrap HAWQ Checkman
#!/bin/bash
CHECKMAN_INTERVAL=30 # Seconds between running checks
CHECKMAN_VERSION=25d77c1
get_ci_infrastructure_repo() {
mkdir -p ~/workspace/
if [ ! -e ~/workspace/ci-infrastructure ]; then
git clone git@github.com:Pivotal-DataFabric/ci-infrastructure.git ~/workspace/ci-infrastructure
else
pushd ~/workspace/ci-infrastructure
$(function() {
previewView = new PreviewWidget.View;
previewController = new PreviewWidget.Controller(previewView);
previewController.initializeEventBindings();
});
var PreviewWidget = {
View: function(){
@cjcjameson
cjcjameson / gist:15324cfd5034de2cd8f9
Created May 29, 2014 21:43
ActiveRecord Filenames that Have to be the same (cheatsheet)
*_Migration file:_*
- Filename (snake_case) ~= class name (CamelCase), which inherits < ActiveRecord::Migration
- create_table :names (as a symbol and pluralized) stands for the table name, and its singular version is used in the model and class definitions (see below!)
EXAMPLE: Filename is 20140529101030_create_database.rb
class CreateDatabase < ActiveRecord::Migration
def change
create_table :tasks do |t|
t.text :description #name