Skip to content

Instantly share code, notes, and snippets.

View kmf's full-sized avatar
🍇
Grape expectations

Karl Fischer kmf

🍇
Grape expectations
View GitHub Profile
/*
Buttondown
A Markdown/MultiMarkdown/Pandoc HTML output CSS stylesheet
Author: Ryan Gray
Date: 15 Feb 2011
Revised: 21 Feb 2012
Reworked for other purposes by Karl Fischer
Revised: 9 Jul 2013
#!/bin/bash
#
# transcode-video.sh
#
# Copyright (c) 2013-2014 Don Melton
#
# This script uses `HandBrakeCLI` (see: <http://handbrake.fr/>) to transcode a
# video file or disc image directory into a format and size similar to videos
# available for download from the iTunes Store.
#
@kmf
kmf / iso2wbfs
Last active August 29, 2015 14:15 — forked from openback/iso2wbfs
#!/bin/bash
#===============================================================================
#
# FILE: iso2wbfs
#
# USAGE: ./iso2wbfs [option] FILE... [wbfs directory]
#
# DESCRIPTION: Uses wit to convert one or more Wii ISO into a WBFS file
# properly named for use on non-WBFS partitions.
#
@kmf
kmf / organize.sh
Last active August 29, 2015 14:16 — forked from phunehehe/organize.sh
#!/bin/sh
# Organize files by file extension
# Written in answer to http://unix.stackexchange.com/q/19110/250
# Configuration (feel free to add your types and change the path)
DOCUMENTS='
pdf
doc
'
@kmf
kmf / sshplus.py
Created May 3, 2016 08:10 — forked from kepler/sshplus.py
SSHplus
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# SSHplus
# A remote connect utlity, sshmenu compatible clone, and application starter.
#
# (C) 2011 Anil Gulecha
# Based on sshlist, incorporating changes by Benjamin Heil's simplestarter
#
# This program is free software: you can redistribute it and/or modify
@kmf
kmf / form.json
Created August 30, 2016 18:37 — forked from anonymous/form.json
A saved configuration for a schema form example, http://textalk.github.io/angular-schema-form/examples/bootstrap-example.html
[
"*",
{
"type": "submit",
"title": "OK"
}
]
@kmf
kmf / .kitchen.local.yml
Created June 22, 2017 14:03 — forked from erichelgeson/.kitchen.local.yml
kitchen.local.yml cache chef package (simple)
driver:
synced_folders: [
["./chef-installer", "/tmp/chef-installer"]
]
provisioner:
chef_omnibus_url: file:///tmp/chef-installer/install.sh # curl can accept a local file:// url
@kmf
kmf / .kitchen.yml
Created August 1, 2020 07:02 — forked from grv87/.kitchen.yml
Test Kitchen - use SSH transport for Windows
driver:
name: ec2
image_search:
name: Windows_Server-2016-English-Full-Base-*
region: eu-west-1
subnet_id: subnet-3615b351
instance_type: t2.micro
aws_ssh_key_id: kitchen
security_group_ids:
- sg-496eaa31
@kmf
kmf / convertjsoncsv.rb
Created October 21, 2020 10:15 — forked from jordan-thoms/convertjsoncsv.rb
Code to convert json to csv, with correct headings Usage: ruby convertjsoncsv.rb <input file> <output file>
require 'csv'
require 'json'
require "set"
json = JSON.parse(File.open(ARGV[0]).read)["results"]
# Pass 1: Collect headings
headings = SortedSet.new
json.each do |hash|
headings.merge(hash.keys)
end
@kmf
kmf / private.xml
Created October 30, 2020 15:48 — forked from localghost666/private.xml
Karabiner setting file for Logitech K360 & M545
<?xml version="1.0"?>
<root>
<!-- Logitech K360 Keyboard -->
<item>
<name>Logitech K360 Keyboard for Mac OS X</name>
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>