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
#!/bin/bash -e | |
CURRENT_DIR=$(pwd) | |
BASE_URI="http://kernel.ubuntu.com/~kernel-ppa/mainline" | |
FINGERPRINT="60AA 7B6F 3043 4AE6 8E56 9963 E50C 6A09 17C6 22B0" | |
ARCH=$(dpkg --print-architecture) | |
declare -A FILES=([sources]="SOURCES" \ | |
[commit]="COMMIT" \ | |
[linux-image]="linux-image- generic_ ${ARCH}" \ |
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
# project nfd (0.5.0) configured on Thu Jan 12 19:43:23 2017 by | |
# waf 1.8.9 (abi 98, python 2070bf0 on linux2) | |
# using ./waf configure --prefix=/usr --includedir=/usr/include --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib/arm-linux-gnueabihf --libexecdir=/usr/lib/arm-linux-gnueabihf --without-websocket --without-libpcap | |
# | |
---------------------------------------- | |
Setting top to | |
/usr/src/packages/BUILD/nfd-0.5.0+dev1.2d26161 | |
---------------------------------------- | |
Setting out to | |
/usr/src/packages/BUILD/nfd-0.5.0+dev1.2d26161/build |
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
# Fail2Ban configuration file | |
# | |
# Author: Srdjan Grubor <[email protected]> | |
[Definition] | |
# Option: actionstart | |
# Notes: Executed once at start of Fail2Ban. | |
# Values: CMD | |
actionstart = iptables -N fail2ban-PERMABAN-LOGGER |
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
# /etc/systemd/system/haproxy.service.d/haproxy_cluster_vars.conf | |
[Service] | |
Environment="PIDFILE=/run/haproxy.pid" | |
Environment="HAPROXY_SOCKET=/var/run/haproxy/socket" | |
# Get rid of the socket on start/stop | |
ExecStartPre=/bin/bash -c "rm -f $HAPROXY_SOCKET" | |
ExecStopPost=/bin/bash -c "rm -f $HAPROXY_SOCKET" | |
# XXX: Do seamless reloads |
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
APP_NAME=foobar | |
TASK_INDEX=0 | |
LOG_TYPE=stderr # or stdout | |
MARATHON_HOST="marathon.host.local" | |
SCHEME=https | |
MARATHON_TASK_URI="$SCHEME://$MARATHON_HOST/v2/apps/$APP_NAME?embed=app.tasks" | |
app_info=$(curl "$MARATHON_TASK_URI") | |
app_task=$(echo ${app_info} | jq -r ".app.tasks[$TASK_INDEX]") |
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
#!/bin/bash -e | |
echo WARNING! This script will add various junk to your | |
echo WARNING! machine so it is best to run it in a VM! | |
echo Fetching latest ansible | |
prerequisites="git \ | |
python \ | |
python-boto \ |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86_64 4.2.0-19-generic Kernel Configuration | |
# | |
CONFIG_64BIT=y | |
CONFIG_X86_64=y | |
CONFIG_X86=y | |
CONFIG_INSTRUCTION_DECODER=y | |
CONFIG_PERF_EVENTS_INTEL_UNCORE=y | |
CONFIG_OUTPUT_FORMAT="elf64-x86-64" |
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
(12:59:23 PM) JohnO: sgnn7 connect from where? | |
(12:59:41 PM) JohnO: I use mesos-dns often times, are you saying from within the app? | |
(01:01:13 PM) sgnn7: JohnO: yeah from within the app. host has localhost:<port> on HAproxy going to the right place but the question is accessing that from the app itself | |
(01:01:40 PM) JohnO: Ah, there is a PORTS variable in Marathon to know how to access it on the host itself | |
(01:01:51 PM) sgnn7: it's bridged networking though | |
(01:01:53 PM) JohnO: then you can use the $HOST:$PORT variables | |
(01:01:56 PM) JohnO: ya | |
(01:02:09 PM) JohnO: so that would allow the container to connect to the ports external port (I think) | |
(01:02:39 PM) sgnn7: sadly for our service discovery we're trying to avoid putting in env var resolution but I did find that as well | |
(01:02:40 PM) cheus left the room (quit: Ping timeout: 260 seconds). |
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
*.deb | |
build/ |
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
echo '[Unit] | |
Description=High-performance, schema-free document-oriented database | |
After=syslog.target network.target | |
[Service] | |
User=mongodb | |
Group=mongodb | |
ExecStart=/usr/bin/mongod -f /etc/mongod.conf | |
[Install] |