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
tar -cvf vagrant.tar etc/passwd etc/shadow etc/group etc/sudoers etc/udev/rules.d/70-persistent-net.rules /home/vagrant/ etc/sysconfig/network-scripts/ifcfg-eth0 |
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
May 7 10:42:02 localhost login: PAM unable to dlopen(/lib/security/pam_fprintd.so): /lib/security/pam_fprintd.so: cannot open shared object file: No such file or directory | |
May 7 10:42:02 localhost login: PAM adding faulty module: /lib/security/pam_fprintd.so |
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 req -newkey rsa:2048 -subj '/C=US/ST=New York/L=Flushing/O=IT/CN=www.example.com' -keyout www.example.com.key -out www.example.com.csr |
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
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin" | |
<Directory "/usr/local/nagios/sbin"> | |
Options ExecCGI | |
AllowOverride None | |
Order allow,deny | |
Allow from all | |
AuthName "Nagios Access" | |
AuthType "Basic" | |
AuthUserFile /etc/httpd/.htpasswd.users |
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
// Customize the credits | |
add_filter( 'genesis_footer_creds_text', 'custom_footer_creds_text' ); | |
function custom_footer_creds_text() { | |
echo '<div class="creds"><p>'; | |
echo 'Copyright © '; | |
echo date('Y'); | |
echo ' · <a href="http://example.com">Example</a> · '; | |
echo '</p></div>'; | |
} |
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
// Remove comments RSS feed | |
remove_filter('genesis_nav_items', 'genesis_nav_right', 10, 2); | |
remove_filter('wp_nav_menu_items', 'genesis_nav_right', 10, 2); | |
add_filter('genesis_nav_items', 'child_nav_right', 10, 2); | |
add_filter('wp_nav_menu_items', 'child_nav_right', 10, 2); | |
function child_nav_right($menu, $args) { | |
$args = (array)$args; | |
if ( !genesis_get_option('nav_extras_enable') || $args['theme_location'] != 'primary' ) | |
return $menu; |
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
~. |
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
find . -type d -print0 | xargs -0 chmod 775 | |
find . -type d -print0 | xargs -0 chmod g+s | |
#Find all files with following extension and chmod them! | |
find . \( -name "*.png" -o -name "*.jpg" -o -name "*.gif" -o -name "*.php" -o -name "*.html" -o -name "*.pdf" -o -name "*.mp3" -o -name "*.js" -o -name "*.doc" -o -name "*.ico" -o -name "*.sql" \) -print0 | xargs -0 chmod 664 | |
#Anything ! not | |
find . ! \( -name "*.png" -o -name "*.jpg" -o -name "*.gif" -o -name "*.php" -o -name "*.html" \) -print |
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
chflags nohidden ~/Library |