Format buildscripts (pretty unsubstantial but needed to happen :3)
This commit is contained in:
parent
e5ac660413
commit
7568b61444
@ -167,7 +167,7 @@ function build_server_nodes() {
|
|||||||
copy_ssh_keys
|
copy_ssh_keys
|
||||||
for node_id in "${server_node_ids[@]}"
|
for node_id in "${server_node_ids[@]}"
|
||||||
do
|
do
|
||||||
build_server $node_id
|
build_server $node_id &
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,6 +17,9 @@ export const Root = () => {
|
|||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="nav">
|
<div className="nav">
|
||||||
|
<Link className="link" to="/man-pages">
|
||||||
|
Man Pages
|
||||||
|
</Link>
|
||||||
{signedIn ? (
|
{signedIn ? (
|
||||||
<>
|
<>
|
||||||
<Link className="link" to="/home">
|
<Link className="link" to="/home">
|
||||||
@ -42,9 +45,6 @@ export const Root = () => {
|
|||||||
</a>
|
</a>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Link className="link" to="/man-pages">
|
|
||||||
Man Pages
|
|
||||||
</Link>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="content">
|
<div className="content">
|
||||||
|
@ -3,11 +3,10 @@ import { Link } from "react-router-dom";
|
|||||||
|
|
||||||
import { useAuthContext } from "../context/auth_context";
|
import { useAuthContext } from "../context/auth_context";
|
||||||
|
|
||||||
const generateSSHConfig = (username) => `
|
const generateSSHConfig = (username) => `Host chessh
|
||||||
Host chessh
|
|
||||||
Hostname ${process.env.REACT_APP_SSH_SERVER}
|
Hostname ${process.env.REACT_APP_SSH_SERVER}
|
||||||
Port ${process.env.REACT_APP_SSH_PORT}
|
Port ${process.env.REACT_APP_SSH_PORT}
|
||||||
User "${username}"
|
User ${username.includes(" ") ? '"' + username + '"' : username}"
|
||||||
PubkeyAuthentication yes
|
PubkeyAuthentication yes
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ export const ManPages = () => {
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Ctrl + b / Escape to return to the main menu.</li>
|
<li>Ctrl + b / Escape to return to the main menu.</li>
|
||||||
<li>Ctrl + c / Ctrl + d to exit CheSSH at any point.</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>
|
<li>
|
||||||
Select a piece with "enter", and move it to a square by pressing
|
Select a piece with "enter", and move it to a square by pressing
|
||||||
"enter" again.
|
"enter" again.
|
||||||
|
@ -21,13 +21,15 @@ defmodule Chessh.DiscordNotifier do
|
|||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def handle_info({:attempt_notification, notification} = body, state) do
|
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)
|
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()
|
|> Keyword.values()
|
||||||
|
|
||||||
reschedule_delay = Application.get_env(:chessh, RateLimits)[:reschedule_delay]
|
|
||||||
|
|
||||||
case Hammer.check_rate_inc(
|
case Hammer.check_rate_inc(
|
||||||
:redis,
|
:redis,
|
||||||
"discord-rate",
|
"discord-rate",
|
||||||
|
Loading…
Reference in New Issue
Block a user