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 | |
cd /home/ | |
for i in `ls | grep -v 'lost+found'`; do | |
if id "$i" &>/dev/null ; then | |
chattr -i /home/$i/conf | |
chown -R ${i}:${i} $i | |
chown root:root /home/$i/conf | |
chown root:root /home/$i/conf/* | |
chown root:bind /home/$i/conf/dns/* &>/dev/null | |
chown Debian-exim:mail /home/$i/conf/mail/* &>/dev/null |
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
Disable the WordPress Admin Bar for all Users and Visitors | |
Turn off the toolbar with one simple line. | |
view plain | |
/* | |
* Disable the WordPress Admin Bar for all Users and Visitors | |
*/ | |
remove_action( 'init', '_wp_admin_bar_init' ); | |
^ top | |
Enable the WordPress Admin Bar for admins only |
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
var findKey = function(obj, value) | |
{ | |
var key = null; | |
for (var prop in obj) | |
{ | |
if (obj.hasOwnProperty(prop)) | |
{ | |
if (obj[prop] === value) | |
{ |