firewalld command line client
firewall-cmd --state
<VirtualHost *:80> | |
ServerName domain.com | |
RewriteEngine On | |
RewriteMap redirect_map_master txt:vhosts.d/includes/redirect_map_master | |
RewriteCond %{HTTP_HOST} ^(www\.)?(.+) | |
RewriteCond ${redirect_map_master:%2|domain.com} ^(.+)$ [NC] | |
RewriteRule ^/$ http://%1 [L,R=301] | |
</VirtualHost> |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# 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| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
#!/bin/bash | |
# Created on 7/17/13 by Ryan Sechrest | |
# Deploys pushed branch from the origin repository to the web directory | |
if [[ (-n $1) && (-n $2) && (-n $3) ]]; then | |
# Set path to project directory | |
project_path="/var/www/domains/$2/$3" |
import click | |
@click.command() | |
def cli(): | |
"""Example script.""" | |
click.echo('Hello World!') |
vagrant init [box-name] [box-url]
— Add box and initialize VM
vagrant init centos65p http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-puppet.box
vagrant init centos65 https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box
#!/bin/bash | |
# Created on 7/17/13 by Ryan Sechrest | |
# Deploys pushed branch from the origin repository to the web directory | |
if [[ (-n $1) && (-n $2) && (-n $3) ]]; then | |
# Set path to project directory | |
project_path="/var/www/domains/$2/$3" |
#!/bin/bash | |
# --------------------------------------------------------------------------- | |
# | |
# File: .bash_commands | |
# | |
# Author: Ryan Sechrest | |
# Website: ryansechrest.com | |
# | |
# Description: New and enhanced bash commands for developers on Mac OS X. |
#!/bin/bash | |
# Created on 10/8/13 by Ryan Sechrest | |
# site (localhost edition) | |
# Program to mirror a directory and database of a website between two servers. | |
### Program meta data |
# | |
# This is the main Apache server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information. | |
# In particular, see | |
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html> | |
# for a discussion of each configuration directive. | |
# | |
# | |
# Do NOT simply read the instructions in here without understanding |