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
#!/bin/bash | |
sudo -i | |
setfacl -m u:username:rwx /path/to/folder_or_file |
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
# Run the following command in the Windows Command Prompt (Not Power Shell!!!) | |
rd /s "\\?\C:\path\to\bad\folder\file |
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
https://www.chromium.org/administrators/policy-list-3#ExtensionInstallBlacklist |
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
https://design.ubuntu.com/font/ |
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
a2enmod headers | |
systemctl restart apache2.service | |
vim /etc/apache2/conf-enabled/security.conf | |
### add the following: | |
Header set X-Content-Type-Options: "nosniff" | |
Header set X-Frame-Options: "sameorigin" | |
Header unset X-Powered-By | |
Header set X-XSS-Protection 1;mode=block | |
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" |
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
# Tested on CURL v 7.29.0 | |
curl -s -w 'Testing Website Response Time for :%{url_effective}\nRemote IP: %{remote_ip}\nResponse Code: %{response_code}\n\nDNS Lookup Time:\t%{time_namelookup}\nConnect Time:\t\t%{time_connect}\nAppCon Time:\t\t%{time_appconnect}\nRedirect Time:\t\t%{time_redirect}\nPre-transfer Time:\t%{time_pretransfer}\nStart-transfer Time:\t%{time_starttransfer}\n\nTotal Time:\t\t%{time_total}\n' \ | |
-o /dev/null \ | |
https://www.google.com |
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
My machine was experience virtualbox hardening issue and was only able to stay on the 4.3.12. We have a solution to get around it to run the latest version of Virtual Box. I hope this will help others to get around it. | |
1. Install the latest version of VirtualBox. | |
2. Once installed, open Register Editor | |
3. Nagivate to the following path HKLM\SYSTEM\CurrentControlSet\services\vboxdrv | |
4. Change Start value to the number 3 (delay start) | |
5. Reboot your HOST OS | |
6. Before you start your Virtual Box for the first time after your HOST OS reboot/startup, run the following command line as administrator | |
sc start vboxdrv |
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
#!/bin/bash | |
cpuTemp0=$(cat /sys/class/thermal/thermal_zone0/temp) | |
cpuTemp1=$(($cpuTemp0/1000)) | |
cpuTemp2=$(($cpuTemp0/100)) | |
cpuTempM=$(($cpuTemp2 % $cpuTemp1)) | |
echo CPU temp"="$cpuTemp1"."$cpuTempM"'C" | |
echo GPU $(/opt/vc/bin/vcgencmd measure_temp) |
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
gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "<Super>" |
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
#!/bin/bash | |
# SPDX-License-Identifier: MIT | |
## Copyright (C) 2009 Przemyslaw Pawelczyk <[email protected]> | |
## | |
## This script is licensed under the terms of the MIT license. | |
## https://opensource.org/licenses/MIT | |
# | |
# Lockable script boilerplate | |