test
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
//go:build ignore | |
// (before 1) [package doc comment] | |
package main | |
// (before 2) [this is a general comment] | |
// (group 1) this is a lonely single element grouping. | |
import ( | |
"go/format" |
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
#!/bin/bash -e | |
rm -rf repo* | |
ROOT_DIR="$(pwd)" | |
mkdir repo-origin | |
export GIT_PAGER=cat | |
( | |
cd repo-origin |
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
--- /Users/USER/Library/Application Support/JetBrains/IntelliJIdea2022.2/before.txt 2022-09-27 10:30:08.000000000 -0700 | |
+++ /Users/USER/Library/Application Support/JetBrains/IntelliJIdea2022.2/jba_config/ide.general.xml 2022-09-27 10:31:36.000000000 -0700 | |
@@ -1,34 +1,36 @@ | |
<application> | |
<component name="GeneralSettings"> | |
<option name="autoSaveIfInactive" value="true" /> | |
<option name="confirmExit" value="false" /> | |
<option name="confirmOpenNewProject2" value="0" /> | |
<option name="inactiveTimeout" value="5" /> | |
<option name="processCloseConfirmation" value="TERMINATE" /> |
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
#!/bin/bash | |
# DEPENDENCIES: | |
# - git | |
# - stg | |
# - jq | |
# Stacked git records metadata in two commits: | |
# | |
# 1. Octopus commit that is a "merge" commit that has parent links to: |
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
#!/bin/bash | |
# | |
# osc52 is a utility for copying to system clipboard via osc52 escape sequences. | |
# | |
# If your terminal supports these sequences this enables you | |
# to copy things from remote SSH sessions to system clipboard. | |
# | |
# Convenient when you're using lots of in-browser terminals or working on a remote server. | |
# | |
# Usage: |
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
stg-checked-refresh-index() { | |
#: stg-checked-refresh-index | |
#: `stg refresh --index` but with diff preview and confirmation | |
#: | |
TARGET_PATCH=$(stg top) | |
git diff --cached -u --stat | |
git --no-pager diff --cached --stat |
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
# A collection of improvised utilites to fixup stacked git metadata |
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
#!/usr/bin/env python3 | |
from io import TextIOWrapper | |
from typing import List | |
import os | |
import sys | |
import math | |
import json | |
import datetime |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"strings" | |
"github.com/spf13/cobra" | |
"github.com/spf13/pflag" | |
"github.com/spf13/viper" |
NewerOlder