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
<?php | |
mail('[email protected]','subject!','body!','From: [email protected]','-f [email protected]'); | |
?> |
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
SetEnvIf REMOTE_ADDR "(.+)" CLIENTIP=$1 | |
SetEnvIf X-Forwarded-For "^([0-9.]+)" CLIENTIP=$1 | |
LogFormat "%{CLIENTIP}e %D %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" trueip_combined | |
CustomLog /var/log/httpd/<%= name %>_access_log trueip_combined |
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
/opt/splunkforwarder/bin/splunk stop | |
rm /opt/splunkforwarder/etc/system/local/server.conf | |
rm /opt/splunkforwarder/etc/system/local/inputs.conf | |
rm /opt/splunkforwarder/etc/myinstall/splunkd.xml | |
touch /opt/splunkforwarder/ftr | |
/opt/splunkforwarder/bin/splunk start --accept-license |
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
sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/subscription-manager.conf |
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
cd /opt/splunk/var/lib/splunk && for i in `ls -1 -d */| less |egrep -iv "summary|audit|authDb|blockSignature|defaultdb|hashDb|fishbucket|_internaldb|notable|notabledb|persistentstorage|session_*|appserver|historydb"`; do du -sk $i; done | awk '{ SUM += $1} END { print SUM/1024/1024 }' |
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
cd /opt/splunk/var/lib/splunk && for i in `ls -1 -d */| less |egrep -iv "summary|audit|authDb|blockSignature|defaultdb|hashDb|fishbucket|_internaldb|notable|notabledb|persistentstorage|session_*|appserver|historydb"`; do du -sh $i; done |
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
openssl passwd -1 yourpassword |
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
ssh -i ~/.vagrant.d/insecure_private_key [email protected] -o StrictHostKeyChecking=no |
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
ssh -i ~/.vagrant.d/insecure_private_key [email protected] |
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
text | |
install | |
url --url=http://mirror.centos.org/centos/6/os/i386/ | |
lang en_US.UTF-8 | |
keyboard us | |
network --device eth0 --bootproto dhcp | |
rootpw --iscrypted $6$VFjT1z9ta1HqsMbF$QUxiFloguJcgvvLvkT8l4eSM8YPs.qSHwpAQfFa/2tp8FY/HtiSP/Lr.8bGhjCMqUQzM4wUm3wpBhQmmGN02W0 | |
firewall --service=ssh | |
authconfig --enableshadow --passalgo=sha512 --enablefingerprint | |
selinux --disabled |