| Function | Shortcut |
|---|---|
| New Tab | ⌘ + T |
| Close Tab or Window | ⌘ + W (same as many mac apps) |
| Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
| Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
| Cycle iTerm Windows | ⌘ + backtick (true of all mac apps and works with desktops/mission control) |
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
| { | |
| "https://blog.twitter.com/developer": "https://blog.twitter.com/api/blog.rss?name=developer", | |
| "https://code.facebook.com/posts/": "https://code.facebook.com/posts/rss", | |
| "http://blog.chromium.org/": "http://blog.chromium.org/feeds/posts/default", | |
| "http://www.theguardian.com/info/developer-blog": "http://www.theguardian.com/info/developer-blog/rss", | |
| "http://open.blogs.nytimes.com/": "http://open.blogs.nytimes.com/feed/", | |
| "http://blog.apps.npr.org/": "http://blog.apps.npr.org/atom.xml", | |
| "http://www.webperformancetoday.com/": "http://www.webperformancetoday.com/feed/", | |
| "http://www.filamentgroup.com/lab/": "http://www.filamentgroup.com/lab/atom.xml", | |
| "http://githubengineering.com/": "http://githubengineering.com/atom.xml", |
Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.
Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)
▶ gpg --full-generate-key --expert
gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.
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
| ; if you're using the starter bundle file `docker/php/php-fpm.d/docker.conf` | |
| [global] | |
| daemonize = no | |
| pid = run/php-fpm.pid | |
| [www] | |
| listen = /usr/local/var/run/php-fpm.sock | |
| listen.owner = www-data | |
| listen.group = www-data | |
| listen.mode = 0660 |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
service.beta.kubernetes.io/aws-load-balancer-access-log-emit-interval(in minutes)service.beta.kubernetes.io/aws-load-balancer-access-log-enabled(true|false)service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-nameservice.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-prefixservice.beta.kubernetes.io/aws-load-balancer-additional-resource-tags(comma-separated list of key=value)service.beta.kubernetes.io/aws-load-balancer-backend-protocol(http|https|ssl|tcp)service.beta.kubernetes.io/aws-load-balancer-connection-draining-enabled(true|false)
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
| def detectLocale(acceptLanguage): | |
| defaultLocale = 'en_US' | |
| supportedLocales = ['de', 'en_US', 'zh_TW'] | |
| locale_q_pairs = parseAcceptLanguage(acceptLanguage) | |
| for pair in locale_q_pairs: | |
| for locale in supportedLocales: | |
| # pair[0] is locale, pair[1] is q value | |
| if pair[0].replace('-', '_').lower().startswith(locale.lower()): | |
| return locale |
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
| sudo pip install awscli | |
| aws configure | |
| aws ses send-email \ | |
| --from "john@gmail.com" \ | |
| --destination "ToAddresses=mike@gmail.com" \ | |
| --message "Subject={Data=from ses,Charset=utf8},Body={Text={Data=ses says hi,Charset=utf8},Html={Data=,Charset=utf8}}" |
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/bash | |
| CLUSTERNAME=cluster-name | |
| CLUSTER_API=cluster-api | |
| NAMESPACE=namespace | |
| USERNAME=username | |
| ORGANIZATION=organization | |
| KEY_FILE=$USERNAME.key | |
| CSR_FILE=$USERNAME.csr | |
| CRT_FILE=$USERNAME.crt |
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/bash | |
| set -e | |
| set -o pipefail | |
| # Add user to k8s using service account, no RBAC (must create RBAC after this script) | |
| if [[ -z "$1" ]] || [[ -z "$2" ]]; then | |
| echo "usage: $0 <service_account_name> <namespace>" | |
| exit 1 | |
| fi |