View httpd.conf
# | |
# 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 |
View sshd_config
# $OpenBSD: sshd_config,v 1.80 2008/07/02 02:24:18 djm Exp $ | |
# This is the sshd server system-wide configuration file. See | |
# sshd_config(5) for more information. | |
# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin | |
# The strategy used for options in the default sshd_config shipped with | |
# OpenSSH is to specify options with their default value where | |
# possible, but leave them commented. Uncommented options change a |
View commands.md
Files
Find file
find . -name foobar.txt
-name FooBar
— Filter by file name (case sensitive)
View programs.md
Programs
firewall-cmd
firewalld command line client
View firewall state
firewall-cmd --state
View default.conf
<IfModule mod_ssl.c> | |
<VirtualHost *:443> | |
Include vhosts.d/includes/domain.com.conf | |
SSLEngine on | |
SSLProtocol all -SSLv2 | |
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW | |
SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 | |
SSLCertificateChainFile /var/www/ssl/certificate-authority-default.crt | |
SSLCertificateFile /var/www/ssl/star.domain.com.crt | |
SSLCertificateKeyFile /var/www/ssl/star.domain.com.key |
View rewritemap-sample.conf
<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> |
View vagrantfile-default
# -*- 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. |
View post-receive.sh
#!/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" |
View hello.py
import click | |
@click.command() | |
def cli(): | |
"""Example script.""" | |
click.echo('Hello World!') |
OlderNewer