Skip to content

Instantly share code, notes, and snippets.

@rajbos
rajbos / api-calls.sh
Last active January 17, 2024 09:14
Load jwt token from GitHub App for authentication
#!/bin/bash
# Purpose
# grab the jwt token
# make API calls as the GitHub App used
# get a temporary jwt token from the key file and app id (hardcoded in the file:)
generated_jwt=$(./github-app-jwt.sh)
github_api_url="https://api.github.com/app"
@codification
codification / docker-compose-haproxy-with-logging.yml
Created February 22, 2017 22:12
Docker haproxy with http logging through syslog proxying to local port (for debugging)
version: "2"
services:
rsyslog:
image: jumanjiman/rsyslog
proxy:
image: haproxy
volumes:
- ./:/cfg
volumes_from:
- rsyslog