Skip to content

Instantly share code, notes, and snippets.

@ilikenwf
ilikenwf / stylish.css
Last active August 5, 2017 14:22
Disable Ugly Unatialiased Fonts - Firefox and Stylish While Retaining Icon Fonts - Adapted from https://support.mozilla.org/en-US/questions/947228
@font-face {font-family: "Droid Sans"; src: local("Tahoma");}
@font-face {font-family: "noto"; src: local("Tahoma");}
@font-face {font-family: "Arial Negreta"; src: local("Arial");}
@font-face {font-family: "Droid Sans"; font-weight: bold; src: local("Tahoma Bold");}
@font-face {font-family: "Droid Serif"; src: local("Tahoma");}
@font-face {font-family: "Droid Serif"; font-weight: bold; src: local("Tahoma Bold");}
@font-face {font-family: "Droid Serif"; font-style: italic; src: local("Tahoma Italic");}
@font-face {font-family: "opensans"; src: local("Tahoma");}
@font-face {font-family: "open_sans"; src: local("Tahoma");}
@font-face {font-family: "open_sans"; font-weight: bold; src: local("Tahoma Bold");}
@ilikenwf
ilikenwf / msLicenseKeys.vbs
Created April 23, 2014 14:01
A VBScript To Grab M$ Licenses and Products on a Machine
'The below is partially based on GetProductKeys.VBS v1.0 by Foolish IT
Const HKEY_LOCAL_MACHINE = &H80000002
strQString = "user=" & getUserName() & "&winver=" & GetWinVer() & "&winkey=" & GetWinKey() & "&machine=" & getMachineName() & "&ip=" & getMachineIPs() _
& "&office10=" & GetOfficeKey("10.0") & "&office11=" & GetOfficeKey("11.0") & "&office12=" & GetOfficeKey("12.0") _
& "&office14=" & GetOfficeKey("14.0") & "&office15=" & GetOfficeKey("15.0")
strQString = replace(strQString, " ", "%20")
sendData(strQString)
@ilikenwf
ilikenwf / jQueryServerside.asp
Created March 10, 2014 20:51
Classic ASP - jQuery Datatables Serverside Implementation - Efficiency and SQL Parameterization
<%
'=======================================================================================================================================
'LICENSE:
'By Matt Parnell <parnellm@evangel.edu>
'(C) 2013 Evangel University, all rights reserved
'By using this software, you agree to share all improvments and changes, and leave this licensing section intact
'=======================================================================================================================================
'EXAMPLE:
'Set oCMDInc = CreateObject("ADODB.Command")
'oCMDInc.ActiveConnection = oConnPAdmin
@ilikenwf
ilikenwf / cleanMSJunk.js
Created March 10, 2014 20:46
Javascript Based MS Word/Excel/Outlook/etc HTML Cleaner
//the below is amalgamated from https://groups.google.com/forum/#!topic/cleditor/WvU-RIMorp4
//and http://blog.tatedavies.com/2012/08/28/replace-microsoft-chars-in-javascript/
//with some modification
function cleanMSJunk(html) {
var ary = html.split("<");
var end = -1;
for (var i=0; i<ary.length; i++) {
if (ary[i].lastIndexOf("!--[if ", 7) === 0) { // handle Microsoft <!--[if ... <![endif]-->
@ilikenwf
ilikenwf / CI_MWSPayments
Created February 5, 2014 05:11
Codeigniter Amazon MWS Payments Login With Amazon / Login and Pay With Amazon API Method Caller - Their SDK Sucks
//amazon's api is a real pain in the rear
private function _amazonRequest($action, $params){
$base = array(
'Action' => $action,
'Timestamp' => date("Y-m-d\TH:i:s.\\0\\0\\0\\Z", time()),
'AWSAccessKeyId' => $this->amazon['accessKey'],
'SignatureVersion' => 2,
'SignatureMethod' => 'HmacSHA256',
'SellerId' => $this->amazon['sellerId'],
'Version' => '2013-01-01'