This file contains 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 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 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 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 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 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
>>> from bitmath import * | |
>>> GiB(42) * 3 | |
GiB(126.0) | |
>>> Bit(9) + Byte(3) | |
Bit(33.0) | |
>>> exbi = EiB(0.6) |
This file contains 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
>>> from bitmath import * | |
>>> four_mibibits = Mib(4) | |
>>> four_mibibits.to_kB() | |
kB(524.288) | |
>>> ninty_nine_bits = Bit(99) | |
>>> a_small_exbibyte = ninty_nine_bits.to_EiB() |
This file contains 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
# /etc/X11/xorg.conf.d/01-synaptics.conf | |
Section "InputClass" | |
Identifier "t440 top buttons" | |
MatchDriver "synaptics" | |
# right btn|middle btn | |
Option "SoftButtonAreas" "60% 0 0 0 40% 60% 0 0" | |
Option "HorizHysteresis" "30" | |
Option "VertHysteresis" "30" | |
Option "PalmDetect" "1" |
This file contains 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
$ yum info python-bitmath | |
Available Packages | |
Name : python-bitmath | |
Arch : noarch | |
Version : 1.0.4 | |
Release : 1.fc20 | |
Size : 23 k | |
Repo : updates/20/x86_64 | |
Summary : Aids representing and manipulating sizes in various prefix | |
: notations |
OlderNewer