Skip to content

Instantly share code, notes, and snippets.

View bcawrse's full-sized avatar

Ben Cawrse bcawrse

View GitHub Profile
@bcawrse
bcawrse / docker_pg_dump.sh
Created April 20, 2021 19:31
script for running pg_dump against a container
#!/bin/bash
#docker_pg_dump.sh
# Thanks to StackOverflow answer by Forth
# https://stackoverflow.com/questions/24718706/backup-restore-a-dockerized-postgresql-database/29913462#29913462
HELP_MSG="
docker_pg_dump:
Call pg_dump on RUNNING docker container.
@bcawrse
bcawrse / Search my gists.md
Created July 22, 2021 18:34 — forked from santisbon/Search my gists.md
How to search gists

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@bcawrse
bcawrse / README.md
Created August 21, 2022 19:49 — forked from matusnovak/README.md
GPG + Git SSH Authentication and Signing on Windows 10

GPG + Git SSH Authentication and Signing on Windows 10

Introduction

This simple Gist will explain how to settup your GPG key to work for SSH authentication (with Git) and Git commit signing on Windows 10. This may seem straightforward on Linux, but there are certain tweaks needed on Windows.

No Cygwin, no MinGW, no Git Bash or any other Linux emulated environment. This works in pure Windows 10.

Software needed

@bcawrse
bcawrse / notes.md
Created December 24, 2022 04:37
GPG Setup Notes

GPG management

What do the files mean that may be in this directory.

[keyid].pub.asc Public ASCII armored primary key [keyid].sec.asc PRIVATE ASCII armored primary key [keyid].rev.crt Revocation certificate for primary key [keyid].ssb.asc PRIVATE ASCII armored Sub keys (should have all public keys, including primary) ssh.pub public authentication subkey exported for ssh