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
# Thanks chat gippity! | |
# This zsh function simplifies jumping around many repos. And single repos, too | |
# It attempts to checkout the current dir's git repo main branch, fetch and pull, and open the directory in VS Code | |
# If there are unstaged changes in the current branch, it shows a diff and asks y/n if you want to discard those changes | |
# If yes, it continues as normal (checkout main, fetch, pull, VSC). If no, it aborts | |
# Why "mupen"? It's some amalgamation of main, pull, and open :shrug: | |
# Define the function | |
mupen() { | |
# Attempt to checkout the main branch. If there are no changes, this will succeed. |
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
# Another ChatGPT win, I only had to make one change | |
# This just builds a JSON-based cache (in your home dir, update the cacheFile if you don't like that) based on a git branch name, commit message, and pull request body | |
# Using those, it will create a new branch, add a commit, and (using the gh CLI) create a PR with the cached body | |
# This allows for however many cached values you need | |
# Pretty much only useful for large-scale small-change PR rollouts, like small GHA updates etc | |
prcache() { | |
cacheFile="$HOME/.git_pr_cache.json" | |
# Initialize the cache file with an empty array if it doesn't exist |
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
const { Octokit } = require("@octokit/rest"); | |
const createCsvWriter = require('csv-writer').createObjectCsvWriter; | |
// Initialize Octokit with your GitHub token from environment variable | |
const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN }); | |
// CSV setup | |
const csvWriter = createCsvWriter({ | |
path: 'compliance_check_result.csv', | |
header: [ |
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
:root { | |
--custom-bg-color: #090c10; | |
--search-result-gap: 20px; | |
--search-result-gap-mobile: 10px; | |
--app-bg: var(--custom-bg-color); | |
--search-result-title: #fff; | |
--primary-visited: #aaa; | |
/*! --quick-search-bg: #000; */ |
OlderNewer