This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
usage() { | |
cat >&2 <<EOM | |
usage: $(basename "$0") CRT_FILE BASENAME | |
Import CRT_FILE (in PEM format) into this directory with BASENAME as the | |
prefix. The output file will be named in this format: | |
BASENAME.<issue_year>-<exp_year>.<subj_key_id>.<sha1_fingerprint>.crt | |
EOM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"os" | |
"path" | |
"strings" | |
"syscall" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# engine_pkcs11 came from `brew install engine_pkcs11` | |
require 'tty-prompt' | |
OpenSSL::Engine.load | |
pkcs11_engine = OpenSSL::Engine.by_id('dynamic') do |e| | |
e.ctrl_cmd('SO_PATH', '/usr/local/Cellar/engine_pkcs11/0.1.8/lib/engines/engine_pkcs11.so') | |
e.ctrl_cmd('ID', 'pkcs11') | |
e.ctrl_cmd('LIST_ADD', '1') | |
e.ctrl_cmd('LOAD') | |
e.ctrl_cmd('PIN', TTY::Prompt.new.ask('PIN:', echo: false)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import sys | |
import zipfile | |
import requests | |
def main(argv): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[General] | |
LoadColor=#000000 | |
Name=AB ish | |
[Background] | |
Color=#000000 | |
ImageFile= | |
Type=0 | |
[Foreground] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Copy a list of issues from one repository to another. | |
require 'date' | |
require 'yaml' | |
require 'pp' | |
require 'json' | |
require 'rest-client' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require 'fileutils' | |
require 'logger' | |
require 'tempfile' | |
require 'tmpdir' | |
require 'octokit' | |
require 'subprocess' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require 'bundler/setup' | |
require 'date' | |
require 'json' | |
require 'rest-client' | |
DefaultStart = '10:30 AM' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
run() { | |
echo >&2 "+ $*" | |
"$@" | |
} | |
if [ $# -lt 2 ]; then | |
cat >&2 <<EOM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
usage() { | |
cat >&2 <<EOM | |
usage: $(basename "$0") COMMON_NAME | |
Generate saml certificate and key in the current directory for COMMON_NAME. | |
For example: |