Format buildscripts (pretty unsubstantial but needed to happen :3)

This commit is contained in:
Elizabeth Hunt 2023-02-11 23:37:47 -07:00
parent e5ac660413
commit 7568b61444
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
9 changed files with 72 additions and 71 deletions

View File

@ -167,7 +167,7 @@ function build_server_nodes() {
copy_ssh_keys
for node_id in "${server_node_ids[@]}"
do
build_server $node_id
build_server $node_id &
done
}

View File

@ -17,6 +17,9 @@ export const Root = () => {
</Link>
</div>
<div className="nav">
<Link className="link" to="/man-pages">
Man Pages
</Link>
{signedIn ? (
<>
<Link className="link" to="/home">
@ -42,9 +45,6 @@ export const Root = () => {
</a>
</>
)}
<Link className="link" to="/man-pages">
Man Pages
</Link>
</div>
</div>
<div className="content">

View File

@ -3,11 +3,10 @@ import { Link } from "react-router-dom";
import { useAuthContext } from "../context/auth_context";
const generateSSHConfig = (username) => `
Host chessh
const generateSSHConfig = (username) => `Host chessh
Hostname ${process.env.REACT_APP_SSH_SERVER}
Port ${process.env.REACT_APP_SSH_PORT}
User "${username}"
User ${username.includes(" ") ? '"' + username + '"' : username}"
PubkeyAuthentication yes
`;

View File

@ -56,7 +56,7 @@ export const ManPages = () => {
<ul>
<li>Ctrl + b / Escape to return to the main menu.</li>
<li>Ctrl + c / Ctrl + d to exit CheSSH at any point.</li>
<li>Arrow keys / vim keybinds to move around the board.</li>
<li>Arrow keys / hjkl keybinds to move around the board.</li>
<li>
Select a piece with "enter", and move it to a square by pressing
"enter" again.

View File

@ -21,13 +21,15 @@ defmodule Chessh.DiscordNotifier do
@impl true
def handle_info({:attempt_notification, notification} = body, state) do
[discord_notification_rate, discord_notification_rate_ms] =
[discord_notification_rate, discord_notification_rate_ms, reschedule_delay] =
Application.get_env(:chessh, RateLimits)
|> Keyword.take([:discord_notification_rate, :discord_notification_rate_ms])
|> Keyword.take([
:discord_notification_rate,
:discord_notification_rate_ms,
:reschedule_delay
])
|> Keyword.values()
reschedule_delay = Application.get_env(:chessh, RateLimits)[:reschedule_delay]
case Hammer.check_rate_inc(
:redis,
"discord-rate",