Skip to content

Instantly share code, notes, and snippets.

[localhost] TASK: install package (debug)> from jinja2 import Environment
[localhost] TASK: install package (debug)> e = Environment()
[localhost] TASK: install package (debug)> t = e.from_string(task.args['msg'])
[localhost] TASK: install package (debug)> t.render(task_vars)
'foo'
or
@wmudge
wmudge / RenewExpiredGPGkey.md
Created February 27, 2023 14:39 — forked from TheSherlockHomie/RenewExpiredGPGkey.md
Updating expired GPG keys and backing them up 🔑🔐💻

Updating expired GPG keys and their backup 🔑🔐💻

I use a GPG key to sign my git commits.

An error like this one might be a sign of an expired GPG key.

error: gpg failed to sign the data fatal: failed to write commit object
@wmudge
wmudge / gitflow-breakdown.md
Created February 1, 2023 17:06 — forked from JamesMGreene/gitflow-breakdown.md
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@wmudge
wmudge / github_gpg_key.md
Last active June 18, 2022 18:39 — forked from ankurk91/github_gpg_key.md
Signing git commits using GPG (Ubuntu/Mac)

Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse