Skip to content

Instantly share code, notes, and snippets.


Doug Tangren softprops

Block or report user

Report or block softprops

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View docker-diff-default.txt
This file has been truncated, but you can view the full file.
docker diff 7a3036a55355
C /root
A /root/.cargo
A /root/.cargo/bin
A /root/.cargo/bin/rustfmt
A /root/.cargo/bin/rustup
A /root/.cargo/bin/cargo-fmt
A /root/.cargo/bin/clippy-driver
A /root/.cargo/bin/rustc
struct Position { line: usize, col: usize }
fn report<P>(path: P, content: &str, pos: &Position, error: &str)
P: AsRef<Path>,
let Position { line, col } = pos;
format!("--> {}:{}:{}", path.as_ref().display(), line, col).dimmed()
softprops /
Last active Nov 5, 2019
when you want `docker exec` but your containers live on ecs container instances. assumes an vpn bastion host
#!/usr/bin/env bash
# runs an arbitrary command on a remote ecs target
# usage: `ecs-exec bash`
# ssh credentials
# Add the following to your ~/.ssh/config file
# Assumes ec2 bastion key for authenicating
#!/usr/bin/env bash
# discover what values you can use for a given service in the last 3 months
# aws ce get-dimension-values \
# --dimension SERVICE \
# --time-period Start=$(date -v-3m +%Y-%m-01),End=$(date +%Y-%m-01) \
# --query 'DimensionValues[*].Value'
# last 3 months of ecr usage/spend
softprops / rust-binsize.log
Created Jan 19, 2019
impact of rust 1.32.0 removing jemalloc infavor of default system allocator (296K less bytes)
View rust-binsize.log
~/c/r/binsize ❯❯❯ rustc --version
rustc 1.31.1 (b6c32da9b 2018-12-18)
~/c/r/binsize ❯❯❯ cat src/
fn main() {
println!("Hello, world!");
~/c/r/binsize ❯❯❯ cargo build
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
~/c/r/binsize ❯❯❯ du target/debug/binsize
576K target/debug/binsize
View ssm-policy.json
"Version": "2012-10-17",
"Statement": [
"Effect": "Allow",
"Action": [
"Resource": "arn:aws:ssm:<region>:<account>:parameter/grand-rustacean-central/*"
extern crate envy_store;
extern crate serde_derive;
extern crate tokio;
use tokio::runtime::Runtime;
// parameter names map to field names
#[derive(Deserialize, Debug)]
struct Config {
# store a secure string
$ aws ssm put-parameter \
--name /demo/foo
--value bar
--type SecureString
# store a string list
$ aws ssm put-parameter \
--name /demo/bar \
--value baz,boom,zoom \
--type StringList
softprops / steps.txt
Created Apr 9, 2018
Steps to build an awesome ecosystem
View steps.txt
1. have a brilliant idea for something you want to use
2. Stop! Don't start building it.
3. Find a project that does something similar. (This likely exists)
4. Read it's documentation.
* If it has none, learn the project and create some.
* If it does, try to build something with it and document what wasn't clear.
5. If it feels broke. Write some failing tests,
* If possible, fix them, then open a pr
* If not, open a pr with failing tests and get the maintainer to teach you how to fix them
6. Document your process for contributing in a file called
View Termtrace
Foo ■■■■■■
Foo ■
Foo. ■■■
Foo ■■
You can’t perform that action at this time.