(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| #!/bin/bash | |
| ## README | |
| # To run this script | |
| # => scp it to the server | |
| # => run `sudo bash install.bash` | |
| # Preparations | |
| echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | tee -a /etc/apt/sources.list # MongoDB Prep | |
| apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 # MongoDB Prep |
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
| py.test test_sample.py --collect-only # collects information test suite | |
| py.test test_sample.py -v # outputs verbose messages | |
| py.test -q test_sample.py # omit filename output | |
| python -m pytest -q test_sample.py # calling pytest through python | |
| py.test --markers # show available markers |
| 1. Go to Sublime Text to: Tools -> Build System -> New Build System | |
| and put the next lines: | |
| { | |
| "cmd": ["python3", "-i", "-u", "$file"], | |
| "file_regex": "^[ ]File \"(...?)\", line ([0-9]*)", | |
| "selector": "source.python" | |
| } | |
| Then save it with a meaningful name like: python3.sublime-build |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "os" | |
| ) | |
| type Foo struct { | |
| One string |
| # Create an IAM role for the Web Servers. | |
| resource "aws_iam_role" "web_iam_role" { | |
| name = "web_iam_role" | |
| assume_role_policy = <<EOF | |
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Action": "sts:AssumeRole", | |
| "Principal": { |
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| // Name of the struct tag used in examples | |
| const tagName = "validate" |