sqlite3 -escape off server/db/db.sqlite .dump > db.sql
Escape off prevents unistr in newer versions of sqlite, which D1 does not support.
- Remove
BEGIN TRANSACTION;andCOMMIT;from the file
| # Install Cursor AI IDE | |
| mkdir -p ~/apps | |
| curl -L https://api2.cursor.sh/updates/download/golden/linux-x64/cursor/2.4 -o ~/apps/cursor.AppImage | |
| chmod +x ~/apps/cursor.AppImage | |
| curl -L https://mintlify.s3.us-west-1.amazonaws.com/cursor/images/logo/app-logo.svg -o ~/apps/cursor.svg | |
| mkdir -p ~/.local/share/applications | |
| cat > ~/.local/share/applications/cursor.desktop <<EOL | |
| [Desktop Entry] | |
| Name=Cursor IDE | |
| Exec=$HOME/apps/cursor.AppImage |
| import { count } from 'drizzle-orm' | |
| const DEFAULT_PAGE_SIZE = 20 | |
| const MAX_PAGE_SIZE = 200 | |
| type PaginateableQuery<TQuery> = { | |
| limit: (limit: number | undefined) => PaginateableQuery<TQuery> | |
| offset: (offset: number | undefined) => PaginateableQuery<TQuery> | |
| orderBy: (orderBy: string) => PaginateableQuery<TQuery> | |
| } |
| import type { H3Event } from 'h3' | |
| import { count } from 'drizzle-orm' | |
| const DEFAULT_PAGE_SIZE = 20 | |
| const MAX_PAGE_SIZE = 200 | |
| type PaginateableQuery<TQuery> = { | |
| limit: (limit: number | undefined) => PaginateableQuery<TQuery> | |
| offset: (offset: number | undefined) => PaginateableQuery<TQuery> | |
| orderBy: (orderBy: string) => PaginateableQuery<TQuery> |
| # If postgis is used | |
| yay -S postgis-old-upgrade | |
| sudo su | |
| systemctl stop postgresql | |
| mv /var/lib/postgres/data /var/lib/postgres/olddata | |
| mkdir /var/lib/postgres/data /var/lib/postgres/tmp | |
| chown postgres:postgres /var/lib/postgres/data /var/lib/postgres/tmp | |
| sudo su postgres | |
| cd /var/lib/postgres/tmp | |
| # Use --no-data-checksums if pg was initialized without page checksums |
| sudo tee /usr/share/applications/google-chrome.desktop > /dev/null << 'EOF' | |
| [Desktop Entry] | |
| Version=1.0 | |
| Name=Google Chrome | |
| GenericName=Web Browser | |
| Comment=Access the Internet | |
| StartupWMClass=Google-chrome | |
| Exec=/usr/bin/google-chrome-stable --ozone-platform=x11 %U | |
| StartupNotify=true | |
| Terminal=false |
| #!/bin/bash | |
| set -e | |
| echo "📦 Installing recommended Devanagari fonts..." | |
| sudo pacman -S --needed noto-fonts noto-fonts-cjk noto-fonts-extra --noconfirm | |
| echo "🛠 Creating Fontconfig override for Hindi and Nepali..." | |
| mkdir -p ~/.config/fontconfig |
| sudo pacman -S meson jq | |
| git clone https://github.com/ubuntu/gnome-shell-extension-appindicator.git | |
| meson gnome-shell-extension-appindicator /tmp/g-s-appindicators-build | |
| ninja -C /tmp/g-s-appindicators-build install | |
| gnome-extensions enable [email protected] |
| # sudo without password | |
| echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/100-$(whoami) && sudo chmod 0440 /etc/sudoers.d/100-$(whoami) | |
| # Add essential packages | |
| sudo pacman -S yay vim meson jq | |
| sudo pamac install base-devel | |
| # Add ddterm | |
| sudo tee -a /etc/pacman.conf <<EOF |