Skip to content

Instantly share code, notes, and snippets.

@imiric
imiric / Inconsolata-dz-Powerline.otf
Created October 24, 2012 00:39 — forked from qrush/Inconsolata-dz-Powerline.otf
vim-powerline patched fonts
#!/bin/bash
# Hosted Zone ID e.g. BJBK35SKMM9OE
ZONEID="enter zone id here"
# The CNAME you want to update e.g. hello.example.com
RECORDSET="enter cname here"
# More advanced options below
# The Time-To-Live of this recordset
@imiric
imiric / version.py
Created June 17, 2016 11:13 — forked from thoron/version.py
Added 'with' statment handling to 'closeable' operations and readlines() -> readline()
# -*- coding: utf-8 -*-
# Author: Douglas Creager <dcreager@dcreager.net>
# This file is placed into the public domain.
# Calculates the current version number. If possible, this is the
# output of “git describe”, modified to conform to the versioning
# scheme that setuptools uses. If “git describe” returns an error
# (most likely because we're in an unpacked copy of a release tarball,
# rather than in a git working copy), then we fall back on reading the
# contents of the RELEASE-VERSION file.
@imiric
imiric / gpg2qr.sh
Last active April 1, 2019 19:00 — forked from joostrijneveld/gpg2qrcodes.sh
Producing printable QR codes for persistent storage of GPG private keys
#!/bin/bash
# Main credit goes to joostrijneveld on github:
# Ref: https://gist.github.com/joostrijneveld/59ab61faa21910c8434c
# adopted to "I want to have a pdf with a textual AND QR key to directly
# print it and put it in the bank safe" needs by Jan Stuehler,
# 2015-10-05.
if [ $# -lt 2 ]
then
echo "Please specify [Key ID] and an arbitrary [Name]"
@imiric
imiric / pass.zsh
Last active November 30, 2019 13:43 — forked from vvicaretti/pass.zsh
pass.zsh
# -*- sh -*-
#
# Original plugin: https://gist.github.com/vvicaretti/cb4b2e27dadaf458eb3bc4ac215cf5fd
# Changes:
# - Made lookup case-insensitive
#
# [Pass](https://www.passwordstore.org/)
# the standard unix password manager
# [zaw](https://github.com/zsh-users/zaw)
# zsh anything.el-like widget
@imiric
imiric / formdata.js
Last active January 14, 2021 10:04 — forked from Rob--W/html5-formdata-polyfilll.js
FormData polyfill for k6
/*
* FormData polyfill for k6
* (c) 2014 Rob Wu <rob@robwu.nl>
* License: MIT
*
* This simplifies the creation of multipart/form-data requests from k6 scripts.
* It was adapted from the original version by Rob Wu to remove references of
* XMLHttpRequest and File related code which isn't supported in k6.
**/
(function(exports) {