Skip to content

Instantly share code, notes, and snippets.

View iTrauco's full-sized avatar

Christopher Trauco iTrauco

View GitHub Profile

1. Switch back to develop

git checkout develop

2. Delete the old local rebuild branch

git branch -D clean-rebuild-no-01

3. Create a new clean rebuild branch from develop

git checkout -b clean-rebuild-no-01

4. Remove all tracked files (except .git)

#!/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
#################################################################
#################################################################
@iTrauco
iTrauco / disable_xfce_scroll_workspace.sh
Created April 1, 2025 03:24
Script to disable scroll-based workspace switching in XFCE
#!/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.

Code Interaction Guidelines

Code Preservation

  • Maintain all existing comments and emojis in uploaded project code
  • Preserve file structure and documentation style
  • Keep existing formatting patterns

Code Modification Output Format

For each code change:

  1. File path must be shown:
# 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"