Skip to content

Instantly share code, notes, and snippets.

View JustinVenus's full-sized avatar

Justin Venus JustinVenus

  • Chicago, IL, USA
View GitHub Profile
@JustinVenus
JustinVenus / gist:7d26ff5e885dc0ed34951ce20e5e79e0
Created June 7, 2018 05:42
RexRay EBS Volume Workaround for M5/C5
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)
@JustinVenus
JustinVenus / pants-repo.patch
Created January 31, 2019 01:49
[pants-1.7.0:pex-1.3.2] work around PEP 503 and Sonatype Nexus PypiServer issues
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__
@JustinVenus
JustinVenus / thread_safe_files_dirs
Created August 10, 2013 01:23
see if this helps graphite and droned.
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:
###############################################################################
# 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
@JustinVenus
JustinVenus / gist:d56c352f6a85b4fa3ed4
Created October 28, 2014 21:02
Make or comparison
all:
if `true` || `false`; then \
echo "Hello world!!!"; \
fi;