Skip to content

Instantly share code, notes, and snippets.

@larubbio
larubbio / wishpot.ubiq.js
Created February 5, 2009 18:15
Very simple wishpot ubiquity command. (Actually calling it that is an insult to commands) Should be extend to either provide previews, or search in the ubiquity window.
CmdUtils.makeSearchCommand({
name: "Wishpot",
url: "http://www.wishpot.com/public/search.aspx?sk={QUERY}",
icon: "http://www.wishpot.com/favicon.ico",
description: "Searches <ahref=\"http://www.wishpot.com\">Wishpot</a>."
});
@larubbio
larubbio / evri.ubiq.js
Created February 6, 2009 04:40
A simple ubiquity command for searching evri.com
CmdUtils.makeSearchCommand({
name: "evri",
url: "http://www.evri.com/",
icon: "http://www.evri.com/favicon.ico",
description: "search less. understand more.",
preview: function(pblock, directObject) {
var searchTerm = directObject.text;
// Don't even display any text before fetching search results,
CmdUtils.CreateCommand({
/*
Todo:
- Add paging using:
&start={#}
(optional) Start returning posts this many results into the set.
&results={#}
(optional) Return this many results.
*/
@larubbio
larubbio / install.sh
Created January 30, 2012 18:03
Motech download and install
#!/bin/bash
apt-get install make gcc zlib1g-dev libssl-dev rake
cd /opt
# Download the packages
if [ ! -f /opt/apache-activemq-5.5.1-bin.tar.gz ]
then
wget http://motech.github.com/files/apache-activemq-5.5.1-bin.tar.gz
@larubbio
larubbio / activemq.conf
Created January 30, 2012 18:09
Motech Upstart config
# activemq
description "Active MQ"
pre-start script
# prepare environment
mkdir -p /var/log/motech
end script
console output
#!./env/bin/python2.7
# To run this script you need the following modules installed:
# jenkinsapi==0.2.16
# pytz==2013.9
# requests==2.2.0
# sh==1.09
# wsgiref==0.1.2
import getopt
from jenkinsapi import jenkins
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 38 columns, instead of 7. in line 4.
ID District_ID District_Name Taluka_ID Taluka_Name HealthBlock_ID HealthBlock_Name PHC_ID PHC_Name SubCentre_ID SubCentre_Name Village_ID Village_Name Reg_Date Name Contact_No Sex Type SMS_Reply Aadhar_No Created_On Updated_On Bank_ID Branch_Name IFSC_ID_Code Bank_Name Acc_No Is_Aadhar_linked Verify_Date Verifier_Name VerifierID Call_Ans IsPhoneNoCorrect NoCall_Reason NoPhone_Reason Verifier_Remarks GF_Address Husband_Name
72185 29 Koraput 0463 Similiguda 405 Kunduli 1238 CHC Kunduli 4434 Dhudhari 0 21-08-2014 Bishnu Priya Behera 9999999996 F ANM 24-04-2015 Dudhari Ram Kumar Sabat
72174 21 Kandhamal 0360 Phulabani Town 348 Phulbani 1427 PHC (N) Katringia 0 0 Archanarani Sahu 9439988582 F ANM 24-04-2015 Katringia Mr Sahu
72175 21 Kandhamal 0371 Kotagarh 337 Kotagarh 1393 CHC Subarnagiri 5130 Adari 0 Bandana Pradhan 9439988701 F ANM 24-04-2015 Adari Mr Pradhan
72176 19 Ganjam 0343 DIGAPAHANDI 275 DIGAPAHANDI