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
listener wordpresssslv6 { | |
address [ANY]:443 | |
secure 1 | |
keyFile /usr/local/lsws/conf/example.key | |
certFile /usr/local/lsws/conf/example.crt | |
map wordpress example.com, www.example.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
listener wordpress { | |
address *:80 | |
secure 0 | |
map wordpress example.com, www.example.com | |
} | |
listener wordpressssl { | |
address *:443 | |
secure 1 | |
keyFile /usr/local/lsws/conf/example.key |
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
listener wordpress { | |
address *:80 | |
secure 0 | |
map wordpress example.com, www.example.com | |
} | |
listener wordpressssl { | |
address *:443 | |
secure 1 | |
keyFile /usr/local/lsws/conf/example.key |
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
accessControl { | |
allow ALL, 2400:cb00::/32T, 2606:4700::/32T, 2803:f800::/32T, 2405:b500::/32T, 2405:8100::/32T, 2a06:98c0::/29T, 2c0f:f248::/32T | |
} |
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
/* | |
DESC: Generates a custom cover letter | |
Author: Joshua Haupt | |
Last Modified: 08-06-2018 | |
*/ | |
package main | |
import ( | |
"bufio" |
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
public void printDog() { | |
System.out.println(""); | |
System.out.println(""); | |
System.out.println(""); | |
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"); | |
System.out.println(""); | |
System.out.println(""); | |
System.out.println(" /~~~~~~~~\\ _"); | |
System.out.println(" ##\\__/ @) ~~~~~~~~\\ \\ \\ ) )"); | |
System.out.println(" | /~~\\~~~~~ (( | \\"); |
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
# Stop dance for OpenResty | |
# A modification of the Nginx systemd script | |
# Source: https://www.digitalocean.com/community/tutorials/how-to-use-the-openresty-web-framework-for-nginx-on-ubuntu-16-04 | |
# ======================= | |
# | |
# ExecStop sends SIGSTOP (graceful stop) to the Nginx process. | |
# If, after 5s (--retry QUIT/5) OpenResty is still running, systemd takes control | |
# and sends SIGTERM (fast shutdown) to the main process. | |
# After another 5s (TimeoutStopSec=5), and if OpenResty is alive, systemd sends | |
# SIGKILL to all the remaining processes in the process group (KillMode=mixed). |
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
# Creates and provisions DO cloud server for WordPress | |
resource "digitalocean_droplet" "wordpress" { | |
image = "centos-7-x64" | |
name = "${var.do_wordpress_name}" | |
region = "${var.do_region}" | |
size = "${var.do_wordpress_size}" | |
ipv6 = true | |
monitoring = true | |
ssh_keys = [ |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# NOTE: Variable overrides are in ./config.rb | |
require "yaml" | |
require "fileutils" | |
# Use a variable file for overrides: | |
CONFIG = File.expand_path("config.rb") | |
if File.exist?(CONFIG) | |
require CONFIG |
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
# VM Config | |
$ssh_user = "vagrant" | |
$vcpus = "4" | |
$vmem = "4096" | |
$centos8_box = "generic/centos8" | |
$centos8_box_ver = "3.0.10" | |
# Synced Folders |