Skip to content

Instantly share code, notes, and snippets.

View joshk0's full-sized avatar

Joshua Kwan joshk0

View GitHub Profile
@joshk0
joshk0 / Dockerfile
Created February 22, 2021 23:40
cloud run cube.js
FROM binxio/gcp-get-secret AS gcp-get-secret
FROM cubejs/cube:latest
COPY --from=gcp-get-secret /gcp-get-secret /usr/local/bin/
# Add all our local schema definitions
COPY schema /cube/conf/schema
COPY cube.js /cube/conf/cube.js
# Retrieve any secrets such as the CUBEJS_API_SECRET
[kube(local) git(8292bae) branch(master)]
muramasa:~/src/pippio{0}% docker info
Containers: 85
Running: 44
Paused: 0
Stopped: 41
Images: 2985
Server Version: 1.10.3
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
@joshk0
joshk0 / keybase.md
Last active October 11, 2018 20:14

Keybase proof

I hereby claim:

  • I am joshk0 on github.
  • I am joshk0 (https://keybase.io/joshk0) on keybase.
  • I have a public key ASD5KiQ-D1c7br1uP9ZSlrwFNoy7lS7rTmKByfB8bCT6Iwo

To claim this, I am signing this object:

@joshk0
joshk0 / gist:374f439ecf1242653529
Last active August 29, 2015 14:16
PWM encrypt/decrypt in Ruby
# This ruby script lets you encrypt and decrypt secrets stored in PwmConfiguration.xml files.
# The secret key consists of the 'createTime' attribute of the root element of the file, concatenated
# with the string StoredConfiguration. You can use this to auto generate compliant PwmConfiguration.xml
# files if you control the createTime.
require 'base64'
require 'openssl'
require 'digest/sha1'
def pwm_cipher