Skip to content

Instantly share code, notes, and snippets.

@dankrause
dankrause / _hover_example.py
Last active March 8, 2024 18:31
Example code to use the (unofficial, unsupported, undocumented) hover.com DNS API.
import requests
class HoverException(Exception):
pass
class HoverAPI(object):
def __init__(self, username, password):
params = {"username": username, "password": password}
r = requests.post("https://www.hover.com/api/login", params=params)
@utsengar
utsengar / Sync_Async_loading_handlebars.js
Created April 2, 2012 20:41
synchronous and asynchronous loading of handlebars templates
/*
* This decorates Handlebars.js with the ability to load
* templates from an external source, with light caching.
*
* To render a template, pass a closure that will receive the
* template as a function parameter, eg,
* T.render('templateName', function(t) {
* $('#somediv').html( t() );
* });
* Source: https://github.com/wycats/handlebars.js/issues/82
@rajraj
rajraj / es.sh
Created January 3, 2012 20:07 — forked from aaronshaf/es.sh
Install ElasticSearch on CentOS 6
cd ~
sudo yum update
sudo yum install java-1.7.0-openjdk.i686 -y
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.9.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share
@timcrider
timcrider / virtualhost.conf
Created November 23, 2011 20:54
Apache 'no reboot needed' virtual host configuration for development sites.
###############################################################################
#
# Apache virtual host 'no reboot needed' template.
#
# This apache virtualhost configuration allows a user to create development
# sites on the fly. This will not work out of the box however, you will need
# to replace the {variables} in this conf with values explained below. This
# can be done with a script, or a simple find and replace in your favorite
# editor.
#
@eleclerc
eleclerc / build.xml
Created June 25, 2010 13:16
my phing skeleton build file
<?xml version="1.0"?>
<project name="change-me" default="build">
<target name="build" description="Placeholder">
<echo msg="See list of availlable tasks by executing: phing -l" />
</target>
<target name="lint">
<phplint haltonfailure="yes" level="verbose">