used in Gist, comments, issues, pull requests and .md
and .markdown
extension files.
- paragraphs are separated by one or more blank lines
- heading from
#
to######
- blockquote
>
- bold <strong>
**
or__
- italic <em>
*
or_
- unordered list
*
or-
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
# Add the following to your shell init to set up gpg-agent automatically for every shell | |
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
source ~/.gnupg/.gpg-agent-info | |
export GPG_AGENT_INFO | |
else |
#!/usr/bin/env bash | |
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/ | |
### | |
# Label definitions | |
### | |
declare -A LABELS | |
# Platform |
#!/usr/bin/env python | |
# | |
# PoC: Manage a git repository in ~/.task that gets updated on changes. | |
# Only pending.data and completed.data are included by default. | |
# You can use "git add" to add whatever files you want to track in your | |
# task folder. | |
# | |
# Inspired by https://gist.github.com/Unode/9366218 | |
# | |
# Works with any Taskwarrior version that supports hooks. |
package main | |
import ( | |
"bytes" | |
"crypto/rand" | |
"encoding/gob" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"time" |
<?php | |
// credential to access github, you should choose between username/password authentication or token (for two step verification accounts) | |
$githubUser = 'YOURGITHUBUSER'; | |
$githubPasswd = 'YOURGITHUBPASSWD'; | |
// or | |
//$githubToken = 'YOURGITHUBTOKEN'; | |
$githubOrganization = 'YOURGITHUBORGANIZATION'; |
I hereby claim:
To claim this, I am signing this object:
# This gist defines a jq filter for combining two JSON objects by resolving conflicts | |
# in a way that is appropriate for mapping relational tables to objects. | |
# "combine" as defined here is both commutative and associative. | |
# Example: | |
# { "id": 123, "son": "Son1", "surname": "S"} | |
# | combine({ "id": 123, "son": "Son2", "surname": "S"}) | |
# produces: { "id": 123, "son": ["Son1",Son2], "surname": "S"} | |
# Combine two entities in an array-oriented fashion. |
Go has a number of low-level crypto APIs which check off marketing bullet-points (got FIPS supprt, check!) but is missing an high-level API usable by mere mortal programmers. Imagine you want to create a document, sign it and verify that document later. Now check out Go's crypto APIs and give up in frustration after an hour of Googling.
The API should encapsulate a half-dozen common operations and make them as easy as possible. Avoid choice where possible, just pick something reasonably secure in 2014 for me and use it! I'm speaking specifically of a few basic actions (yes, this API is very naive/non-idiomatic), call it crypto/easy
:
// create and persist a keypair to the current directory.
// this is just a one-time operation, now we have a keypair to use.
easy.CreateKeyPair()
See https://github.com/romainl/idiomatic-vimrc for an up-to-date version.