Skip to content

Instantly share code, notes, and snippets.

View OldskoolOrion's full-sized avatar

Oldskool Orion OldskoolOrion

View GitHub Profile
@OldskoolOrion
OldskoolOrion / LogitechGkeysToF13to24.lua
Last active March 4, 2017 10:52 — forked from forivall/LogitechGkeysToF13to18.lua
Lua script for logitech gaming software to emulate F13-24 with G1-G12 || works in Putty as F13-F24
keymap = {
[1]="f13",
[2]="f14",
[3]="f15",
[4]="f16",
[5]="f17",
[6]="f18",
[7]="f19",
[8]="f20",
[9]="f21",
@OldskoolOrion
OldskoolOrion / normalize_to_utf8_chars.php
Last active March 11, 2017 12:32
PHP function to 'normalize' data, mangled before by some process (e.g. treating UTF-8 as Windows1252).
<?
/*
URL : https://github.com/OldskoolOrion/normalize_to_utf8_chars
Function usable when normalizing input data, that has been mangled before, by :
1) Encoding Problem : Treating UTF-8 Bytes as Windows-1252 or ISO-8859-1
2) Encoding Problem : Incorrect Double Mis-Conversion