Skip to content

Instantly share code, notes, and snippets.

@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'
@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 / Session_hybrid.php
Last active August 29, 2015 14:06
Hybrid Cookie or DB session driver for codeigniter - allows for API or cookie based auth
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.2.4 or newer
*
* NOTICE OF LICENSE
*
* Licensed under the Open Software License version 3.0
*
@ilikenwf
ilikenwf / aegishosts.txt
Created March 4, 2016 03:15
hosts from aegis telemetry blocker in hosts file format
0.0.0.0 0.r.msn.com
0.0.0.0 a.ads1.msn.com
0.0.0.0 a.ads2.msads.net
0.0.0.0 a.ads2.msn.com
0.0.0.0 a.rad.msn.com
0.0.0.0 ac3.msn.com
0.0.0.0 act-3-blu.mesh.com
0.0.0.0 activesync.glbdns2.microsoft.com
0.0.0.0 ad.doubleclick.net
0.0.0.0 ads.eu.msn.com
@ilikenwf
ilikenwf / keybase.md
Created October 30, 2016 07:44
keybase.md

Keybase proof

I hereby claim:

  • I am ilikenwf on github.
  • I am mparnell (https://keybase.io/mparnell) on keybase.
  • I have a public key whose fingerprint is 642B 8CAC B8CB B6EB F45B 141E 49C1 372B 0AA0 E5C7

To claim this, I am signing this object:

@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 / README.md
Created February 13, 2015 15:52
JQPlot Meter for Dashing

jqplot meter Integration for Dashing

(C) 2015 Matt Parnell mparnell@dmp.com, Digital Monitoring Products https://dmp.com/

Special thanks to @tylermauthe for helping me get things working properly!

License

Licensed under the GNU GPL v3

Requirements

@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 / createNewObjects.py
Last active September 4, 2017 01:41
SWG Core3 (SWGEmu) Object Create/Import script (kinda crappy but it works)
#!/usr/bin/python
import sys
import os
objectluas=[]
cuserverobjs=[]
def objtypes(x):
return {
@ilikenwf
ilikenwf / keybase.md
Created December 19, 2017 15:46
Keybase

Keybase proof

I hereby claim:

  • I am ilikenwf on github.
  • I am mparnell (https://keybase.io/mparnell) on keybase.
  • I have a public key whose fingerprint is CB16 9483 2B15 998C 8A7B 136F B9DD 0E4F 24D2 5AA0

To claim this, I am signing this object: