- Place eggs into bottom of sauce pan.
- Cover eggs with water.
- Bring to boil.
- Allow to boil for 4 minutes.
- Turn off burner and allow to cool.
- Eat at will.
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
# Delete all redundant git branches | |
# 1. `git branch` lists all the branches | |
# 2. `xargs -L1` consumes the pipe output one line at a time, feeding it as an an arg to the target command | |
# 3. `git branch -d` deletes the branches that are redundant (already merged). | |
# Note: this print results for each branch, either | |
# saying it's deleted or that you need to use -D to delete it because it's not redundant. | |
git branch | xargs -L1 git branch -d |
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
export PATH="$PATH:/Users/doug/projects/flutter/bin" # Point to your downloaded flutter executable | |
# export CHROME_EXECUTABLE=/Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser # Point to your chromium executable |
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
import boto3 | |
s3 = boto3.resource('s3') | |
bucket = s3.Bucket('my-bucket-name') | |
bucket.object_versions.filter(Prefix='my/key/prefix').delete() |
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 | |
DIR="/home/doug/Pictures/rotate_background" | |
# Get full path | |
FULL_PATH=$(gsettings get org.gnome.desktop.background picture-uri) | |
# Clean off quotes. | |
FULL_PATH=$(echo $FULL_PATH | sed 's/.$//' | sed 's/^.//') |
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
[ | |
["f", "Show next/latest diffs", "setProposedDiffBounds()"], | |
["n", "Next unreviewed file", "nextUnreviewedFile()"], | |
["p", "Previous unreviewed file", "prevUnreviewedFile()"], | |
[null, "Next personally unreviewed file", "nextPersonallyUnreviewedFile()"], | |
[null, "Previous personally unreviewed file", "prevPersonallyUnreviewedFile()"], | |
["shift+n", "Next changed file", "nextChangedFile()"], | |
["shift+p", "Previous changed file", "prevChangedFile()"], | |
[null, "Next visible file", "nextVisibleFile()"], |
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
heroku config | sed 's/: */=/g; /^=/d' >> .env | |
Recently I had to delete a user from pagerduty, but the interface blocked me from doing so, saying that I couldn't complete the deletion until all of that users issues were resolved.
I looked at the unresolved issues and there were thousands.
More often than one might expect, I find myself setting up a new environment for rust development.
Here are some things that I end up doing repeatedly.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install cargo-watch
sudo apt install libpq-dev
cargo install diesel_cli --no-default-features --features postgres
NewerOlder