This file contains hidden or 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
// ==UserScript== | |
// @name GitHub PR Status Markdowner | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Copy MD of GitHub PR Review Statuses | |
// @author Eric Boehs | |
// @match https://github.com/pulls* | |
// @grant GM.setClipboard | |
// @run-at document-ready | |
// @inject-into content |
This file contains hidden or 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
#! /usr/bin/env bash | |
# <bitbar.title>VA SOCKS</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>Eric Boehs</bitbar.author> | |
# <bitbar.author.github>ericboehs</bitbar.author.github> | |
# <bitbar.desc>Connects to VA SOCKS and provides useful links</bitbar.desc> | |
# <swiftbar.hideAbout>true</swiftbar.hideAbout> | |
# <swiftbar.hideRunInTerminal>true</swiftbar.hideRunInTerminal> |
This file contains hidden or 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
review_pr() { | |
pr_id=$1 | |
gh pr view $pr_id --comments; git fetch -q; out_of_date=$(git rev-list --left-right --count origin/$GIT_MASTER_BRANCH...$(echo "origin/$(gh pr view $pr_id --json headRefName | jq .headRefName | tr -d '\"')") | awk '{print $1}'); [[ $out_of_date -gt 20 ]] && echo "‼️ Branch is $out_of_date commits out of date with $GIT_MASTER_BRANCH."; gh pr checks $pr_id; gh pr diff $pr_id; echo -n "[approve] or request-changes? "; read review; gh pr review $pr_id --${review:-approve} | |
} | |
review_prs() { | |
pr_id=$(GH_FORCE_TTY=100 gh pr list --limit 200 --search "is:pr is:open draft:false NOT WIP in:title review-requested:@me review:required -label:Lighthouse label:console-services-review" | fzf --ansi --preview 'GH_FORCE_TTY=100 gh pr view {1}' --preview-window down --header-lines 3 | awk '{print $1}' | tr -d '#'); | |
review_pr $pr_id | |
} |
This file contains hidden or 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
// ==UserScript== | |
// @name Sidekiq Environment Highlighter | |
// @description Changes navbar color based on which Sidekiq env you're viewing | |
// @match *://*.va.gov/sidekiq* | |
// @run-at document-ready | |
// ==/UserScript== | |
if (document.URL.includes("staging-api.va.gov/sidekiq")) { | |
document.getElementsByClassName("navbar-default")[0].style.backgroundColor = "peachpuff"; | |
} else if (document.URL.includes("dev-api.va.gov/sidekiq")) { |
This file contains hidden or 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
# frozen_string_literal: true | |
# This file is used by Rack-based servers to start the application. | |
require_relative 'config/environment' | |
map Rails.application.config.relative_url_root || '/' do | |
run Rails.application | |
Rails.application.load_server | |
end |
This file contains hidden or 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
/* ==UserStyle== | |
@name VA Datadog Warning Hider | |
@description Hides the "WARNING! This system contains U.S. Government information" alert. | |
@match https://vagov.ddog-gov.com/* | |
==/UserStyle== */ | |
.single-page-app_layout_fedramp-warning-top-bar { display: none !important } |
This file contains hidden or 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
// ==UserScript== | |
// @name Slack Redirector | |
// @namespace boehs.com | |
// @include *://adhoc.slack.com/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(() => { | |
const regex = /https:\/\/adhoc\.slack\.com\/(.+)$/; |
This file contains hidden or 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
# Fetch stdgems.json if not exist | |
unless File.exist?('stdgems.json') | |
puts "Fetching stdgems.json...\n\n" | |
`curl -s -o stdgems.json https://stdgems.org/stdgems.json` | |
end | |
require 'json' | |
stdgems_json = File.read('stdgems.json') |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>Activate</key> | |
<string>Normal</string> | |
<key>CreationDate</key> | |
<real>702922293.579934</real> | |
<key>Macros</key> |
This file contains hidden or 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
// ==UserScript== | |
// @name ZenHub to GitHub Redirect | |
// @namespace boehs.com | |
// @include *://app.zenhub.com/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(() => { | |
const regex = /https:\/\/app\.zenhub\.com\/workspaces\/.+\/issues\/gh\/(.+\/.+?)\/(\d+)$/; |