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
lsof -n -p {procpid} |
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
startup_message off | |
vbell off | |
defutf8 on | |
nonblock on | |
# Window numbering starts at 1, not 0. | |
bind c screen 1 | |
bind ^c screen 1 | |
bind 0 select 10 | |
screen 1 | |
altscreen 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
netstat -ntaoep |
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
ss -4t -p -e -m -p |
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
ProxyRequests Off | |
ProxyPreserveHost On | |
<Proxy *> | |
AddDefaultCharset Off | |
Order deny,allow | |
Allow from all | |
</Proxy> | |
ProxyPass /myapp ajp://{{IPaddr}}:8009/myapp | |
ProxyPassReverse /myapp ajp://{{IPaddr}}:8009/myapp |
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/sh | |
#source "http://tr.opensuse.org/Tomcat_HOWTO" | |
# Tomcat Startup Script | |
### BEGIN INIT INFO | |
# Provides: Tomcat | |
# Required-Start: $local_fs $network $remote_fs apache2 | |
# Required-Stop: $local_fs $network $remote_fs apache2 | |
# Default-Start: 3 5 | |
# Default-Stop: 0 1 2 6 | |
# Short-Description: Tomcat |
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
set-option -g status-utf8 on | |
set -g default-terminal "screen-256color" | |
set -g history-limit 10000 | |
set -g base-index 1 | |
setw -g utf8 on | |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
# Set window notifications | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# set -g terminal-overrides "*88col*:colors=88,*256col*:colors=256,xterm*:colors=256" |
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 | |
# Restrictive Iptables Based Firewall for Webserver script | |
# Copyright (C) 2012 Cédric Walter - www.waltercedric.com | |
# Credits to all various authors | |
# | |
# 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 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
filter | |
:INPUT ACCEPT [0:0] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [2:200] | |
:RH-Firewall-1-INPUT - [0:0] | |
-A INPUT -j RH-Firewall-1-INPUT | |
-A FORWARD -j RH-Firewall-1-INPUT | |
-A RH-Firewall-1-INPUT -i lo -j ACCEPT | |
-A RH-Firewall-1-INPUT -p icmp -m icmp --icmp-type any -j ACCEPT | |
-A RH-Firewall-1-INPUT -p esp -j ACCEPT |
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
<VirtualHost *:443> | |
# General setup for the virtual host | |
DocumentRoot "/srv/www/htdocs" | |
ServerName host.example.com | |
ServerAdmin [email protected] | |
ErrorLog /var/log/apache2/error_log | |
TransferLog /var/log/apache2/access_log | |
CustomLog /var/log/apache2/host.example.com-ssl_request_log \ | |
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" |
OlderNewer