Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:
sysctl -a | grep machdep.cpu.features | grep VMX
If there's output, you're good!
| @startuml | |
| skinparam handwritten true | |
| "You/Browser" -> slack.com: 1. I would like to access my files on Google Drive via your interface. | |
| slack.com -> "You/Browser": 2. You should apply the "Authorization Code" from Google for me first. | |
| "You/Browser" -> account.google.com: 3. I would like to permit slack.com to access my files. | |
| account.google.com -> "You/Browser": 4. Are you sure? | |
| "You/Browser" -> account.google.com: 5. [Y] | |
| account.google.com -> "You/Browser": 6. Okay. Here is the "Authorization Code." Plz give it back to slack.com now. | |
| "You/Browser" -> slack.com: 7. You can do what I asked now (with the Authorization Code which is just received from Google.) | |
| slack.com -> account.google.com: 8. I would like to exchange the "Authorization Code" for the "Access Token." |
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 |
| // Found in this issue thread https://github.com/jinzhu/gorm/issues/516#issuecomment-109055198 | |
| // License unknown | |
| // | |
| // | |
| // Postgres' JSONB type. It's a byte array of already encoded JSON (like json.RawMessage) | |
| // which also saves itself correctly to PG's jsonb type. It would probably also work on | |
| // PG json types. | |
| type JSONB []byte | |
| func (j JSONB) Value() (driver.Value, error) { |
| " _ | |
| " ___ __ _ __ _| | ___ | |
| " / _ \/ _` |/ _` | |/ _ \ | |
| "| __/ (_| | (_| | | __/ | |
| " \___|\__,_|\__, |_|\___| | |
| " |___/ | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " => General | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL
| ZigZag-Encoding | |
| --------------- | |
| Maps negative values to positive values while going back and | |
| forth (0 = 0, -1 = 1, 1 = 2, -2 = 3, 2 = 4, -3 = 5, 3 = 6 ...) | |
| (i >> bitlength-1) ^ (i << 1) | |
| with "i" being the number to be encoded, "^" being | |
| XOR-operation and ">>" would be arithemtic shifting-operation |
| brew update | |
| brew link yasm | |
| brew link x264 | |
| brew link lame | |
| brew link xvid | |
| brew install ffmpeg | |
| ffmpeg wiki: | |
| https://trac.ffmpeg.org/wiki/Encode/MP3 |