| Issue # | Comment # | 👍 | 👎 | score |
|---|---|---|---|---|
| 17262 | 250240826 | 69 | 52 | 0.311292774877992 |
| 32825 | 506707539 | 87 | 44 | 0.323308270676692 |
| 17262 | 250240848 | 45 | 43 | 0.366809089148894 |
| 18964 | 278239115 | 27 | 51 | 0.37097635610659 |
| [19412](https://github.com/gol |
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
| package ciphers | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/sha512" | |
| "crypto/x509" | |
| "encoding/pem" | |
| "log" | |
| ) |
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
| { | |
| "id": 28265, | |
| "language": "Go", | |
| "fork": false, | |
| "forks_count": 20568, | |
| "open_issues_count": 3299, | |
| "stargazers_count": 58727, | |
| "watchers_count": 58727, | |
| "archived": false, | |
| "disabled": false, |
The standard names for indexes in PostgreSQL are:
{tablename}_{columnname(s)}_{suffix}
where the suffix is one of the following:
pkeyfor a Primary Key constraint;keyfor a Unique constraint;exclfor an Exclusion constraint;idxfor any other kind of index;
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
| func (a *alertWrapper) Error(err error) error { | |
| // sentry Go SDK uses asynchronous transport, if fatal (os.Exit) or panic is called after the alert | |
| // the event might get dropped, so we call Flush explicitly. | |
| defer sentry.Flush(time.Second * 2) | |
| hub := sentry.CurrentHub().Clone() | |
| ev := sentry.NewEvent() | |
| ev.Level = sentry.LevelError |
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
| package main | |
| import ( | |
| "crypto/tls" | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net" | |
| "net/http" | |
| ) |
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
| SHELL := /bin/bash | |
| REV := $(shell git rev-parse HEAD) | |
| CHANGES := $(shell test -n "$$(git status --porcelain)" && echo '+CHANGES' || true) | |
| TARGET := packer-provisioner-itamae-local | |
| VERSION := $(shell cat VERSION) | |
| OS := darwin freebsd linux openbsd | |
| ARCH := 386 amd64 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| // thes below two functions are talked about in | |
| // http://mfridman.com/2017/09/04/go-ssh-hostkey.html | |
| func validatePort(s string) (string, error) { | |
| // empty string defaults to port 22, ports 1-65535 valid, otherwise error | |
| if s == "" { | |
| // it is the caller's responsibility to pass in a valid, non-empty port | |
| return "22", nil | |
| } | |
| i, _ := strconv.Atoi(s) |
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/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |