git checkout develop
git branch -D clean-rebuild-no-01
git checkout -b clean-rebuild-no-01
#!/bin/bash | |
# Save as .git/hooks/pre-commit | |
# chmod +x .git/hooks/pre-commit | |
# check dashes | |
echo "Checking formatting..." | |
# get files | |
files=$(git diff --cached --name-only | grep -vE '^(\.git/|node_modules/|__pycache__/|\.cache/|dist/|build/|vendor/)') | |
found=0 | |
for file in $files; do | |
# skip binary |
name: Convert Notebooks to Markdown | |
on: | |
push: | |
paths: ['**.ipynb'] | |
jobs: | |
convert: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: |
#!/bin/zsh | |
################################################################# | |
# π GITHUB GIST ALIASES & FUNCTIONS | |
# Collection of aliases for managing GitHub Gists via gh CLI | |
# Author: @trauco | |
# Date Added: 2024-01-15 | |
# Dependencies: gh (GitHub CLI), vim | |
################################################################# | |
################################################################# |
#!/bin/bash | |
# π§ Disables scroll-based workspace switching in XFCE | |
# π Backs up current settings to ~/.xfce-backups/pre_scroll_disable.txt | |
mkdir -p ~/.xfce-backups | |
xfconf-query -c xfwm4 -lv | grep -E "scroll|rollup" > ~/.xfce-backups/pre_scroll_disable.txt | |
# Disable scroll workspace switching and title bar rollup | |
xfconf-query -c xfwm4 -p /general/scroll_workspaces -s false |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH | |
alias gistedit='function _gistedit(){ vim "$1"; local filename="$1"; gh gist create "$filename" --public; }; _gistedit' | |
alias gisteditdesc='function _gisteditdesc(){ | |
local filename="$1"; | |
if [ -z "$filename" ]; then | |
echo "Usage: gisteditdesc <filename>"; | |
return 1; | |
fi; |
#!/bin/bash | |
# Install xbindkeys | |
echo "Installing xbindkeys..." | |
sudo apt update && sudo apt install xbindkeys -y | |
# Create the default configuration file | |
echo "Creating xbindkeys configuration file..." | |
xbindkeys --defaults > ~/.xbindkeysrc |
#!/bin/bash | |
# π₯ Peek Launcher Script | |
# π οΈ Usage: | |
# 1οΈβ£ Install dependencies: `sudo apt install peek xdotool x11-utils` | |
# 2οΈβ£ Save this script as `peek_at_cursor.sh` and make it executable. | |
# Example: `chmod +x ~/scripts/peek_at_cursor.sh` | |
# 3οΈβ£ Run the script: `~/scripts/peek_at_cursor.sh` | |
# 4οΈβ£ Peek will open at your cursor's position and stay open for multiple recordings. |
# Today only (since midnight UTC) | |
resource.type="cloud_function" | |
resource.labels.function_name="your_function_name" | |
timestamp >= timestamp_trunc(current_timestamp(), DAY, "UTC") | |
( | |
textPayload=~"ERROR" | |
OR textPayload:~"Checking if blob exists" | |
OR textPayload:~"Attempting to download blob" | |
OR textPayload:~"Starting workbook preprocessing" | |
OR textPayload:~"SOURCE_PROCESSING_ERROR" |