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
#!/usr/bin/env xonsh | |
import json | |
import re | |
import sys | |
from tabulate import tabulate | |
# https://arcpy.wordpress.com/2012/05/11/sorting-alphanumeric-strings-in-python/ | |
# https://stackoverflow.com/questions/2669059/how-to-sort-alpha-numeric-set-in-python | |
def sorted_alnum(l, key=None): |
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
#!/usr/bin/env python3.6 | |
import argparse | |
import logging | |
import re | |
import shlex | |
import sh | |
PORT_RE = re.compile(r':(?P<port>\d+)->') |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBFofh2EBEADOk6j+F3WhGVcjsIIwgSEglsNBjVDYs9q8t+zEYrumOInS/VD4 | |
7zshkVkJTo6TwplLOIxj/b2EbeG/9Qsf2zGF63fdfk4l/gTcELfTdnKc9lH2JdBm | |
1dm/XdLL09ITn3u36TL19xUjV2qiSBL6iXWmn5Zqg28LzVjWiMkjSuLNsPOfxiYG | |
lQXFnSD8zX3mL9ceFmyOFBt8DwzttyYui2dQ4xw67GpMnxEmsTOtNP6hEasBAjzA | |
r9fRjpP6wer6isDqVcgCkUzZY670p3oA3mMCy5qbi4eHCNn1h8caQdhoMElNVPYA | |
dnSx/Ut9TGQnFWtCpl9O4wMieMg2AtNsKXbTDpHVO7VN+Asj0bQb0+ysN0Y/PUP6 | |
+FFi6u7OAyUslmkxS+UGxasm8prKSRBY9oF/00vgeCC/mAuWY2crjJhjNeO5n0Tb | |
BJOkh9ouEMmd5VARGQaH3FmCcyEAsQBRJW5ingg2FYDrFx2NsdSLvFN9mfYjkDSQ |
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
/*! grafana - v3.0.0-pre1 - 2016-04-10 | |
* Copyright (c) 2016 Torkel Ödegaard; Licensed Apache-2.0 */ | |
!function(){"use strict";function a(a){var b=0;if(a.offsetParent)for(;;){if(b+=a.offsetTop,!a.offsetParent)break;a=a.offsetParent}else a.y&&(b+=a.y);return b}function b(b){if(b&&-1!==c.grafanaUrl.indexOf(b.origin)&&b.data&&("grafana-resize"===b.data.type&&b.data.height&&(e.height=b.data.height+"px"),"grafana-scroll"===b.data.type&&b.data.top)){var d=a(e)+b.data.top;window.scrollTo(0,d)}}var c=window.GrafanaEmbed||{},d=document.getElementById("grafana-dashboard"),e=document.createElement("iframe");["grafanaUrl","embedUrl","dashnav"].forEach(function(a){window[a]&&(c[a]=c[a]||window[a])});var f=c.queryParams||{};f.embed=!0,c.embedUrl&&(f.embed_url=encodeURIComponent(c.embedUrl));var g=c.grafanaUrl+"/dashboard/db/"+c.dashboard,h=Object.keys(f);if(h.length>0){g+="?";for(var i=0;i<h.length;i++){i>0&&(g+="&");var j=h[i];g+=j+"="+f[j]}}e.src=g,e.id="grafana-embed-frame",e.width="100%",e.height="0px",e.frameBorder="0 |
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 ['2.3.8', '2.3.9', '2.3.10', '2.3.11'].include?(Rails.version) && Gem.available?('mongrel', '~>1.1.5') && self.class.const_defined?(:Mongrel) | |
# Pulled right from latest rack. Old looked like this in 1.1.0 version. | |
# | |
# def [](k) | |
# super(@names[k] ||= @names[k.downcase]) | |
# end | |
# | |
module Rack | |
module Utils |
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
upstream docker_registry { | |
server 127.0.0.1:15000; | |
} | |
server { | |
listen 443; | |
root /dev/null; | |
index index.html index.htm; |
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
# build and install HDF5 | |
# set where HDF5 will be installed; this is needed for pytables and is used in the configuration line for HDF5 below | |
export HDF5_DIR=/opt/hdf5 | |
# download, configure and install HDF5 | |
curl -O 'http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.13.tar.bz2' | |
tar xjf hdf5-1.8.13.tar.bz2 | |
cd hdf5-1.8.13 | |
./configure --prefix=${HDF5_DIR} |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
# Copyright (c) 2007, Roberto Aguilar <roberto@baremetal.io> | |
# All rights reserved. | |
# | |
# Redistribution and use of this software in source and binary forms, with or | |
# without modification, are permitted provided that the following conditions | |
# are met: | |
# | |
# * Redistributions of source code must retain the above copyright notice, | |
# this list of conditions and the following disclaimer. | |
# |
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
On etcd server: | |
``` | |
[berto@scratch]$ pgrep -l -f etcd | |
30453 /usr/bin/etcd -n scratch.vb.baremetal.io -d /var/lib/etcd -s 192.168.42.143:7001 -c 192.168.42.143:4001 | |
[berto@scratch]$ watch 'sudo ls /proc/$(pgrep etcd)/fd | wc -l' | |
``` | |
On etcd client: |