Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

This simple Gist will explain how to settup your GPG key to work for SSH authentication (with Git) and Git commit signing on Windows 10. This may seem straightforward on Linux, but there are certain tweaks needed on Windows.
No Cygwin, no MinGW, no Git Bash or any other Linux emulated environment. This works in pure Windows 10.
#!/usr/bin/env bash | |
# Inspired by https://blog.nimamoh.net/yubi-key-gpg-wsl2/ | |
# Guide: | |
# Install GPG on windows & Unix | |
# Add "enable-putty-support" to gpg-agent.conf | |
# Download wsl-ssh-pageant and npiperelay and place the executables in "C:\Users\[USER]\AppData\Roaming\" under wsl-ssh-pageant & npiperelay | |
# https://github.com/benpye/wsl-ssh-pageant/releases/tag/20190513.14 | |
# https://github.com/NZSmartie/npiperelay/releases/tag/v0.1 | |
# Adjust relay() below if you alter those paths |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
My name is {{.Name}} and I'm {{.Age}} years old!! |
// ==UserScript== | |
// @name coinsph rate info | |
// @namespace http://your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @author Ken Marfilla | |
// @match http://stackoverflow.com/questions/5258989/manually-adding-a-userscript-to-google-chrome | |
// @include https://coins.ph/* | |
// @grant none | |
// ==/UserScript== |
;; Flycheck JSCS | |
(flycheck-def-config-file-var flycheck-jscs javascript-jscs ".jscs.json" | |
:safe #'stringp) | |
(flycheck-define-checker javascript-jscs | |
"A JavaScript code style checker. | |
See URL `https://github.com/mdevils/node-jscs'." | |
:command ("jscs" "--reporter" "checkstyle" | |
(config-file "--config" flycheck-jscs) | |
source) | |
:error-parser flycheck-parse-checkstyle |
/** | |
* Returns a Bitmap object with a circle crop effect. | |
* This can be used in an ImageView and it must use | |
* "centerCrop" on its scaleType to achieve desired output. | |
* <p> | |
* Reference: {@link} http://stackoverflow.com/a/14051472/2497859 | |
* | |
* @param bitmap The bitmap that we're going to "circle crop" | |
* @return Bitmap with a circle crop overlay | |
* @see android.graphics.Bitmap |