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-UserDesktopPreferences - Set up Explorer environment the way I like | |
| Function Set-UserDesktopPreferences { | |
| <# | |
| .Synopsis | |
| Set up the windows Explorer environment the way I prefer | |
| .Description | |
| Windows Blue (8.1) and Redstone (10 v1607+) introduced a far closer coupling of their | |
| Bing and Cortana services to the standard Operating System experience - i.e. the search | |
| bar, Cortana ("Hey, Cortana"), and bing search results in the start 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
| #!/bin/bash | |
| # Translate between C89 and C11 comment styles. The default is to take C11 comments | |
| # and turn them into C89 comments, but this can be changed with the -89 flag when | |
| # invoking the script. | |
| # Usage of the script is as follows: | |
| # commentTr [-89] <list_of_files> | |
| # | |
| #TODO: | |
| # Implement -89 switch |
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 | |
| # Start a python server here. | |
| #What version python are we? | |
| py_ver=$(python -c "import sys;o='{v[0]}'.format(v=list(sys.version_info[:1]));sys.stdout.write(o);") | |
| if [[ $py_ver -lt 3 ]]; then | |
| #Is the server running? | |
| pid=$(ps aux | awk '/[p]ython -m SimpleHTTPServer/ {print $2}') || 0 | |
| if [[ $pid -eq 0 ]]; then | |
| python -m SimpleHTTPServer >>server.log 2>>server.err & |
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 | |
| # Backs stuff up. This script uses rsync to back stuff up to the backup drive. It | |
| # is *not* version control, so it only has a single copy of the tree; this increases | |
| # speed and keeps the file IO time to a minimum. | |
| # !!! | |
| # THIS SCRIPT CAN AND WILL DELETE THINGS FROM THE DESTINATION. | |
| # !!! | |
| # To pass in a non-standard source and destination, run this script like so: | |
| # backup.sh <SRC> <DEST> | |
| # |