(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:
| # -*- coding: utf-8 -*- | |
| import wifi | |
| def Search(): | |
| wifilist = [] | |
| cells = wifi.Cell.all('wlan0') |
| #!/usr/bin/env python | |
| import argparse | |
| import redis | |
| def connect_redis(conn_dict): | |
| conn = redis.StrictRedis(host=conn_dict['host'], | |
| port=conn_dict['port'], | |
| db=conn_dict['db']) | |
| return conn |
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "github.com/gin-gonic/gin" | |
| ) | |
| type CreateParams struct { |
| For troubleshooting, two things to first try: | |
| run `git config --global gpg.program gpg2`, to make sure git uses gpg2 and not gpg | |
| run `echo "test" | gpg2 --clearsign`, to make sure gpg2 itself is working | |
| If that all looks all right, one next thing to try: | |
| run `brew install pinentry` to ensure you have a good tool installed for passphrase entry | |
| If after that install and you re-try git commit and still get the "failed to sign the data" error: | |
| run `gpgconf --kill gpg-agent` to kill any running agent that might be hung |
This gist has been moved to its own Github repo, so it's easier to contribute with additions and corrections. Please open a PR there if you see any mistake, I don't track comments on here as there's no notification system for gists AFAIK. Thanks.
| Function | Shortcut |
|---|---|
| Previous Tab | ⌘+ Left Arrow |
| Next Tab | ⌘+ Right Arrow |
| Go to Tab | ⌘ + Number |
| STATUS: 200 | |
| lambdaExecSecurityGroups: ["sg-xxxxxxx"] | |
| subnets: ["subnet-xxxxxxx"] |