Skip to content

Instantly share code, notes, and snippets.

View iaincollins's full-sized avatar
:shipit:

Iain Collins iaincollins

:shipit:
View GitHub Profile
{
"Blocks": [
{
"Id": "24",
"Type": "bang",
"Rule": null,
"Position": {
"X": 309,
"Y": 79
}
@jacqui
jacqui / dear_friend
Created August 20, 2014 21:16
It's been ages since I've received one of these, and I haven't had the opportunity to work with Phillip Morris before!
My Dear Friend, be my expected future partner,
My name is Mr.Phillip Morris. I am a banker here in Ghana. I got your contact from the online data base. I need your help to transfer the sum of US$12,500,000.00 into your account as my foreign investment partner. The money is part of the profits made by our bank last year (i.e. 2013) in the branch where I am the manager. I have already submitted annual report for last year to my bank head office in Accra - Ghana, and they did not notice the excess profits.
Meanwhile, I deposited the US$12,500,000.00 in an escrow account without a beneficiary (Anonymous), to avoid any trace. I cannot be directly connected to this fund because I'm still working with the bank. So, I need your help to transfer this money to your country for you and I to share. I have the desire to invest my own share of the money in any good business venture over there in your Country. I wish to point out 10% of this money to be shared among the charity organization, the remaining 90%, you have
@basilesimon
basilesimon / list.csv
Last active August 29, 2015 14:16
General Election 2015 candidates' Twitter handles
WAKLibDems RuthSmeeth mitch_1uk Go4Lowe ReshamKotecha Jack_Tinley iaingartside votejamesberry CllrScottMann CllrAnnSteward CharlotteHT_ julianknight15 lindsey4wnorth KevinGillottPPC WillJMartindale SamJRushworth RuthCadbury Mari_Williams JoeCookeLabour paulasherriff natashamillward rupahuq Steph_Peacock CatherineWest1 RichardBurgon lloydrm ToddDForeman Jessica_Asato annaturley SachinPatel_87 wdjstraw HuwSECambLabour KateVotesLabour JuliaTickridge clairethomas1 liverlibdems DrJennyWoods gracelibdem liz4stratford JackieLibDem ann4oxfordeast DavidHMalone derbynukipppc Neilkelly13 stevenjbrookes green_mac robjlinds MachanUkip ettiespencer howell_karen charliekiss brisfox CllrMattBrown cllrsrichardson angelamawle ianddriver dinahkeal emmawarman mapesburygreen maureenchilds2 davidschofiel18 CllrRichardLee ukip_swindon idhamramadi kevin_kerrigan1 xanderedz77 paulhalliday PaulForWest
@jacqui
jacqui / alc
Created March 2, 2015 17:08
quick hack to pull concepts, keywords or entities out of any url using AlchemyAPI
#!/usr/bin/env ruby
# USAGE:
#
# ./alc [action] [url]
# ex:
# ./alc keyword http://www.bbc.co.uk/news/magazine-31556802
# ./alc concept http://www.bbc.co.uk/news/magazine-31556802
# ./alc entity http://www.bbc.co.uk/news/magazine-31556802
#
@adamamyl
adamamyl / gins-and-tonics-and-slices
Created April 28, 2015 11:44
gins, tonics, slice
gin | market | tonic | slice
--------------------|---------------------|----------------------------|--------
Beefeater | Domestic | Fever Tree Indian | Lemon
Beefeater | Imported | Indi | Lemon
Beeferater 24 | Domestic | Fever Tree Mediterranean | Lemon
Beeferater 24 | Imported | Indi | Lemon
Bloom | Domestic | Fever Tree Indian | Lemon
Bloom | Imported | Indi | Lime
Bombay Saphire | Domestic | Fever Tree Mediterranean | Lime
Bombay Saphire | Imported | Abbondio | Lime
@Ambroos
Ambroos / Ad.jsx
Created April 29, 2015 14:18
Loading synchronous / document.write-ing ads asynchronously against their will in a React component
import React from 'react';
import $script from 'scriptjs';
require('postscribe/htmlParser/htmlParser.js'); // This is required for postScribe, postScribe is a bit annoying.
const postscribe = require('exports?postscribe!postscribe'); // Needs webpack exports-loader! Otherwise, just require it and use window.postscribe.
// This GlobalAdCodePromise is a simple promise that uses script.js to load a javascript file and then resolve.
const GlobalAdCodePromise = new Promise((resolve) => {
setTimeout(() => {
$script('http://annoying.adprovider.com/ad.js', () => {
@s-kris
s-kris / fauna-adapter.js
Last active April 19, 2022 12:54
faunadb adapter for next-auth for next.js
// followed from next-auth repo: https://github.com/nextauthjs/next-auth
// create faunadb server key
// create collections: users, accounts, sessions, verificationRequests
// create required indexes
import faunadb, { query as q } from 'faunadb';
import { v4 as uuidv4 } from 'uuid';
import { createHash, randomBytes } from 'crypto';
@jpalala
jpalala / how-to-setup-mac-elasticsearch.md
Created September 11, 2015 08:28
setting up elasticsearch on your mac with brew

Install va homebrew

If you don't have homebrew installed - get homebrew here

Then run: brew install elasticsearch

Configuration

Update the elasticsearch configuration file in /usr/local/etc/elasticsearch/elasticsearch.yml.

@toebbel
toebbel / install.sh
Created December 20, 2016 12:04
Install zeromq (zmq) library on fresh Amazon Linux (tested with amzn-ami-hvm-2016.03.3.x86_64-gp2)
# compilers
sudo yum install -y gcc gcc-c++
# libsodium: download, compile, install, remove intermediate files
curl https://download.libsodium.org/libsodium/releases/libsodium-1.0.10.tar.gz | tar -xz
cd libsodium-1.0.11
./configure && make && sudo make install
cd ../ && rm -rf libsodium-1.0.11
# zmq 4.2.0
@mikeabiezzi
mikeabiezzi / Rakefile
Created June 25, 2012 00:44
Patch to Resque that stops workers from picking up a new job when Resque is "paused"
task "resque:pause" => :environment do
Resque.redis.set "resque_paused", true
puts "Resque paused."
end
task "resque:resume" => :environment do
Resque.redis.set "resque_paused", false
puts "Resque resumed."
end