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
sudo apt-get install pidgin bumblebee byobu chromium-browser vim dconf-editor dkms fail2ban \ | |
john smartmontools wavemon iftop htop iotop w3m vpnc vpnc-scripts vpnc \ | |
encfs network-manager-vpnc network-manager-vpnc-gnome devscripts dpkg \ | |
wavemon git gitk gitg git-extras openjdk-8-jre openjdk-8-jdk \ | |
openjdk-7-jre openjdk-7-jdk openjdk-6-jre openjdk-6-jdk exuberant-ctags \ | |
ppa-purge zenmap irssi playonlinux dos2unix autoconf automake intltool \ | |
gimp arpwatch audacity osc traceroute quilt python3-setuptools ansible \ | |
vim-rails vim-scripts vim-syntax-gtk vim-python-jedi vim-gtk vim-gnome |
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
#!/bin/bash -e | |
if [ $# -ne 4 ]; then | |
echo "Usage: $0 <target device> <target file> <username> <password>" | |
exit 1 | |
fi | |
# Requires packages: | |
# nfs-common | |
# mbuffer |
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
#define RED 0 | |
#define GREEN 1 | |
#define BLUE 2 | |
#define VOLUME_DEAD_ZONE 34 | |
#define MIN_VOLUME 40 | |
#define MAX_VOLUME 460 | |
#define CENTER_VOLUME ((MAX_VOLUME + MIN_VOLUME) / 2) |
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
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] |
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
*.deb | |
build/ |
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
(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 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 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 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 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 |