This version of the pocket bookmarklet seems to work fine pretty much everywhere, but has issues on this page: https://queue.acm.org/detail.cfm?id=2745840
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a.myhost.com { | |
tls off | |
root /var/www/ | |
proxy / localhost:8091 | |
log log/access.a.log | |
} | |
b.myhost.com { | |
tls off | |
root /var/www/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Ensure ruby tools needed for FPM are available | |
apt-get install -y ruby ruby-dev gem rpm | |
# Ensure FPM is installed | |
gem install fpm | |
# Run FPM to build an image | |
fpm -s python \ |
If you want more options than just showing a single line of text in your blog post listings, this may be useful.
First, make sure you have copied the mezzanine base templates into your application where you can edit them.
See this part of the docs if you missed that step: http://mezzanine.jupo.org/docs/frequently-asked-questions.html#where-are-all-the-templates-i-can-modify
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If the file you need to source is `.setup-env` | |
[e.split("=")[0:2] for e in commands.getoutput(". .setup-env && env").split("\n")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Print byte counts in a human-friendly way | |
def human_bytes(b): | |
kb = 1024 | |
mb = kb*1024 | |
gb = mb*1024 | |
tb = gb*1024 | |
if b < 1024: | |
return "%d b" % b |