- Python 3
- Pip 3
$ brew install python3| - DOMAIN-KEYWORD,epochtimes,REJECT | |
| - DOMAIN-SUFFIX,881903.com,REJECT | |
| - DOMAIN-SUFFIX,aboluowang.com,REJECT | |
| - DOMAIN-SUFFIX,bannedbook.org,REJECT | |
| - DOMAIN-SUFFIX,china21.org,REJECT | |
| - DOMAIN-SUFFIX,chinaaffairs.org,REJECT | |
| - DOMAIN-SUFFIX,dajiyuan.com,REJECT | |
| - DOMAIN-SUFFIX,dalianmeng.org,REJECT | |
| - DOMAIN-SUFFIX,dkn.tv,REJECT | |
| - DOMAIN-SUFFIX,dongtaiwang.com,REJECT |
| // https://pkg.go.dev/github.com/gin-gonic/gin#Context.BindJSON | |
| type Params struct { | |
| PostName string `json:"postName"` | |
| } | |
| r.POST("/", func(c *gin.Context) { | |
| var someParams Params | |
| err := c.BindJSON(&someParams) | |
| if err != nil { | |
| log.Fatal(err) |
| #!/usr/bin/env python | |
| """ | |
| Modified from | |
| http://macscripter.net/viewtopic.php?id=26675 | |
| http://apple.stackexchange.com/questions/90040/look-up-a-word-in-dictionary-app-in-terminal | |
| HowTo |
| .markdown-here-wrapper { | |
| font-size: 16px; | |
| line-height: 1.8em; | |
| letter-spacing: 0.1em; | |
| } | |
| pre, code { | |
| font-size: 14px; | |
| font-family: Roboto, 'Courier New', Consolas, Inconsolata, Courier, monospace; |
| -- Word and Character Count service for Mac OS X | |
| -- Adds a Word and Character Count option to the text selection context menu | |
| -- Use Automator to create a new service, then select the Run AppleScript action. Make | |
| -- sure the service is set to receive "text", at the top of the window. Paste in this code | |
| -- and save as "Word and Character Count". Now switch to a new app, select some text, | |
| -- right-click, go to Services, and find the new option. | |
| -- Copyright 2015, Noah Slater <[email protected]> |
| git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" | |
| git fetch origin |
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| echo | |
| echo usage: $0 network-interface | |
| echo | |
| echo e.g. $0 eth0 | |
| echo | |
| echo shows packets-per-second |
with a hat tip to Sublime Text 2 Shortcuts
| ⌘; | autocomplete |
| ⌘⌥B | instant replay |
| ⌘⌥E | search across all tabs |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |