View keybase.md

Keybase proof

I hereby claim:

  • I am pztrick on github.
  • I am pztrick (https://keybase.io/pztrick) on keybase.
  • I have a public key whose fingerprint is E179 BC62 6ADB 2CE2 2387 AAC7 B33A 8C59 11D3 93CA

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am pztrick on github.
  • I am pztrick (https://keybase.io/pztrick) on keybase.
  • I have a public key whose fingerprint is 465D F1BF E263 8E21 CFA8 E540 4E8D FD5E C772 7F8D

To claim this, I am signing this object:

View cron_post_streaks.py
"""
cron_post_streaks.py ~ Records number of Streak CRM emails as Beeminder datapoint
Usage:
patrick@lucca:~$ crontab -e
>> @midnight /home/patrick/.virtualenvs/bin/python /home/patrick/cron/fs2bm/cron_post_weights.py
License:
View fatsecret_client.py
"""
fatsecret_client.py ~ Python wrapper for Fatsecret API requests
* Must be run once from command-line to get your user's access token:
patrick@lucca:~/cron/$ python fatsecret_client.py
Usage:
from fatsecret_client import FatsecretClient
View beeminder_client.py
"""
beeminder_client.py ~ Python wrapper for Beeminder API requests (goal datapoints ONLY)
Usage:
from beeminder_client import BeeminderClient
beeminder = BeeminderClient()
timestamp = get_epoch_time_in_seconds()
params = {
View streak_client.py
"""
streak_client.py ~ Python wrapper for Streak CRM API requests
* Consumes Mashape API hosted here: https://www.mashape.com/jenbrannstrom/streak-crm-for-gmail#!documentation
Usage:
from streak_client import StreakClient
streak = StreakClient()
View cloudcache.py
from django.conf import settings
from iron_cache import IronCache
import thread
credentials = settings.IRON_IO_CACHE.lstrip('ironcache://').rstrip('@').split(':')
class IronCacheAsync(IronCache):
def put_async(self, *args, **kwargs):
thread.start_new_thread(self.put, args, kwargs)
return None
View gist:5713866
@roles('broker', 'stressors')
def git_pull():
with cd("%s" % git_folder):
run("git pull")
@roles('stressors')
def restart_celeryd():
# NOT WORKING
sudo("supervisorctl restart all")
View jekyll-fancyalbum.sublime-snippet
<!-- Insert Fancy Album
{% fancyalbum 123x456[!] %}
image.png[: label]
{% endfancyalbum %}
-->
<snippet>
<content><![CDATA[
{% fancyalbum ${1:weight}x${2:height}${3:[!]} %}
${4:image.png[: label]}
{% endfancyalbum %}
View octopress-code.sublime-snippet
<!-- Insert Code
{% codeblock [title] [lang:language] [url] [link text] %}
[code]
{% endcodeblock %} -->
<snippet>
<content><![CDATA[
{% codeblock ${1:title} lang:${2:html} ${3:url} ${4:link-text} %}
${5:code}
{% endcodeblock %}
]]></content>