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 you want it from PyPi: | |
$ sudo pip install bitmath | |
######################################################################## | |
# If you like manual labor (and bleeding edge releases): | |
# | |
# clone that sweet sweet git repo: | |
$ git clone https://github.com/tbielawa/bitmath.git | |
$ cd bitmath |
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
git clone https://github.com/tbielawa/bitmath.git | |
cd bitmath | |
make rpm | |
sudo rpm -ivh ./rpm-build/noarch/python-bitmath*.noarch.rpm |
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
def frob_account_quota(user): | |
user_quota_bytes = user.quota | |
user_quota_human_readable = user_quota_bytes / (1024 * 1024 * 1024) | |
print "%s has a quota of %s GB" % (user.name, user_quota_human_readable) |
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
diff --git a/Makefile b/Makefile | |
index be57177..5a59b31 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -171,6 +171,7 @@ rpm: rpmcommon | |
@find rpm-build -maxdepth 2 -name 'juicer*.rpm' | awk '{print " " $$1}' | |
@echo "#############################################" | |
+# This makes an RPM for Openshift Online | |
oorpm: rpmcommon |
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
[~/rhat/juicer] 21:58:39 (repos_from_file) | |
$ git ds master | |
Makefile | 4 +- | |
bin/juicer | 3 + | |
bin/juicer-admin | 5 +- | |
docs/man/man1/juicer-admin.1 | 206 ++++++++++++++++++++++++++-- | |
docs/man/man1/juicer-admin.1.asciidoc.in | 96 +++++++++++-- | |
docs/man/man1/juicer.1 | 92 ++++++------- | |
docs/man/man1/juicer.1.asciidoc.in | 76 +++------- | |
docs/man/man5/juicer.conf.5 | 8 +- |
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
<?xml version="1.0" encoding="utf-8"?> | |
<book xmlns="http://docbook.org/ns/docbook" | |
xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="invalid-syntax-example" | |
xmlns:xl="http://www.w3.org/1999/xlink" version="5.0"> | |
<info> | |
<title>Test for Developer Blog</title> | |
<subtitle>From the basics to the advanced</subtitle> |
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
try: | |
import json | |
except: | |
import simplejson as json |
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
diff --git a/juicer/juicer/Juicer.py b/juicer/juicer/Juicer.py | |
index f44ca6b..96d97dc 100644 | |
--- a/juicer/juicer/Juicer.py | |
+++ b/juicer/juicer/Juicer.py | |
@@ -22,7 +22,6 @@ import juicer.juicer | |
import juicer.utils | |
import juicer.utils.Upload | |
import os | |
-import re | |
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
Total time to run all tests ~= 498 ~= 8.3 minutes | |
[/tmp/tmp.ljh47fa992/juicer] 11:00:23 (master) | |
$ make test | |
. ./hacking/setup-env | |
Prefixing PYTHONPATH with /tmp/tmp.ljh47fa992/juicer:/tmp/tmp.ljh47fa992/juicer/Juicer/:/tmp/tmp.ljh47fa992/juicer/JuicerAdmin/ | |
Prefixing PATH with /tmp/tmp.ljh47fa992/juicer/bin | |
Prefixing MANPATH with /tmp/tmp.ljh47fa992/juicer/docs/man | |
if [ "false" = "true" ]; then \ |