Skip to content

Instantly share code, notes, and snippets.

View bimlendu's full-sized avatar

Bimlendu Mishra bimlendu

View GitHub Profile
@bimlendu
bimlendu / 1-setup.md
Created December 11, 2022 16:32 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS

Methods of Signing with a GPG Key on MacOS

Last updated September 21, 2022

This Gist explains how to do this using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

There has been a number of comments on this gist regarding some issues around the pinentry-program and M1 Macs. I've finally gotten a chance to try things out on an M1 and I've updated the documentation in 2-using-gpg.md to reflect my findings.

@bimlendu
bimlendu / ecs.sh
Created December 11, 2022 10:40 — forked from alfredkrohmer/ecs.sh
Wrapper script for an etcd cluster on AWS ECS
#!/bin/sh
# This script decides if we are part of the process of bootstrapping a new etcd cluster
# or if we are joining an already existing cluster.
set -eux -o pipefail
# own IP address
own_ip=$(curl -f -s http://169.254.169.254/latest/meta-data/local-ipv4)
@bimlendu
bimlendu / buildcollector.log
Created July 31, 2015 09:34
Hygieia BuildCollector NPE.
[root@hygieia001 collectors]# java -jar hudson-collector-0.1.1.jar --spring.config.name=hudson-collector --debug
_ _ _ _ ______ _ _ _ _____ _ _ _
| | | | (_) (_) | ___ \ (_) | | | / __ \ | | | | |
| |_| |_ _ __ _ _ ___ _ __ _ ______| |_/ /_ _ _| | __| |______| / \/ ___ | | | ___ ___| |_ ___ _ __
| _ | | | |/ _` | |/ _ \ |/ _` |______| ___ \ | | | | |/ _` |______| | / _ \| | |/ _ \/ __| __/ _ \| '__|
| | | | |_| | (_| | | __/ | (_| | | |_/ / |_| | | | (_| | | \__/\ (_) | | | __/ (__| || (_) | |
\_| |_/\__, |\__, |_|\___|_|\__,_| \____/ \__,_|_|_|\__,_| \____/\___/|_|_|\___|\___|\__\___/|_|
__/ | __/ |
|___/ |___/
@bimlendu
bimlendu / private-chef.sql
Created May 19, 2015 02:54
PrivateChefSQLs
# create databases
createdb --template template0 --encoding UTF-8 opscode-pgsql
createdb --template template0 --encoding UTF-8 opscode_chef
# deploy and verify
sqitch --db-name opscode_chef deploy --verify
# create user and grant permissions
create Postgres user opscode_chef
update password