Skip to content

Instantly share code, notes, and snippets.

👨‍💻
Learning Ruby + Rails

Kevin Woblick Kovah

👨‍💻
Learning Ruby + Rails
Block or report user

Report or block Kovah

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View php-hashes-slowest.csv
String length Time Algorithm 2nd slowest Algorithm
2^9 0.0751019 ms gost (raw) snefru (0.0660419 ms)
2^13 0.8158684 ms md2 (raw) sha3-512 (0.4711151 ms)
2^17 13.1139755 ms md2 (raw) sha3-512 (7.2920322 ms)
2^21 204.2510509 ms md2 (raw) sha3-512 (113.0850315 ms)
2^25 3277.1139145 ms md2 (raw) sha3-512 (1859.3208790 ms)
View php-hashes-fastest.csv
String length Time Algorithm 2nd fastest Algorithm
2^13 0.0088215 ms adler32 (raw) fnv164 (0.0119209 ms)
2^17 0.0741482 ms adler32 (raw) md4 (0.1289845 ms)
2^21 1.9049644 ms adler32 (hex) md4 (1.9161701 ms)
2^25 17.7400112 ms adler32 (raw) md4 (30.8220387 ms)
View docker-sync.csv
App docker-sync Min Max Median Difference
Laravel 5.8 off 1035ms 2158ms 1386ms
on 234ms 303ms 251ms -81%
Wordpress 5.2 off 2467ms 3942ms 2722ms
on 881ms 1589ms 1271ms -53%
@Kovah
Kovah / ff_colorthemes.md
Last active Oct 5, 2018
Firefox Color Themes
View ff_colorthemes.md
@Kovah
Kovah / build.sh
Created Jun 8, 2017
InvoicePlane build script
View build.sh
#!/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 Feb 22, 2017
Levenshtein function for MySQL
View mysql-levenshtein.sql
-- 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 Jan 19, 2017
Batch add Custom Buttons to the Wordpress TinyMCE editor
View batch-add-btns-to-wp-tinymce.php
<?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 Apr 28, 2016
Hackernews Theme Special
View hn-theme-special.md

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 Feb 25, 2016
Hacker News Theme Celadon
View hn-theme-celadon.md

Hacker News Theme Celadon

Preview

More information

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

*, *:before, *:after {
@Kovah
Kovah / hn-theme-amber.md
Last active Sep 22, 2016
Hacker News Theme Amber
View hn-theme-amber.md
You can’t perform that action at this time.