Skip to content

Instantly share code, notes, and snippets.

View karabiner-private.xml
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>CM_Storm</vendorname>
<vendorid>0x2516</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>QuickFire_TK</productname>
<productid>0x0011</productid>
</deviceproductdef>
@kevinxw
kevinxw / google.timeline.user.js
Created Apr 16, 2012
Google+ Timeline for the New UI
View google.timeline.user.js
// ==UserScript==
// @name Google+ Timeline for the New UI
// @id google_plus_ui_sucks_pokerface
// @namespace in.co.tossing.toolkit.google
// @description Turn the G+ post stream into a timeline!!
// @license GPL v3 or later version
// @updateURL http://userscripts.org/scripts/source/130658.meta.js
// @exclude *://plus.google.com/_/apps-static/*
// @exclude *://plus.google.com/u/0/_/notifications/frame?*
// @include *://plus.google.com/*
View layout.plus.user.js
// ==UserScript==
// @name Layout+
// @version 0.1
// @id layout_plus_pokerface
// @description Google Plus Forger. Make your own Google Plus.
// @namespace me.senseofti.toolkit.google
// @license GPL v3 or later version
// @exclude *://plus.google.com/_/apps-static/*
// @exclude *://plus.google.com/u/*/_/*
// @exclude *://plus.google.com/up/*
@kevinxw
kevinxw / former.google.plus.plus.user.js
Created Apr 25, 2012
Former G++ Script (Reply function and so on)
View former.google.plus.plus.user.js
// ==UserScript==
// @name G++
// @id google_plus_plus_pokerface
// @namespace me.senseofti.toolkit.google
// @description Google Plus Forger. Make your own Google Plus.
// @license GPL v3 or later version
// @updateURL http://userscripts.org/scripts/source/127787.meta.js
// @exclude *://plus.google.com/_/apps-static/*
// @exclude *://plus.google.com/u/0/_/notifications/frame?*
// @include *://plus.google.com/*
@kevinxw
kevinxw / websocket45.js
Created May 17, 2012
A JavsScript library that help managing HTML5's WebSocket
View websocket45.js
/*!
* WebSocket45 Javascript Library v0.1
* http://code.google.com/p/util45/
*
* Copyright 2011, Kevin Wang
* E-Mail : kevixw@gmail.com
* Dual licensed under the MIT or GPL Version 2 licenses.
*/
/*
@kevinxw
kevinxw / Kissogram.Toolkit.js
Last active Oct 12, 2015
Kissogram Toolkit JS Library
View Kissogram.Toolkit.js
var $K = KissogramToolkit = (function ($$d) {
// some configuration
var DEBUG_ON = false;
// Basic function ==============================================
// for each
function each($arr, $func) {
var item;
if (!$arr)
@kevinxw
kevinxw / auto.plus.one.js
Created Nov 3, 2012
Automatically plus one! for Google+
View auto.plus.one.js
var notif = 100; // +1数,100就是99+的效果了
var plus_one = true; // true为+1,false为取消+1
var po, clocker, more=document.querySelector('.a-n.Op.Ht');
clocker = setInterval(function () {
if ((po=document.querySelectorAll('div[aria-pressed="'+(!plus_one)+'"][plus_plus="1"]')).length<notif) {
console.debug('拉取帖子中.. 等等啦!');
more.click();
}
else {
clearInterval(clocker);
View CIS644_Lab2_LKM_README
This is for CIS644_Lab2_LKM part, also the optional part
View CIS623_CaseStudy1.hs
{- This is case study 1 for CIS 623, by Kevin Wang, Spring 2013 -}
{- here we define the well-formed formula -}
data WFF = VAR String
| NEG WFF
| AND WFF WFF
| OR WFF WFF
| IMPLY WFF WFF
{- here we define the WFF function, which is implemation free -}
@kevinxw
kevinxw / dns_attack_advanced.sh
Last active Dec 15, 2015
CIS644 Lab 4 DNS Pharming
View dns_attack_advanced.sh
#!/bin/sh
# script created for CIS644 Lab 4, Kevin - Mar 18, 2013
# the payload_answer2 is a special raw data file that carefully constructured
# to use this file, you should insert two byte as Transaction ID at position 0 of the file
# then read 11 bytes, insert your random domain name at position 13(2+11)
# then append the fake DNS server IP address in the end of the file
./pacgen2