Skip to content

Instantly share code, notes, and snippets.


Luke Arduini luk-

View GitHub Profile
luk- / json_file.js
Created Oct 30, 2011
Small script used to convert text list of JS events to JSON
View json_file.js
fs = require('fs');
var file;
var obj = new Object;
fs.readFile('events.txt', 'utf8', function (err, data) {
if (err) {
return console.log(err);
file = data.split("\n");
luk- / class.uber_api_client.php
Created Nov 3, 2011
This API 2.0 script will disable auto-suspension on every active client's services in Ubersmith
View class.uber_api_client.php
class uber_api_client
const VERSION = '1.0';
protected $options = array(
'debug' => false,
'timeout' => 30,
'server' => 'http://localhost/',
luk- / my.cnf
Created Nov 11, 2011
CentOS 5.6 default my.cnf
View my.cnf
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
View gist:1398716
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us; Silk/1.1.0-80)
AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16 Silk-Accelerated=true
luk- / gist:1440863
Created Dec 7, 2011
Reply from Senator Gillibrand about PROTECT IP / PIPA
View gist:1440863

November 30, 2011

Dear Lucas,

Thank you for writing to me regarding S. 968, the PROTECT IP Act of 2011. I understand your concerns.

I am a cosponsor of this legislation because I believe that we must protect American intellectual property against foreign websites that infringe upon our rights. By empowering the Attorney General of the United States to go after foreign infringing websites, this legislation becomes a necessary tool to ensure that U.S. companies remain competitive in the world marketplace. I recognize that there are technical concerns with the enforcement of this bill that need to be addressed. I am committed to working with my colleagues in the United States Senate to ensure that this legislation protects the Constitutional rights of Americans and does not stifle lawful free speech or innovation on the internet.

Thank you again for writing to express your concerns, and I hope that you keep in touch with my office regarding future legislation. For more information on this and othe

View for_robbie.js
var request = require('request');
View error.php
return PEAR::raiseError ('error message', -1);
//or do
if (!result) {
return PEAR::raiseError ('error message', -1);
View uber_ticket_query.php
require_once dirname(__FILE__) .'/class.uber_api_client.php';
$client = new uber_api_client('http://instance-url/','admin','pass');
try {
$result = $client->call('support.ticket_list',array(
'type' => 'closed',
'order_by' => 'timestamp'
View takeout.json
"48492051" : {
"name" : "Peking Wok"
, "street" : "6 Price Chopper Plz"
, "city" : "Mechanicville"
, "state" : "NY"
, "lat" : "42.910194"
, "lon" : "-73.685118"
, "85729672" : {
View gist:1854506
setopt append_history
setopt inc_append_history
setopt extended_history
setopt hist_find_no_dups
setopt hist_reduce_blanks
setopt glob
You can’t perform that action at this time.