Skip to content

Instantly share code, notes, and snippets.

View Kovah's full-sized avatar
🏝️
On vacation

Kevin Woblick Kovah

🏝️
On vacation
View GitHub Profile
@Kovah
Kovah / build.sh
Created June 8, 2017 08:44
InvoicePlane build script
#!/bin/bash
##
# InvoicePlane download package build script
# v0.0.1
#
# Usage
# ./build-ipv1.sh [-l|-b branch|-f filename.zip]
##
@Kovah
Kovah / mysql-levenshtein.sql
Created February 22, 2017 21:29
Levenshtein function for MySQL
-- Levenshtein function
-- Source: https://openquery.com.au/blog/levenshtein-mysql-stored-function
-- Levenshtein reference: http://en.wikipedia.org/wiki/Levenshtein_distance
-- Arjen note: because the levenshtein value is encoded in a byte array, distance cannot exceed 255;
-- thus the maximum string length this implementation can handle is also limited to 255 characters.
DELIMITER $$
DROP FUNCTION IF EXISTS LEVENSHTEIN $$
CREATE FUNCTION LEVENSHTEIN(s1 VARCHAR(255) CHARACTER SET utf8, s2 VARCHAR(255) CHARACTER SET utf8)
@Kovah
Kovah / batch-add-btns-to-wp-tinymce.php
Last active January 19, 2017 16:48
Batch add Custom Buttons to the Wordpress TinyMCE editor
<?php
/**
* Module loader for custom buttons that need advanced TinyMCE support
* @link https://kovah.me/en/programmatically-add-custom-buttons-wordpress-tinymce-editor/
*/
function kvh_tinymce_module_loader()
{
$tinymce_modules = [
'youtube_player' => 'youtube-player',
'review' => 'review',
@Kovah
Kovah / hn-theme-special.md
Last active April 28, 2016 10:18
Hackernews Theme Special

Hacker News Theme Special

Preview

A Hackernews theme that uses Tampermoney and Stylish to overhaul the frontpage styling.

=======================

CSS for Stylish

@Kovah
Kovah / hn-theme-celadon.md
Last active February 25, 2016 14:23
Hacker News Theme Celadon

Hacker News Theme Celadon

Preview

More information

=======================

*, *:before, *:after {
@Kovah
Kovah / hn-theme-amber.md
Last active September 22, 2016 15:45
Hacker News Theme Amber
@Kovah
Kovah / hn-theme-sky.md
Last active February 25, 2016 11:40
Hacker News Theme Sky

Hacker News Theme Sky

Preview

More information

=======================

*, *:before, *:after {
@Kovah
Kovah / keybase.md
Created February 18, 2016 20:41
keybase.md

Keybase proof

I hereby claim:

  • I am kovah on github.
  • I am kovah (https://keybase.io/kovah) on keybase.
  • I have a public key ASD11u_YSmsDGX_tb73XzbMUIgBk6CVNwhrhZqSa58Ciywo

To claim this, I am signing this object: