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 default_server; | |
listen [::]:80 ipv6only=on default_server; | |
server_name splunk.net blog.splunk.net www.splunk.net .taddevries.com; | |
access_log /var/log/nginx/blog.access_log main; | |
error_log /var/log/nginx/blog.error_log info; | |
return 301 https://blog.splunk.net; | |
} | |
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
#!/bin/bash | |
LOCKFILE="/home/tad/scripts/.unlocked_wp-content" | |
WPDIR="/var/www/localhost/htdocs/blog/wp/wp-content" | |
if [ -f $LOCKFILE ]; then | |
echo "Locking WP-Content Directory" | |
find $WPDIR -type f -exec chmod 644 {} \; | |
find $WPDIR -type d -exec chmod 755 {} \; | |
rm -f $LOCKFILE |
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 443; | |
server_name autodiscover.gwtest.us; | |
# Enable SSL | |
ssl on; | |
ssl_certificate /etc/ssl/nginx/mail.gwtest.us.crt; | |
ssl_certificate_key /etc/ssl/nginx/mail.gwtest.us.open.key; | |
ssl_session_timeout 5m; |
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; | |
#listen [::]:80; | |
server_name mail.gwtest.us autodiscover.gwtest.us; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443; | |
#listen [::]:443 ipv6only=on; |
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 | |
# | |
# Copyright (C) 2013 Tad DeVries <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify it under | |
# the terms of the GNU General Public License as published by the Free Software | |
# Foundation, either version 3 of the License, or (at your option) any later | |
# version. | |
# | |
# This program is distributed in the hope that it will be useful, but WITHOUT |
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; | |
listen [::]:80 default server ipv6only=on; | |
location / { | |
proxy_intercept_errors on; | |
proxy_pass http://localhost:9000; | |
} | |
error_page 500 502 503 504 /50x.html; |
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
/* | |
* Author: Tad DeVries <[email protected]> | |
* Date: 2013/02/27 | |
* | |
* Language: C | |
* | |
* Description: This program demonstrates a simple doubly linked list | |
* used to store names and phone numbers. There are methods to add, search, | |
* edit, delete, and print records. This program ignores user input validation | |
* since pointer and memory manipulation are the key goals. |
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
<?php | |
/* | |
# Author: Tad DeVries | |
# Email: [email protected] | |
# FileName: yamlStorage.class.php | |
# | |
# Description: | |
# This class provides a simple mechanism for inserting/modifying/deleting | |
# information in a YAML file. | |
# |
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
# | |
# Author: Tad DeVries | |
# Email: [email protected] | |
# FileName: SignCode.ps1 | |
# | |
# Description: | |
# Uses a codesigning certifcate in your certificate list | |
# to sign the code. You may need to edit the options below | |
# to select the correct certificate if you have more than | |
# one like I do. |
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
# | |
# Author: Tad DeVries | |
# Email: [email protected] | |
# FileName: RunElevated.ps1 | |
# | |
# Description: | |
# Creates a "sudo" like command to elevate another | |
# command to administrative level. This is used to | |
# simplify the CLI interaction and create a little | |
# home like feeling for the *nix users out there. |
NewerOlder