- Connect to your raspberry Pi with SSH
- Install zsh :
sudo apt-get update && sudo apt-get install zsh - Edit your passwd configuration file to tell which shell to use for user
pi:sudo vim /etc/passwdand change/bin/bashand/bin/zsh - Reconnect to your raspberry, and check that zsh is the shell with
echo $0. - Switch to root :
sudo su - Install OhMyZsh :
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" - Disconnect from your instance and reconnect it.
This file contains hidden or 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
| // # Mocha Guide to Testing | |
| // Objective is to explain describe(), it(), and before()/etc hooks | |
| // 1. `describe()` is merely for grouping, which you can nest as deep | |
| // 2. `it()` is a test case | |
| // 3. `before()`, `beforeEach()`, `after()`, `afterEach()` are hooks to run | |
| // before/after first/each it() or describe(). | |
| // | |
| // Which means, `before()` is run before first it()/describe() |
This file contains hidden or 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
| # use 256 term for pretty colors | |
| set -g default-terminal "xterm-256color" | |
| set -g status-bg black | |
| set -g status-fg green | |
| set-window-option -g clock-mode-colour brightyellow | |
| # increase scroll-back history | |
| set -g history-limit 1000000 | |
| # ~use vim key bindings~ |
This file contains hidden or 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/zsh | |
| # A script to set up a new mac. Uses zsh, homebrew, etc. | |
| # Includes many utilities and apps: | |
| # - homebrew, node | |
| # - terminal fonts | |
| # - browsers: chrome, firefox | |
| # - dev: iterm2, atom, postgres, chrome devtools, etc. | |
| # - team: slack, dropbox, google drive, etc |
Getting started:
Related tutorials:
This file contains hidden or 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 = skip zero | |
| email = skip+zero@angerbunny.com | |
| [core] | |
| editor = nano | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| excludesfile = ~/.gitignore | |
| #[sendemail] | |
| # smtpencryption = tls | |
| # smtpserver = smtp.gmail.com |
This file contains hidden or 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
| Byobu Commands | |
| ============== | |
| byobu Screen manager | |
| Level 0 Commands (Quick Start) | |
| ------------------------------ | |
| <F2> Create a new window |
This file contains hidden or 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
| /************************************************* | |
| * This is a simple Monte Carlo simulation to see | |
| * whether we should | |
| * go for X BIG deal and/or Y SMALL deals. | |
| * | |
| * What is the best blend? | |
| * | |
| * Author: Ido Green | plus.google.com/+greenido | |
| * Date: 16 July 2013 | |
| * |
#System Design Cheatsheet
Picking the right architecture = Picking the right battles + Managing trade-offs
##Basic Steps
- Clarify -> Agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
NewerOlder