Skip to content

Instantly share code, notes, and snippets.

before_action :set_project, only: [:show, :edit, :update, :destroy]
#snip....
# GET /projects/1/edit
def edit
end
#snip...
@JackPott
JackPott / connectors_total.html.erb
Last active January 3, 2016 19:48
This doesn't feel very Ruby? Basically groups and counts the total number of connectors used in project and is displays a report
<h1>Reports#connectors_total</h1>
<p>Find me in app/views/reports/connectors_total.html.erb</p>
<table>
<tr>
<th>Connector</th>
<th class=align-right>Total</th>
<th class=align-right>Total cost</th>
<th>Order code</th>
</tr>
X X X X X X
X X X
X X X X X X
X X X X X X
X X X
X X X X X X

Keybase proof

I hereby claim:

  • I am JackPott on github.
  • I am chrisaustinatg (https://keybase.io/chrisaustinatg) on keybase.
  • I have a public key whose fingerprint is 09DD 9290 B0FC 8D7B 56B1 B716 125A ED88 C4B4 140D

To claim this, I am signing this object:

# config.fish
set -g theme_display_aws yes
# fish_prompt.fish
function __bobthefish_prompt_aws_profile -S -d 'Put the AWS or AWS_VAULT profile on the powerline'
[ "$theme_display_aws" = 'yes' ]
or return
set aws_glyph \uf0c2 '' # nf-mdi-cloud
@JackPott
JackPott / confluent_topic_ingest.py
Created June 11, 2022 16:29
Import Confluent topic names to Datahub (without schema)
import logging
import os
import re
from dataclasses import dataclass
from typing import List, Optional
import datahub.emitter.mce_builder as builder
import stackprinter
from confluent_kafka import KafkaException
from confluent_kafka.admin import AdminClient, ConfigResource, TopicMetadata