Programs
firewall-cmd
firewalld command line client
View firewall state
firewall-cmd --state
#!/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" |
# State Abbr => State Name; Vertical Format | |
[ | |
'AL' => 'Alabama', | |
'AK' => 'Alaska', | |
'AZ' => 'Arizona', | |
'AR' => 'Arkansas', | |
'CA' => 'California', | |
'CO' => 'Colorado', | |
'CT' => 'Connecticut', |
<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 |
import click | |
@click.command() | |
def cli(): | |
"""Example script.""" | |
click.echo('Hello World!') |
firewalld command line client
firewall-cmd --state
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NGMSAx | |
IDEAEAGAAtIQERITWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xvcqISFFhOU09iamVj | |
dF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290gAEIERojLTI3O0FITltiaWttcn2GjpGa |
Command | Description |
---|---|
Ctrl + A | Jump to beginning of line |
Ctrl + E | Jump to end of line |
Ctrl + U | Delete text before cursor |
Ctrl + K | Delete text after cursor |
Ctrl + W | Delete word before cursor |
Ctrl + T | Swap last two characters before cursor |
find . -name foobar.txt
-name FooBar
— Filter by file name (case sensitive)
TXT
/etc/httpd/conf/httpd.conf
— Main Apache server configuration file.
TXT
/etc/httpd/conf.d/ssl.conf
— Apache server configuration file providing SSL support.
DIR
/etc/httpd/vhosts.d/
— Virtual host configuration files.
DIR
/var/log/httpd/
— Apache logs.
# $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 |