Skip to content

Instantly share code, notes, and snippets.

NOP Sledding

Jameel Haffejee RC1140

NOP Sledding
View GitHub Profile
View bejewelled.clj
(ns ^{:doc
"Bejewelled Blitz (Facebook) player
Clojure program to play Bejewelled Blitz on Facebook
Work in progress
Only works with game on primary monitor
First you need to determine where the game board is on the screen
then set the :x and :y values in the game-loc def appropriately
pfleidi / gridstoretest.js
Created Dec 19, 2010
Example using the mongodb-native module and step to write to mongodb gridfs
View gridstoretest.js
var Db = require('mongodb').Db,
Connection = require('mongodb').Connection,
Server = require('mongodb').Server,
GridStore = require('mongodb').GridStore,
Step = require('step'),
Sys = require('sys'),
Fs = require('fs');
var database;
NorthIsUp /
Last active Oct 12, 2015
Reverse engineering of the nike fuel api to get your fuel
to run you will need to install the following:
pip install requests
pip install simplejson
get the auth token and device id by sniffing the nike app syncing
with with charles
View gist:4193705
if [ $# -lt 1 ]
echo "Usage: ${0##*/} user@host"
echo " Adds your to the desitnation authorized_keys2 file"
exit 1
if [ ! -f ~/.ssh/ ]
pivaldi / .psqlrc
Created Nov 11, 2012
.psqlrc dot file to customize the default psql sessions
View .psqlrc
-- psql prompt can be customized
\set PROMPT1 '%[%033[1;33m%]%M:%>%[%033[1;32m%] %n@%/%R%[%033[0m%]%# '
\set PROMPT3 '>> '
-- Missing LIMIT fetch count is set to 1000
\set FETCH_COUNT 1000
-- Set pager to off
\pset pager off
mickaelandrieu / webservice.js
Created Oct 11, 2013
Use casperJs as a Webservice
View webservice.js
/* from
//define ip and port to web service
var ip_server = '';
//includes web server modules
var server = require('webserver').create();
//start web server
var service = server.listen(ip_server, function(request, response) {
View Getting Started with the JDK on

Installing the Oracle Java 8 JDK on SmartOS

  1. Go to:
  2. Download the "Solaris x64 XX.X MB jdk-8u66-solaris-x64.tar.gz" tarball from the Oracle Java SE site. You won't be able to paste the URL into curl on your SmartOS instance unless you click it first to get the authentication parameter. Regardless, get the tarball any way that you prefer and copy it onto your SmartOS instance.
  3. Extract the tarball and copy it to the location of your choosing.
  4. Globally set the value of the environment variable JAVA_HOME to the path of the JVM.
  5. Update your PATH to include the Java bin directory by setting it to PATH=$PATH:$JAVA_HOME/bin
lucasrizoli / gist:1603274
Created Jan 12, 2012
70 Unique Ways to Encode <
View gist:1603274
View sysmon-7-schema.xml
<manifest schemaversion="4.0" binaryversion="1.01">
<!-- Command-line only options -->
<option switch="i" name="Install" argument="optional" noconfig="true" exclusive="true" />
<option switch="c" name="Configuration" argument="optional" noconfig="true" exclusive="true" />
<option switch="u" name="UnInstall" argument="none" noconfig="true" exclusive="true" />
<option switch="m" name="Manifest" argument="none" noconfig="true" exclusive="true" />
<option switch="t" name="DebugMode" argument="none" noconfig="true" />
<option switch="s" name="PrintSchema" argument="optional" noconfig="true" exclusive="true" />
aktau / sclg4.c
Last active Oct 9, 2019
A simple WinAPI GetAsyncKeyState()-based keylogger, written a very long time ago. I dug it out of the archives because of a Hacker News post ( For educational purposes only, of course.
View sclg4.c
* Copyright (c) 2006, Nicolas Hillegeer
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the