nvm install 24
nvm alias default 24
node -v
corepack enable
npm install -g corepack
pnpm -v
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
#!/bin/sh | |
set -e | |
sudo dnf install -y docker | |
sudo usermod -a -G docker ec2-user | |
newgrp docker | |
sudo systemctl start docker | |
sudo systemctl enable docker |
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
/* Backgrounds */ | |
.full-background-whithout-wrapper { | |
border-image: conic-gradient(pink 0 0) fill 0//0 100vw; | |
} | |
/* Overlay */ | |
.overlay { | |
border-image: fill 0 linear-gradient(#0003,#000); | |
} |
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
-- inspect locks | |
WITH sos AS ( | |
SELECT array_cat(array_agg(pid), | |
array_agg((pg_blocking_pids(pid))[array_length(pg_blocking_pids(pid),1)])) pids | |
FROM pg_locks | |
WHERE NOT granted | |
) | |
SELECT a.pid, a.usename, a.datname, a.state, | |
a.wait_event_type || ': ' || a.wait_event AS wait_event, | |
current_timestamp-a.state_change time_in_state, |
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
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
if [[ "${TRACE-0}" == "1" ]]; then | |
set -o xtrace | |
fi | |
if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then |
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
version: '2.4' | |
volumes: | |
esdata: | |
driver: local | |
networks: | |
backend: | |
driver: bridge |
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 COMP_KEYWORD_CASE upper | |
\x auto | |
\pset null ¤ |