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
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
chroot /var/lib/haproxy | |
stats socket /run/haproxy/admin.sock mode 660 level admin | |
stats timeout 30s | |
user haproxy | |
group haproxy | |
daemon |
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
#RewriteCond %{HTTP_HOST} !^www\. | |
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}$1 [R=301,L] | |
# | |
## rewrite non www -> www | |
# | |
server { | |
listen 80; | |
server_name domain.com; |
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
server { | |
listen 80; | |
server_name domain.com; | |
rewrite ^(.*)$ $scheme://www.domain.com$1; | |
} | |
server { | |
listen 80 default_server; |
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
server { | |
listen 80; | |
server_name domain.com; | |
rewrite ^(.*)$ $scheme://www.domain.com$1; | |
} | |
server { | |
listen 80 default_server; |
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
[Definition] | |
actioncheck= | |
actionstart = | |
actionstop = | |
actionban = /bin/bash /etc/fail2ban/slack_notify.sh "Banned _country_ <ip> in the jail <name> after <failures> attempts" "<ip>" > /dev/null 2>&1 | |
actionunban = /bin/bash /etc/fail2ban/slack_notify.sh "Unbanned _country_ <ip> in the jail <name>" "<ip>" > /dev/null 2>&1 |
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
This is a simple way to redirect based on screen size. This redirect would go at the bottom of your template for the landing page. | |
<br /> | |
<script>// <![CDATA[<br /> | |
if (screen.width <= 800) {<br /> | |
document.location = "http://subdomain.domain.com";<br /> | |
}<br /> | |
// ]]></script><br /> | |
OR |
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
# Install ARCH Linux with encrypted file-system and UEFI | |
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
# Download the archiso image from https://www.archlinux.org/ | |
# Copy to a usb-drive | |
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
# Set swedish keymap |
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
skipx | |
text | |
install | |
url --url=http://mirror.centos.org/centos/6/os/x86_64 | |
# Firewall configuration | |
firewall --enabled --service=ssh | |
repo --name="repo0" --baseurl=http://mirror.centos.org/centos/6/os/x86_64 | |
repo --name="repo1" --baseurl=http://mirror.centos.org/centos/6/updates/x86_64 | |
repo --name="repo2" --baseurl=http://mirror.oss.ou.edu/epel/6/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/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
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
Refreshing Terraform state prior to plan... | |
module.bq-vpn.aws_eip.vpn-1-eip: Refreshing state... (ID: eipalloc-9c64cff9) | |
module.bq-vpn.aws_iam_role_policy.vpn-server-role-policy: Refreshing state... (ID: preprod-vpn-server-role:preprod-vpn-server-role-policy) | |
module.bq-jenkins.aws_iam_role.jenkins-server-role: Refreshing state... (ID: preprod-jenkins-server-role) | |
module.bq-elasticache.aws_route53_record.ec-memcached-dns.0: Refreshing state... (ID: ZX6WEG2UUXNTU_memcached_CNAME) | |
module.bq-app.aws_iam_role.app-server-role: Refreshing state... (ID: dev-app-server-role) | |
module.bq-elasticache.aws_route53_record.ec-memcached-dns.1: Refreshing state... (ID: ZX6WEG2UUXNTU_memcached_CNAME) | |
module.bq-ops-vpc.aws_vpc.ops-vpc: Refreshing state... (ID: vpc-4a0e9a2f) | |
module.bq-utility.aws_iam_role.utility-role: Refreshing state... (ID: preprod-utility-role) |
NewerOlder