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
// REMEMBER TO FILL IN YOUR TRANSMISSION USERNAME/PASSWORD | |
tasks: | |
clean-transmission: | |
from_transmission: | |
host: localhost | |
port: 9091 | |
username: | |
password: | |
disable: [seen, seen_info_hash] |
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
## THIS IS A WORKAROUND TO SET A GLOBAL VARIABLE | |
## THIS IS WHAT YOU SHOULD CHANGE TO TURN ON MAINTENANCE MODE | |
map $host $maintenance { | |
default false; | |
} | |
## THEN ON THE SERVER BLOCK | |
## IF MAINTENANCE MODE IS TURNED ON | |
## WE RETURN A ERROR CODE |
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
function roundInStepsOfFive(number) { | |
return Math.round(number / 5 ) * 5; | |
} | |
alert(roundInStepsOfFive(54)); |