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
log_format vhost '$host - $remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" $request_time'; | |
access_log /var/log/nginx/access.log vhost; |
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
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/xenial64" #ubuntu/xenial64 | |
config.vm.network "private_network", ip: "10.0.100.102" | |
config.vm.network "public_network", bridge: 'en0: Wi-Fi (AirPort)' |
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
FROM debian:squeeze | |
RUN echo "deb http://archive.debian.org/debian squeeze main" > /etc/apt/sources.list | |
RUN echo "deb http://archive.debian.org/debian squeeze-lts main" >> /etc/apt/sources.list | |
RUN echo "Acquire::Check-Valid-Until false;" > /etc/apt/apt.conf | |
RUN apt-get update && apt-get install -y --force-yes procps vim nano tmux curl supervisor | |
RUN curl -s https://packagecloud.io/install/repositories/varnishcache/varnish30/script.deb.sh | bash | |
RUN apt-get update && apt-get install -y --force-yes varnish |
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 | |
numberOfDirs=10 | |
numberOfFiles=10 | |
blockSize=100 | |
for d in $(seq 1 $numberOfDirs); do | |
mkdir dir$(printf %03d "$d") | |
for n in $(seq 1 $numberOfFiles); do | |
dd if=/dev/urandom of=dir$(printf %03d "$d")/file$(printf %03d "$n").bin bs=$blockSize count=$((RANDOM + 1024)) 2> /dev/null |
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 bash | |
set -e | |
lockFile="/var/tmp/app.lock" | |
if ( set -o noclobber; echo "locked" > "$lockFile") 2> /dev/null; then | |
trap 'rm -f "$lockFile"; exit $?' INT TERM EXIT | |
else | |
echo "Can't get file lock, $(basename "$0") already running" >&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
#!/usr/bin/env bash | |
ansible -s -i inventoryFile -m shell -a "curl -Ss -o kickstart-static64.sh https://my-netdata.io/kickstart-static64.sh" all | |
ansible -s -i inventoryFile -m shell -a "chmod 750 kickstart-static64.sh" all | |
ansible -s -i inventoryFile -m shell -a "./kickstart-static64.sh --non-interactive" all |
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
FROM ubuntu:16.04 | |
# System upgrade | |
ARG DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update | |
RUN apt-get install -y apt-utils | |
RUN apt-get upgrade -y | |
# Install packages and build netdata | |
RUN apt-get install -y zlib1g-dev uuid-dev libmnl-dev gcc make git autoconf autoconf-archive autogen automake pkg-config curl |
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
[Unit] | |
Description=Kibana | |
After=network.target | |
[Service] | |
ExecStart=/workspace/kibana/bin/kibana | |
Type=simple | |
PIDFile=/var/run/kibana.pid | |
Restart=always |
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
# renew letsenrcypt cert | |
30 2 * * 1 /usr/bin/letsencrypt renew >> /var/log/le-renew.log | |
35 2 * * 1 /bin/systemctl reload nginx |
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
FROM debian:squeeze | |
RUN echo "deb http://archive.debian.org/debian squeeze main" > /etc/apt/sources.list | |
RUN echo "deb http://archive.debian.org/debian squeeze-lts main" >> /etc/apt/sources.list | |
RUN echo "Acquire::Check-Valid-Until false;" > /etc/apt/apt.conf | |
RUN apt-get update | |
RUN apt-get install -y --force-yes procps vim nano tmux curl | |
CMD ["/bin/bash"] |
NewerOlder