View pants-repo.patch
diff --git a/3rdparty/python/pants/main.py b/3rdparty/python/pants/main.py | |
new file mode 100644 | |
index 00000000..9cb08c35 | |
--- /dev/null | |
+++ b/3rdparty/python/pants/main.py | |
@@ -0,0 +1,116 @@ | |
+from collections import Iterable | |
+import re | |
+ | |
+from pex.version import __version__ |
View gist:7d26ff5e885dc0ed34951ce20e5e79e0
UDEV rules and script Based on https://gist.github.com/jalaziz/bcfe2f71e3f7e8fe42a9c294c1e9279f. | |
Requires `nvme-cli` package found at https://github.com/linux-nvme/nvme-cli. | |
Based on rexray commit d5cf3ed1aac75a4595760fc0830beea5886588f0 | |
```sh | |
[root@ip-172-31-2-242 ~]# /usr/bin/dvdcli --volumedriver=rexray --volumename=mesos-master01fu2.aws.sig path | |
INFO[0000] /var/lib/rexray/volumes/mesos-master01fu2.aws.sig/data | |
/var/lib/rexray/volumes/mesos-master01fu2.aws.sig/data | |
[root@ip-172-31-2-242 ~]# mount | grep mesos-master01fu2.aws.sig | |
/dev/nvme0n1 on /var/lib/rexray/volumes/mesos-master01fu2.aws.sig type ext4 (rw,relatime,data=ordered) |
View gist:d56c352f6a85b4fa3ed4
all: | |
if `true` || `false`; then \ | |
echo "Hello world!!!"; \ | |
fi; |
View thread_safe_files_dirs
import os | |
__all__ = ["open","mkdir"] | |
__author__ = "Justin Venus <justin.venus@gmail.com>" | |
START_UMASK = os.umask(0) | |
os.umask(START_UMASK) | |
def mkdir(func): | |
def decorator(*args): | |
if len(args) == 1: |
View gist:5808163
############################################################################### | |
# Copyright 2006 to the present, Orbitz Worldwide, LLC. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |