See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
| default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
| default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
| package jwtex | |
| import ( | |
| "encoding/base64" | |
| "encoding/json" | |
| "fmt" | |
| "strings" | |
| "testing" | |
| ) |
| curl --include \ | |
| --no-buffer \ | |
| --header "Connection: Upgrade" \ | |
| --header "Upgrade: websocket" \ | |
| --header "Host: example.com:80" \ | |
| --header "Origin: http://example.com:80" \ | |
| --header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \ | |
| --header "Sec-WebSocket-Version: 13" \ | |
| http://example.com:80/ |
Small utility to help you manage packages installed via Homebrew Cask as it currently can't upgrade installed packages for you or clean up old versions.
The script will ask you if you want to upgrade applications which has newer versions available. Downloads from previous versions of applications will be removed when an application is updated, like what Homebrew has been doing since version 2.0.0. This behaviour can be disabled by setting the environment
variable HOMEBREW_NO_INSTALL_CLEANUP.
| function certchain() { | |
| # Usage: certchain | |
| # Display PKI chain-of-trust for a given domain | |
| # GistID: https://gist.github.com/joshenders/cda916797665de69ebcd | |
| if [[ "$#" -ne 1 ]]; then | |
| echo "Usage: ${FUNCNAME} <ip|domain[:port]>" | |
| return 1 | |
| fi | |
| local host_port="$1" |
| 'Twas the night before Christmas, when all through the racks | |
| Not a server was alerting, not even Compaqs. | |
| The backups were written to tapes with care | |
| In hopes that later the data would be there. | |
| The machines were nestled all snug in their sleds | |
| Whilst visions of vengeance danced in their heads; | |
| And oncall in his three-wolf and I in my rack. | |
| Had just settled down for some syn and some ack. |
| package main | |
| import( | |
| "log" | |
| "net/url" | |
| "net/http" | |
| "net/http/httputil" | |
| ) | |
| func main() { |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| package main | |
| import ( | |
| "database/sql" | |
| "errors" | |
| "fmt" | |
| _ "github.com/bmizerany/pq" | |
| "os" | |
| "regexp" | |
| "strings" |