Skip to content

Instantly share code, notes, and snippets.

View iTrauco's full-sized avatar

Christopher Trauco iTrauco

View GitHub Profile
{
"timestamp": {
"format": "%Y-%m-%d %H:%M:%S",
"position": {
"x": "w-tw-10",
"y": "h-th-10",
"comment": "bottom-right corner"
},
"font": {
"size": 8,
gs://{bucket-name}/
└── archived/
└── {YYYY-MM-DD}/
└── {domain}/
└── workspace/ (or webdocs/)
└── {original-folder-structure}/
└── {files}
pip install pandas numpy matplotlib seaborn openpyxl xlsxwriter ipywidgets nbconvert python-docx markdown plotly jupyter
# Activate your environment first
conda activate ad-group-remediation-workflow
# Install all pip packages from environment.yml
pip install papaparse plotly kaleido nbformat jupyter-contrib-nbextensions python-docx docx2txt markdown python-markdown xlwings
# For Windows only (skip on Linux):
# pip install pywin32
# Enable jupyter extensions

Python

pycache/ *.py[cod] *$py.class *.so .Python build/ develop-eggs/ dist/ downloads/

#!/bin/bash
# NVIDIA/Display Comprehensive Diagnostic Script
# Output file
OUTPUT="nvidia_diagnostic_$(date +%Y%m%d_%H%M%S).log"
echo "NVIDIA/Display Diagnostic Report - $(date)" | tee $OUTPUT
echo "============================================" | tee -a $OUTPUT
# System info

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
#################################################################
#################################################################