Command | Description |
---|---|
tmux , tmux new , tmux new-session , new |
Start a new session. |
tmux new -s mysession , new -s mysession |
Start a new session named mysession . |
tmux new-session -A -s mysession |
Attach to mysession if it exists, otherwise create it. |
tmux attach , tmux attach-session , attach |
Attach to the last session. |
tmux attach -t mysession , tmux attach-session -t mysession |
Attach to session mysession . |
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 -g mouse on | |
# Set vi-style key bindings | |
setw -g mode-keys vi | |
# Easily switch panes | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R |
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
if (process.env.NEXT_RUNTIME === 'nodejs' && process.env.LOGGER_DISABLED !== 'true') { | |
import('./services/discordLogger') | |
} |
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
/** @type {import('next').NextConfig} */ | |
const nextConfig = { | |
serverExternalPackages: ["knex", "node-ssh", "discord.js", "zlib-sync"], | |
output: "standalone", | |
webpack: (config, options) => { | |
// Handle zlib-sync issue on ARM architecture | |
config.resolve.alias = { | |
...config.resolve.alias, | |
'zlib-sync': false | |
}; |
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
{ | |
"name": "knext", | |
"version": "0.1.0", | |
"private": true, | |
"scripts": { | |
"dev": "next dev", | |
"build": "next build", | |
"start": "next start", | |
"migrate:make": "knex migrate:make", | |
"migrate:latest": "knex migrate:latest", |
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
import { WebhookClient } from 'discord.js'; | |
const DISCORD_WEBHOOK_URL = process.env.DISCORD_WEBHOOK_URL as string; | |
class DiscordLogger { | |
private webhook: WebhookClient | null = null; | |
constructor() { | |
// Only initialize webhook in Node.js environment | |
if (process.env.NEXT_RUNTIME === 'nodejs' && !process.env.IS_ARM) { |