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
| perl -p -i -e 's/#.*//' file_name |
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
| perl -p -i -e 's/^\s*$//' file_name |
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
| swap -l | tail -1 | awk '{ printf("%.2f\n", 100 * ($5/$4))}' |
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
| ~. |
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/splunk/bin/splunk set web-port 80 && /opt/splunk/bin/splunk restart |
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
| /var/log/httpd/*log { | |
| missingok | |
| notifempty | |
| sharedscripts | |
| postrotate | |
| /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true | |
| endscript | |
| } |
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
| file { "/root": | |
| ensure => "directory", | |
| owner => "root", | |
| group => "root", | |
| mode => 750, | |
| } |
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
| mysqldump -u root -p database table_to_dump > table_to_dump.mysql |
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
| ps -ef -o pid,user,zone,project,taskid,args |
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
| class module::params { | |
| case $operatingsystem { | |
| Solaris: { | |
| $ssh_package_name = 'openssh' | |
| } | |
| /(Ubuntu|Debian)/: { | |
| $ssh_package_name = 'openssh-server | |
| } | |
| /(RedHat|CentOS|Fedora)/: { | |
| $ssh_package_name = 'openssh-server' |