Skip to content

Instantly share code, notes, and snippets.

Adam Lindsay atl

Block or report user

Report or block atl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
atl / ubooquity
Last active Dec 19, 2017
ubooquity rc.d
View ubooquity
# PROVIDE: ubooquity
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable this service:
# ubooquity_enable (bool): Set it to YES to enable mdnsd(8) on startup.
atl / launcher.ipynb
Last active Dec 14, 2015
This is a IPython Notebook on how to provision an IPython Cluster on the Joyent Public Cloud. It is a companion for this blog post: . It may be viewed on the Notebook Viewer: .
View launcher.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
atl /
Created Mar 7, 2013
IPython on Joyent provisioning scripts
atl /
Last active Dec 11, 2015
Minimal initialization script to set up Trac in the Joyent Public Cloud
# Install trac
/opt/local/bin/pkgin -y in trac
# set up the base directory (set as default by the SMF manifest)
/opt/local/bin/mkdir /trac
/opt/local/bin/chown www:www /trac
# configure a minimal base environment
atl /
Last active Feb 15, 2019
enable ssh-agent transparently and pervasively in Mac OS X Lion/Mountain Lion

This is a quick configuration upgrade that allows you to continue using ssh as you have, but with the added benefit of ssh-agent forwarding when logged into remote hosts, meaning no more keys on intermediate servers and the like.


This snippet assumes that you've been using ssh, ssh keys, and authorized_keys on remote hosts.

  • .ssh/id_dsa and/or .ssh/id_rsa already exist
  • keys are authorized on the remote servers you have been using
  • you have at least a minimal working .ssh/config file
atl / google_twunter_lol.json
Created Jul 28, 2011 — forked from jamiew/google_twunter_lol
All the dirty words from Google's "what do you love" project:
View google_twunter_lol.json
atl / diff
Created Jun 16, 2011
View diff
--- a/pyechonest/ Thu Jun 16 13:40:52 2011 +0100
+++ b/pyechonest/ Thu Jun 16 13:51:16 2011 +0100
@@ -876,3 +876,28 @@
result = util.callm("%s/%s" % ('artist', 'similar'), kwargs)
return [Artist(**util.fix(a_dict)) for a_dict in result['response']['artists']]
+def extract(text='', start=0, results=15, buckets=None, limit=False, max_familiarity=None, min_familiarity=None,
+ max_hotttnesss=None, min_hotttnesss=None):
+ buckets = buckets or []
+ kwargs = {}
atl / instructions
Created Mar 24, 2011
HOWTO: compile and install redis on a machine as of 2011-03-24
View instructions
# First, we need a little extra effort to install GCC
pfexec pkg_add gcc44
export PATH="$PATH:/opt/local/gcc44/bin"
pkgin in binutils
# make and install
mkdir ~/sw
cd ~/sw
gtar xvf redis-2.2.2.tar.gz
atl / filtered_jTweetsAnywhere.html
Created Jun 3, 2010
example jTweetsAnywhere usage that filters out replies and old-style retweets, hides selected hashtags, preserves carriage returns, and hides repetitions of a userpic
View filtered_jTweetsAnywhere.html
<!-- I'm a beginnner with JS/jQuery, so I welcome suggestions
on how to make it more idiomatic. -->
<link rel="stylesheet" type="text/css" href="jquery.jtweetsanywhere-1.0.0.css" />
<style type="text/css">
/* Since we're showing one user's stream, show the profile image the first time: */
.jta-tweet-profile-image {visibility: hidden}
.jta-tweet-list-item:first-child .jta-tweet-profile-image {visibility: visible}
#!/usr/bin/env python
""" An implementation of an event-based asynchronous pattern.
Uses generators to allow asynchronous tasks to be coded in-line. Allows the
implementer to define what technique is used to execute asynchronously and
which generator iterations are executed asynchronously.
References: [inline asynchronous code]
You can’t perform that action at this time.