Skip to content

Instantly share code, notes, and snippets.

View snippet.js
View gist:b6e3d6538dbb81003a98
server {
listen 80;
return 301 https://$host$request_uri;
server {
listen 443;
View status.rb
require 'json'
require 'open-uri'
url = ''
buffer = open(url).read
result = JSON.parse(buffer)
today =
due = Date.parse(result['due_on'])
mbravorus / gist:7468751
Created November 14, 2013 15:28
Quick preserved lemons
View gist:7468751
Ingredients: 3 large lemons, 6 cups water, 1/3 cup sea salt
Preparation: Rinse the lemons under cool running water and remove any surface wax by scrubbing with an abrasive sponge. Using a sharp knife, make 8 vertical but shallow incisions along the length of the lemon, taking care not to cut into the flesh. Set aside.
In a large non-reactive saucepan, bring the water and salt to a boil. Add the lemons and boil until the rind is very soft, about 8 minutes. Remove the pan form the heat and set aside to let the lemons cool in the cooking liquid.
Using a slotted spoon or tongs, transfer the cooled lemons but not the cooking liquid to a clean, dry 16-ounce glass jar with a lid, pressing on the lemons to release any juice and ensure a snug fit. (It may be necessary to cut 1 of the lemons into halves or quarters to ensure that they are tightly packed.) Add enough of the cooking liquid to cover the lemons; it is important that they be completely immersed. (Cover and refrigerate any remaining cooking liquid; you mi