This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.
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
[user] | |
name = Ben Hyrman | |
email = ben.hyrman@gmail.com | |
[core] | |
autocrlf = true | |
editor = vim | |
excludesfile = C:\\Users\\Ben\\Documents\\gitignore_global.txt | |
[credential] | |
helper = !~/AppData/Roaming/GitCredStore/git-credential-winstore | |
[merge] |
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
$global:debug = $false | |
$global:debugverbose = $false | |
Function GetUninstallString([string]$computername, $displayname) | |
{ | |
try { | |
#first, we'll grab a collection of key names below HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall for 64 bit | |
#we'll search for the DisplayName... | |
#if found, we'll query for the UninstallString and we'll stop looking | |
write-host "Getting UninstallString. This may take a moment..." -backgroundcolor "DarkYellow" |
-
Download a Kindle-compatible version of the dictionary here. Unzip the .rar archive.
-
Get the "Send to Kindle" program on your computer. Here's the link for the Mac.
-
Right-click your recently downloaded (unzipped) dictionary file, and click the "Send to Kindle" menu item. It will arrive on your Kindle shortly.
-
Once the dictionary has arrived, go to your settings -- on my newish paperwhite, it's at Home > Settings > Device Options > Language and Dictionaries > Dictionaries > English. Choose the Webster's 1913.
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
# Has your OS/FS/disk lost your data? | |
# cd to the directory containing your project repositories and run the command | |
# below. (It's long; make sure you get it all.) It finds all of your git repos | |
# and runs paranoid fscks in them to check their integrity. | |
(set -e && find . -type d -and -iname '.git' | while read p; do (cd "$(dirname "$p")" && (set -x && git fsck --full --strict)); done) && echo "OK" | |
# I have 81 git repos in my ~/proj directory and had no errors. |
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
require "zlib" | |
if(ARGV.length != 2) | |
puts "usage: ruby zdist.rb file1 file2" | |
else | |
f1 = File.read(ARGV[0]) | |
f2 = File.read(ARGV[1]) | |
f1d = Zlib::Deflate.deflate(f1) | |
f2d = Zlib::Deflate.deflate(f2) | |
compressed = Zlib::Deflate.deflate(f1+f2) |
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 bash -e | |
cat <<TEXT | |
Git has no undo feature, but maybe these will help: | |
=================================================== | |
## Unstage work | |
Unstage a file |
- Everyone is safe, respected, and treated with empathy and dignity.
- Pay is competitive, fair, and relatively transparent.
- Capitalize on a culture of looking at other jobs in other companies.
- Titled leaders deeply respect their implicit influence.
- Managers of technical workers are always highly technically skilled.
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
#requires -module msterminalsettings,threadjob | |
###QUICKSTART | |
#FIRST: Run this in your Powershell Windows Terminal: Install-Module threadjob,msterminalsettings -scope currentuser | |
#THEN: iex (iwr git.io/invoketerminalgif) | |
#THEN: Get-Help Search-Giphy -Examples | |
#THEN: Get-Help Invoke-TerminalGif -Examples | |
#THEN: Search-Giphy | Format-List -prop * | |
#THEN: Invoke-TerminalGif https://media.giphy.com/media/g9582DNuQppxC/giphy.gif |