netsh interface portproxy add v4tov4 listenport=3000 listenaddress=192.168.0.12 connectport=3000 connectaddress=127.0.0.1
This file contains hidden or 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
Font=Powerline Consolas | |
ForegroundColour=131,148,150 | |
BackgroundColour=0,43,54 | |
CursorColour=220,50,47 | |
Black=7,54,66 | |
BoldBlack=0,43,54 | |
Red=220,50,47 | |
BoldRed=203,75,22 | |
Green=133,153,0 | |
BoldGreen=88,110,117 |
This file contains hidden or 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 | |
#title :wildfly-install.sh | |
#description :The script to install Wildfly 10.x | |
#more :http://sukharevd.net/wildfly-8-installation.html | |
#author :Dmitriy Sukharev | |
#date :2016-06-18T02:45-0700 | |
#usage :/bin/bash wildfly-install.sh | |
#tested-version1 :10.0.0.CR3 | |
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22 | |
#tested-version2 :10.0.0.Final |
- http://www.proxmox.com/proxmox-ve
- http://pve.proxmox.com/wiki
- https://pve.proxmox.com/wiki/Roadmap
- Based on Debian with latest RHEL kernel, including OpenVZ kernel patches, and finally a hardware detection system.
This file contains hidden or 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 | |
set -e | |
# Use this script to copy shared (libs) files to nginx chrooted | |
# jail server. This is tested on 64 bit Linux (Redhat and Friends only) | |
# ---------------------------------------------------------------------------- | |
# Original Written by Vivek Gite <http://www.cyberciti.biz/> | |
# (c) 2006 nixCraft under GNU GPL v2.0+ | |
# ---------------------------------------------------------------------------- | |
# See url for usage: |
This file contains hidden or 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
# before than please generate a 2048 bit DHPARAM: openssl dhparam -out /etc/nginx/dhparam.pem 2048 | |
# | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; | |
ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA512:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:ECDH+AESGCM:ECDH+AES256:DH+AESGCM:DH+AES256:RSA+AESGCM:!aNULL:!eNULL:!LOW:!RC4:3DES:!MD5:!EXP:!PSK:!SRP:!DSS; | |
ssl_session_cache shared:TLS:20m; | |
ssl_session_cache shared:SSL:20m; | |
ssl_session_cache shared:ssl_session_cache:20m; |
This file contains hidden or 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
-- show running queries (pre 9.2) | |
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(query_start, clock_timestamp()), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
This file contains hidden or 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
iptproxy() { | |
YourIP="$(echo $1 | cut -d ':' -f 1)" | |
YourPort="$(echo $1 | cut -d ':' -f 2)" | |
TargetIP="$(echo $2 | cut -d ':' -f 1)" | |
TargetPort="$(echo $2 | cut -d ':' -f 2)" | |
if [ "${YourPort}" = "${YourIP}" -o "${TargetPort}" = "${TargetIP}" ]; then | |
iptables -t nat -A PREROUTING --dst $YourIP -p tcp -j DNAT --to $TargetIP | |
iptables -t nat -A POSTROUTING -p tcp --dst $TargetIP -j SNAT --to $YourIP | |
iptables -t nat -A OUTPUT --dst $YourIP -p tcp -j DNAT --to $TargetIP | |
else |
This file contains hidden or 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
$template GRAYLOG2,"<%PRI%>1 %timegenerated:::date-rfc3339% %HOSTNAME% %syslogtag% - %APP-NAME%: %msg:::drop-last-lf%\n" | |
$ActionForwardDefaultTemplate GRAYLOG2 | |
$PreserveFQDN on | |
*.err;*.crit;*.alert;*.emerg;cron.*;auth,authpriv.* @GRAYLOG_SERVER:PORT |
NewerOlder