The problem I had was how to update ycm_core when it is out of date.
Using pyenv and pyenv virtualenv
Linux 20.04 box with build deps installed:
apt-get -y install build-essential cmake vim python3-dev
ycm installed with: Vundle
#!/usr/bin/env python3 | |
import argparse | |
import base64 | |
import hashlib | |
import hmac | |
def hash_iam_secret(sakey, version): | |
key_bytes = str.encode(sakey) |
Fetch and checkout branches | |
git fetch git@<url>:<repo>.git <branch> | |
git checkout -b <repo>/<branch> FETCH_HEAD | |
Review the changes in vim https://github.com/tpope/vim-fugitive | |
Then merge and fix conflicts | |
git fetch upstream | |
git checkout upstream/main |
git commit --allow-empty -am '<feat:fix:breaking:> Trigger CI build' |
I hereby claim:
To claim this, I am signing this object:
# Allow user to set aws profile in env
# requires aws and jq
# assume working role
awr() {
if [ -x "$(command -v jq)" ] && [ -x "$(command -v aws)" ]; then
export AWS_PROFILE=$1
echo -n "Assumed working role: "
These commands allow you to generate CSRs, Certificates, Private Keys and do other miscellaneous tasks.
Generate a new private key and Certificate Signing Request
openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key
Generate a self-signed certificate
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt
Issue is that the cli lacks access to the keychain
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 123456789112.dkr.ecr.us-west-2.amazonaws.com
Error saving credentials: error storing credentials - err: exit status 1, out: `User interaction is not allowed.`
Fix with:
#! /usr/bin/env python3 | |
import json | |
import sys | |
import yaml | |
f = yaml.safe_load(sys.stdin.read()) | |
json.dump(f, sys.stdout) |