Skip to content

Instantly share code, notes, and snippets.

View Cryptacular's full-sized avatar

Nick Mertens Cryptacular

View GitHub Profile
[user]
name = Nick Mertens
email = nick@thecrypt.co.nz
[color]
ui = auto
[color "status"]
added = green
changed = yellow
@Cryptacular
Cryptacular / Baby.md
Last active January 30, 2020 02:25
Some products, services and resources we found useful when we had our baby. Will update over time with more stuff. Most links are to NZ sites but you should be able to find them elsewhere.

Products

These are products we bought or got given, which we have found very useful. We got most of these on sale so shop around!

  • Cot + change table from Mocka (can buy together or separately)
  • Baby Jogger City Mini GT stroller
  • Bassinet (we got ours for free with the stroller, along with clips to attach it to the stroller)
  • Car capsule (car seat for <6 months) + base (get ISOfix base if your car supports it)
  • 100% cotton or merino blanket for cot and bassinet
  • 100% merino singlets + cardigans for taking baby home
@Cryptacular
Cryptacular / create-avatar.js
Created January 28, 2020 21:56
Create a JPG with supplied picture and name, for printing and sticking on scrum boards. Prerequisites: GraphicsMagick and "gm" npm module.
const gm = require("gm"),
os = require("os");
const args = [...process.argv];
if (args.includes("-h") || args.includes("--help") || args.includes("help")) {
return console.info(`Create printable avatars with name and picture for your Scrum board.
Required:
GraphicsMagick (instructions on https://www.npmjs.com/package/gm)
ban.spellright
christian-kohler.npm-intellisense
dracula-theme.theme-dracula
eamodio.gitlens
Equinusocio.vsc-community-material-theme
Equinusocio.vsc-material-theme
equinusocio.vsc-material-theme-icons
esbenp.prettier-vscode
fabiospampinato.vscode-markdown-todo
jcbuisson.vue
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Amir Salihefendic
" http://amix.dk - amix@amix.dk
"
" Version:
" 6.0 - 01/04/17 14:24:34
"
" Blog_post:
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github
@Cryptacular
Cryptacular / .bashrc
Last active September 24, 2019 21:58
Base template for .bashrc
alias git-clean="git branch --merged | grep -v \"\*\" | grep -v \"master\" | xargs -n 1 git branch -d"
@Cryptacular
Cryptacular / onlyone.p8
Last active August 4, 2019 00:11
GMTK Game Jam 2019 Submission (WIP)
pico-8 cartridge // http://www.pico-8.com
version 18
__lua__
colours = {
transparent = 0,
darkBlue = 1,
purple = 2,
darkGreen = 3,
darkGrey = 5,
lightGrey = 6,
@Cryptacular
Cryptacular / baseConverter.js
Created October 18, 2018 08:35
Base conversion in JavaScript. Solution for this CodeWars kata: https://www.codewars.com/kata/526a569ca578d7e6e300034e
function convert(input, source, target) {
const sourceBase = source.length;
const targetBase = target.length;
let integer = 0;
if (source === Alphabet.DECIMAL) {
integer = parseInt(input, 10);
} else {
for (let i = input.length - 1; i >= 0; i -= 1) {
@Cryptacular
Cryptacular / prepare-commit-msg
Last active June 1, 2018 03:49
This is a Git-hook that looks at your branch name and if it sees a string of numbers at the start of it (e.g. `12345-create-gist`), it will append your commit message with that number, like this: `<rest of your commit message><new line>#12345`. This is mostly for TFS, which will link your commit to the work item with that ID if it finds it in yo…
#!/bin/sh
task=$(git branch | grep '*' | sed 's/* //' | sed 's/\([0-9]*\).*/\1/')
task=${task}
echo "#${task}" >> $1
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 13,
// font family with optional fallbacks