Given that your key has expired.
$ gpg --list-keys
$ gpg --edit-key KEYID
Use the expire command to set a new expire date:
| import argparse | |
| import logging | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('--verbose', '-v', action='count', default=1) | |
| args = parser.parse_args() | |
| args.verbose = 70 - (10*args.verbose) if args.verbose > 0 else 0 | |
| logging.basicConfig(level=args.verbose, format='%(asctime)s %(levelname)s: %(message)s', |
| package main | |
| // http://play.golang.org/p/jZ5pa944O1 <- will not display the colors | |
| import "fmt" | |
| const ( | |
| InfoColor = "\033[1;34m%s\033[0m" | |
| NoticeColor = "\033[1;36m%s\033[0m" | |
| WarningColor = "\033[1;33m%s\033[0m" | |
| ErrorColor = "\033[1;31m%s\033[0m" | |
| DebugColor = "\033[0;36m%s\033[0m" |
| #!/usr/bin/env bash | |
| VERSION="${1#[vV]}" | |
| VERSION_MAJOR="${VERSION%%.*}" | |
| VERSION_MINOR_PATCH="${VERSION#*.}" | |
| VERSION_MINOR="${VERSION_MINOR_PATCH%%.*}" | |
| VERSION_PATCH_PRE_RELEASE="${VERSION_MINOR_PATCH#*.}" | |
| VERSION_PATCH="${VERSION_PATCH_PRE_RELEASE%%[-+]*}" | |
| VERSION_PRE_RELEASE="" |
| # Set OCTOKIT_ACCESS_TOKEN to authenticate with a PAT | |
| # Something like OCTOKIT_ACCESS_TOKEN=<<TOKEN>> bundle exec ruby create-org-montage-script.rb | |
| require "octokit" | |
| Octokit.auto_paginate = true | |
| # Replace <<ORG_NAME>> with your GitHub org | |
| members = Octokit.org_members "<<ORG_NAME>>" |
| jsonData='[{"name": "name#1","value": "value#1"},{"name": "name#2","value": "value#2"}]' | |
| for row in $(echo "${jsonData}" | jq -r '.[] | @base64'); do | |
| _jq() { | |
| echo "${row}" | base64 --decode | jq -r "${1}" | |
| } | |
| # OPTIONAL | |
| # Set each property of the row to a variable | |
| name=$(_jq '.name') | |
| value=$(_jq '.value') |
This gist describes the process we've used to migrate our Maven package repository from Sonatype Nexus to GitHub Packages. The same process could be used for migrating any Maven package repo that is in the standard layout.
We created a special repository on GitHub to hold all of our Maven packages. You might decide to migrate packages to different repositories, in which case invoke the script multiple times.
The script uses find to look for all of the folders containing poms and upload them. You specify the folder
| name: Deploy Infra ECS | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| env: | |
| description: 'The env to deploy in' | |
| default: 'dev' | |
| # Input has to be provided for the workflow to run | |
| required: true | |
| action: |
Terminals should generate the 256-color palette from the user's base16 theme.
If you've spent much time in the terminal, you've probably set a custom base16 theme. They work well. You define a handful of colors in one place and all your programs use them.
The drawback is that 16 colors is limiting. Complex and color-heavy programs struggle with such a small palette.