Install oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"Put this into your ~./.zshrc file
| import { parse } from '[email protected]/sync'; | |
| import * as fs from 'fs'; | |
| const COST_PER_MINUTE = 0.0028; | |
| interface ContainerBuild { | |
| project_name: string; | |
| build_count: number; | |
| minutes_saved: number; | |
| minutes_billed: number; |
Great question. Let me preface this by saying I HATE talking about RSpec best practices. It's irrelevant to shipping software and tends to churn up a lot of long, useless discussion. However, I think it's useful to consider best practices when there is a demonstrable functional (not stylistic) difference between two approaches that can affect maintainability, flexibility, and speed.
One style I see quite a lot looks a bit like this:
wget https://downloads.pwnedpasswords.com/passwords/pwned-passwords-1.0.txt.7z 5GB file, expands to ~10GBbrew install unar (optional if you have a cli tool that can unarchive 7z files)unar pwned-passwords-1.0.txt.7zfgrep $(echo -n "password youre looking for" | openssl sha1 | tr '[:lower:]' '[:upper:]') pwned-passwords-1.0.txt$(echo -n "password youre looking for" | openssl sha1 | tr '[:lower:]' '[:upper:]') gives you a SHA1, uppercased| #!/usr/bin/env ruby | |
| # 1. put this in brew path `/usr/local/bin/` | |
| # 2. make it executable `chmod +x /usr/local/bin/recent-branches` | |
| # 3. in git config `~/.gitconfig` place an alias to the command inside `[alias]` block | |
| # `br = recent-branches -n 20` (n being the number of branches you wanna show by default) | |
| require 'optparse' | |
| require 'English' | |
| options = { number: 20 } |
I hereby claim:
To claim this, I am signing this object:
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
| # Make sure you have a recent version: the code points that Powerline |