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 | |
nvidia-settings -a "GPUFanControlState=1" | |
while true | |
do | |
gputemp=`nvidia-settings -q GPUCoreTemp |awk -F ":" 'NR==2{print $3}' |sed 's/[^0-9]*//g'` | |
case "${gputemp}" in |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Determine the RewriteBase automatically and set it as environment variable. | |
# If you are using Apache aliases to do mass virtual hosting or installed the | |
# project in a subdirectory, the base path will be prepended to allow proper | |
# resolution of the app.php file and to redirect to the correct URI. It will | |
# work in environments without path prefix as well, providing a safe, one-size | |
# fits all solution. But as you do not need it in this case, you can comment | |
# the following 2 lines to eliminate the overhead. |
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
echo off | |
title Time sync batch file | |
net start w32time | |
w32tm /resync | |
net stop w32time | |
:: pause | |
exit |
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/sh | |
# Script based on https://stackoverflow.com/a/51475988 and https://gist.github.com/axiac/3a772c0d20a9f2e77b2165df0ed71e48 | |
PRIMARY_REPO_PATH="$(pwd)"; | |
SECONDARY_REPO=""; | |
SECONDARY_REPO_PATH="/tmp/secondary-repo"; | |
NEW_PATH_SECONDARY_REPO="change/me"; | |
REMOTE_NAME="secondary_repo"; | |
SECONDARY_TEMP_BRANCH="tmp_subdir"; |