This file contains 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
# Overrides 'pip' based on the virtual environment. | |
# Uses 'uv pip' if the environment was created by 'uv', otherwise uses 'pip'. | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
BOLD='\033[1m' | |
NC='\033[0m' | |
function pip() { | |
if [[ -z "$VIRTUAL_ENV" ]]; then | |
printf "%bNo virtual environment is activated. Running %b'pip %s'%b\n" \ |
This file contains 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
# Overrides 'pip' based on the virtual environment. | |
# Uses 'uv pip' if the environment was created by 'uv', otherwise uses 'pip'. | |
function pip() { | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
BOLD='\033[1m' | |
NC='\033[0m' | |
if [[ -n "$VIRTUAL_ENV" ]]; then |
This file contains 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 | |
MAC_ADDRESS="XX:XX:XX:XX:XX:XX" # Replace with your AirPods' MAC address | |
# Check if AirPods are already connected | |
if bluetoothctl info $MAC_ADDRESS | grep -q "Connected: yes"; then | |
notify-send "AirPods are already connected." | |
else | |
# Connect to AirPods | |
bluetoothctl connect $MAC_ADDRESS | |
notify-send "Connecting to AirPods..." |
This file contains 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 pandas as pd | |
from sqlalchemy import create_engine, URL | |
from sqlalchemy.sql import text | |
url_object = URL.create( | |
drivername="DIALECT+DRIVER", | |
username="username", | |
password="password", | |
host="host", | |
database="database_name", |