sudo easy_install pip && sudo pip install dotcloud
git clone https://github.com/openplans/shareabouts-api.git
cd shareabouts-api/
dotcloud create <api-name>
dotcloud push -A -b master --git
$ sudo brew install tmux | |
[...] | |
configure: error: "libevent not found" | |
$ sudo brew install -v tmux | |
Error: You must `brew link libevent' before tmux can be installed | |
$ sudo brew link libevent | |
Linking /usr/local/Cellar/libevent/2.0.21... Warning: Could not link libevent. Unlinking... | |
Error: Could not symlink file: /usr/local/Cellar/libevent/2.0.21/include/event.h | |
Target /usr/local/include/event.h already exists. You may need to delete it. |
<link rel="alternate" type="application/atom+xml" href="/feed" title="{{ site.name }}" /> |
$ git clone https://github.com/jazzido/tabula | |
[Worked.] | |
$ sudo brew install rbenv | |
[] | |
rbenv install 1.9.3-p392 | |
rbenv: no such command `install' | |
$ rvm install 1.9.3-p392 | |
[Worked?] | |
$ rvm install jruby-1.7.3 | |
[...] |
# The following code goes in your ~/.profile | |
# | |
# This propmpt shows a beer when you launch a Terminal window on a Fridays. | |
# It checks every time you get a new prompt. A minute after 11:59M on a | |
# Thursday, if you press enter, it will add beer to the prompt. A minute | |
# after 11:59 PM on a Friday, no more beer. | |
# | |
# This is for terminals that use the Bash shell, which was the default for | |
# MacOS previous to Catalina. |
# Assumptions: | |
# | |
# - used with Pythonista on iOS | |
# - successful install of the Extraction module https://pypi.python.org/pypi/extraction | |
# through pipista and yak shaving with shellista | |
# Initially based on http://blog.ouseful.info/2010/10/26/more-python-floundering-stripping-google-analytics-tracking-codes-out-of-urls/ | |
import cgi, urllib, urlparse, webbrowser, sys, console, clipboard, requests, extraction |
setInterval(checkNewStellarRefresh, 5000); | |
function checkNewStellarRefresh() { | |
if(document.readyState != 'interactive') { | |
var notify_top = document.getElementsByClassName('notify-top'); | |
var length = notify_top.length; | |
for (var i = 0; i < length; i++) { | |
if (notify_top[i].getElementsByTagName('a')[0].text == 'You have new items to read!') { | |
notify_top[i].getElementsByTagName('a')[0].click(); | |
return; |
Git workflow for Drupal.org issues
Inspired by chx's workflow http://drupal4hu.com/node/374, this is the workflow I used when working on multiple issues at the same time to rename Views functions.
This workflow worked for me. YMMV.
Starting out:
git clone --branch 8.x http://git.drupal.org/project/drupal.git 8
# checkout all of Drupal into a directory called 8# At the top of the hour, start a timer (sleep) every two hours | |
# between 8 AM and 6 PM. That timer lasts for a random duration of | |
# up to two hours. When that timer runs out, run a script that | |
# sends a notification to my iPhone or Android device to remind me | |
# to drink a glass of water. (And only on weekdays.) | |
0 8,10,12,14,16,18 * * 1,2,3,4,5 root sleep `/usr/bin/expr $RANDOM \% 7200`; python /full/path/here/water.py |