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
<ifModule mod_headers.c> | |
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS | |
Header set X-XSS-Protection "1; mode=block" | |
Header set X-Content-Type-Options nosniff | |
Header set X-Frame-Options DENY | |
Header add Content-Security-Policy "default-src * data: blob: filesystem: about: ws: wss: 'unsafe-inline' 'unsafe-eval' 'unsafe-dynamic'; script-src * data: blob: 'unsafe-inline' 'unsafe-eval'; connect-src * data: blob: 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; frame-src * data: blob: ; style-src * data: blob: 'unsafe-inline'; font-src * data: blob: 'unsafe-inline';" | |
</ifModule> | |
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
uname -a | |
lsb_release -a | |
lscpu | grep "MHz". | |
sudo dmidecode -t processor | grep "Speed" | |
lshw -c cpu | egrep "capacity|size" | |
sudo lshw -c cpu | egrep "capacity|size" | |
head /sys/devices/system/cpu/cpu0/cpufreq/scaling_* | |
yum install -y powertop | |
powertop |
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 aux | awk '{print $6/1024 " MB \t\t" $1 "\t\t" $11}' | sort -n | tail -n 50 | tac | |
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
sudo docker run -i -t -d -p 2443:443 \ | |
-e JWT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\ | |
-v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice \ | |
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \ | |
-v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \ |
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
Set-UnifiedGroup "[email protected]" –AcceptMessagesOnlyFrom @{add="[email protected]"} | |
Set-UnifiedGroup "[email protected]" -AcceptMessagesOnlyFromSendersOrMembers @{add="[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
### VERY careful here... point is to surgically remove tracker processes | |
kill $(ps aux | grep 'tracker' | awk '{print $2}') | |
echo "Hidden=true" >> /etc/xdg/autostart/tracker-extract.desktop | |
echo "Hidden=true" >> /etc/xdg/autostart/tracker-miner-apps.desktop | |
echo "Hidden=true" >> /etc/xdg/autostart/tracker-miner-fs.desktop | |
echo "Hidden=true" >> /etc/xdg/autostart/tracker-miner-user-guides.desktop | |
echo "Hidden=true" >> /etc/xdg/autostart/tracker-store.desktop | |
dbus-launch --exit-with-session gsettings set org.freedesktop.Tracker.Miner.Files crawling-interval -2 |
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
UZR=`who | cut -d"(" -f2 | cut -d")" -f1` | |
if [ "$UZR" != "" ]; then | |
sendemail -f '[email protected]' -t '[email protected]' -s '10.10.10.10' -u "Alert: Root Access on `hostname` from $UZR" -m "at `date`" > /dev/null 2>&1 | |
sendemail -f '[email protected]' -t '[email protected]' -s '10.10.10.10' -u "Alert: Root Access on `hostname` from $UZR" -m "at `date`" > /dev/null 2>&1 | |
fi |
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
loginctl unlock-session [id], where [id] is the session id you get by typing loginctl list-sessions |
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
Set-UnifiedGroup -Identity "SCALINX Digital Team" -HiddenFromExchangeClientsEnabled:$false |
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 process information | |
ps aux | grep <name> | |
strace -p <pid> | |
ls -l /proc//fd | |
lrwx-- 1 sanket sanket 64 Feb 5 23:00 0 ->; /dev/pts/19 | |
lrwx-- 1 sanket sanket 64 Feb 5 23:00 1 ->; /dev/pts/19 | |
lrwx-- 1 sanket sanket 64 Feb 5 22:59 2 ->; /dev/pts/19 | |
... | |
lrwx-- 1 sanket sanket 64 Feb 5 23:00 11 -> socket:[102286] |
NewerOlder