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 | |
| # Set Cinnamon panel icon sizes and panel height. | |
| # Restart Cinnamon (Alt+F2 → cinnamon --replace) after running. | |
| # Fullcolor (app/window icons): 22px | |
| gsettings set org.cinnamon panel-zone-icon-sizes '[{"left":30,"center":30,"right":30,"panelId":1}]' | |
| # Symbolic (tray/system icons): 16px | |
| gsettings set org.cinnamon panel-zone-symbolic-icon-sizes '[{"left":20,"center":20,"right":20,"panelId":1}]' |
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 | |
| # Create a random temporary file | |
| TEMP_FILE=$(mktemp /tmp/forward_rules.XXXXXX) | |
| # List all rules in the FORWARD chain with line numbers | |
| iptables -L FORWARD -n --line-numbers | grep "dpt:443" | grep -v "ufw" > "$TEMP_FILE" | |
| # Check if any rules were found | |
| if [[ ! -s "$TEMP_FILE" ]]; then |
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
| # Depends on | |
| # * Python | |
| # * Pillow (https://pypi.python.org/pypi/Pillow/3.4.2#downloads) | |
| # | |
| # Execute with | |
| # http://superuser.com/questions/276154/automating-the-scanning-of-graphics-files-for-corruption | |
| # | |
| # Source | |
| # http://superuser.com/questions/276154/automating-the-scanning-of-graphics-files-for-corruption | |
| # -------------------- |
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
| diskspd.exe -c10M -d360 -r -w40 -t8 -o32 -b4k -Sh -L testfile.dat |