Skip to content

Instantly share code, notes, and snippets.

View ollieparsley's full-sized avatar

Ollie Parsley ollieparsley

View GitHub Profile
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-oci8.x86_64 0:1.4.9-1.el6 will be installed
--> Processing Dependency: libclntsh.so.11.1()(64bit) for package: php-pecl-oci8-1.4.9-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-pecl-oci8-1.4.9-1.el6.x86_64 (/php-pecl-oci8-1.4.9-1.el6.x86_64)
Requires: libclntsh.so.11.1()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
@ollieparsley
ollieparsley / rightmove_alert.php
Created July 9, 2013 20:06
Get alerts for rightmove properties faster then rightmove themselves. Just set this up as a cron job. Fairly certain they won't be happy. Terms as so boring to read!
<?php
//Search options
$options = array(
"alertEmails" => array(
"email@email.com",
),
"cacheFile" => __DIR__ . "/rightmove.json",
"protocol" => "http",
"host" => "www.rightmove.co.uk",
"port" => 80,
GET /8bc638ddff76a9c01bd6a454de03bd30 HTTP/1.1
Host: stream.datasift.com
Authorization: <username>:<api_key>
Connection: Keep-Alive
@ollieparsley
ollieparsley / datasift_nodejs_multistreaming.js
Created January 24, 2012 14:58
DataSift Node.JS Multistreaming
//var DataSift = require('/path/to/datasift.js'); //When downloading datasift.js
var DataSift = require('datasift'); //When using npm installation
//Create a new instance of the DataSift consumer
var consumer = new DataSift('username', 'api_key');
//Connect
consumer.connect();
//Emitted when stream is connected
@ollieparsley
ollieparsley / gist:1391474
Created November 24, 2011 14:34
Very simple WebSocket load test script
/**
* Very simple load testing script
*
* It will open WebSocket connections and close them as soon as they are open
*
* Warning: This may crash your browser after a few minutes
* To stop the script just close the tab :p
*/
//Place this into a script
@ollieparsley
ollieparsley / gist:1028815
Created June 16, 2011 07:09
@nik photo tweet entities
{
"user": {
"profile_link_color": "10612b",
"protected": false,
"profile_image_url": "http://a0.twimg.com/profile_images/537624822/me_profile_ver2_normal.gif",
"profile_sidebar_border_color": "ffffff",
"name": "Nick Halstead",
"listed_count": 517,
"statuses_count": 9245,
"time_zone": "London",