Skip to content

Instantly share code, notes, and snippets.

{
["title": "Toyota Production System", "url": "http://amzn.to/1jViEry"],
["title": "Servant Leadership", "url": "http://amzn.to/1P8qM38"]
}
tg23qo-mbp in ~/Downloads
○ → curl -v -H "X-Vault-Token:$VAULT_TOKEN" http://127.0.0.1:8200/v1/secret/foo
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8200 (#0)
> GET /v1/secret/foo HTTP/1.1
> Host: 127.0.0.1:8200
> User-Agent: curl/7.43.0
> Accept: */*
> X-Vault-Token:0ad978f1-ba06-0e5a-c6ef-ab92d169ef9a
>
@gambtho
gambtho / gpg-import-and-export-instructions.md
Created April 11, 2016 00:59 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@gambtho
gambtho / gist:36a2f01e9e7d8c1b0046fb074f1a44ee
Last active August 25, 2021 12:45
Zookeeper.service systemd script for zookeeper
from - http://davidssysadminnotes.blogspot.com/2016/01/installing-apache-kafka-and-zookeeper.html
[smack1]# vi /etc/systemd/system/kafka-zookeeper.service
[Unit]
Description=Apache Zookeeper server (Kafka)
Documentation=http://zookeeper.apache.org
Requires=network.target remote-fs.target
After=network.target remote-fs.target
[Service]
Type=simple
@gambtho
gambtho / kafka.setup.md
Last active June 12, 2016 22:44
kafka setup on rhel7
@gambtho
gambtho / zookeeper.service
Last active June 10, 2016 13:58
zookeeper.service
[Unit]
Description=Zookeeper
Documentation=http://zookeeper.apache.org
Requires=network.target remote-fs.target
After=network.target remote-fs.target
ConditionPathExists=/usr/libexec/kafka
ConditionPathExists=/opt/isv/var/kafka/zookeeper
[Service]
Type=simple
@gambtho
gambtho / kafka.service
Created June 10, 2016 02:07
kafka.service
[Unit]
Description=Kafka
Documentation=http://kafka.apache.org
Requires=network.target remote-fs.target
After=network.target remote-fs.target
ConditionPathExists=/usr/libexec/kafka
ConditionPathExists=/opt/isv/var/kafka/kafka-logs
[Service]
Type=simple
import {
  generateUser,
} from '../../../../helpers/api-integration/v3';

describe('payments - stripe - #checkout', () => {
  let endpoint = '/stripe/checkout';
  let user;

 beforeEach(async () => {
plugins {
id "com.moowork.node" version "0.13"
}
task jsBuild(type: NpmTask) {
dependsOn 'jsTest'
args = ['build']
}
task jsTest(type: NpmTask) {
#!/usr/bin/env python3
import asyncio
from git import Repo
import github3
import json
import os
import time
import subprocess