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 -S uv run --script | |
# /// script | |
# dependencies = [ | |
# "ipaddress", | |
# ] | |
# /// | |
""" | |
IPv6 Finder - A utility to find IPv6 addresses for Tailscale 4via6 subnet routers. |
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
pg_dump -h dev_host -U dev_user -d dev_db -- no-owner -- no-privileges -f db_dev.sql | |
psql -h 127.0.0.1 -U local_user local_db -f db_dev.sql |
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
$cursorPath = "c:\Users\lifep\AppData\Local\Programs\cursor\resources\app\bin\cursor" | |
$arguments = "--wait", "--reuse-window" | |
if ($args.Count -gt 0) { | |
$arguments += $args | |
} | |
Start-Process -FilePath $cursorPath -ArgumentList $arguments -WindowStyle Hidden -Wait |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
CREATE OR REPLACE FUNCTION clone_schema(source_schema text, dest_schema text) | |
RETURNS void AS $$ | |
DECLARE | |
object text; | |
buffer text; | |
default_ text; | |
column_ text; | |
BEGIN | |
EXECUTE 'CREATE SCHEMA ' || dest_schema; |
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 | |
# mise description="Generate the DB schema for the AI Contexts" | |
set -euo pipefail | |
cd "$(git rev-parse --show-toplevel)" | |
mkdir -p ./AIContexts/ | |
docker run --rm -v "$PWD/AIContexts:/data" postgres:15 \ | |
pg_dump $POSTGRES_URL -s -O -x -n public -t public.* -f /data/db_schema.sql |
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 | |
# mise description="Generate the DB schema for the AI Contexts" | |
set -euo pipefail | |
cd "$(git rev-parse --show-toplevel)" | |
mkdir -p ./AIContexts/ | |
docker run --rm -v "$PWD/AIContexts:/data" postgres:15 \ | |
pg_dump $POSTGRES_URL -s -O -x -n public -t public.* -f /data/db_schema.sql |
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/bash | |
set -euo pipefail | |
# Directory setup | |
APP_DIR="${HOME}/Applications/Postman" | |
BIN_DIR="/usr/bin" | |
ICON_DIR="${HOME}/.local/share/icons" | |
DESKTOP_DIR="${HOME}/.local/share/applications" |
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 command -v cursor &> /dev/null; then | |
export EDITOR="$(command -v cursor) --wait" | |
export SUDO_EDITOR="$(command -v cursor) --wait" | |
fi |
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/bash | |
# Not Tested, Generated by ChatGPT o1 | |
# https://x.com/tiangolo/status/1839686032326836723 | |
# Check if uv is in PATH | |
if ! command -v uv &> /dev/null | |
then | |
echo "Error: uv is not installed or not in your PATH." | |
echo "Please install uv before running this script." | |
exit 1 |
NewerOlder