Skip to content

Instantly share code, notes, and snippets.

View lthibault's full-sized avatar

Louis Thibault lthibault

View GitHub Profile
@lthibault
lthibault / README.md
Created September 29, 2015 08:17
FSL installation for Fish shell
  1. Install FSL using a compatible shell (bash or tcsh), using the usual method.
  2. Copy fsl.fish to the appropriate location (usually /usr/local/fsl/etc/fslconf/).
  3. Append the contents of config.fish to your own config.fish

Keybase proof

I hereby claim:

  • I am lthibault on github.
  • I am lthibault (https://keybase.io/lthibault) on keybase.
  • I have a public key ASBWXHSoZN19XZ4j688b2n-XEZk8eqZPM2_icf38m5PoDgo

To claim this, I am signing this object:

@lthibault
lthibault / generate_tls.go
Created August 18, 2018 21:28
H2QUIC TLS
func GenerateTLSConfig() *tls.Config {
key, err := rsa.GenerateKey(rand.Reader, 1024)
if err != nil {
panic(err)
}
// generate a random serial number (a real cert authority would have some logic behind this)
serialNumberLimit := new(big.Int).Lsh(big.NewInt(1), 128)
serialNumber, err := rand.Int(rand.Reader, serialNumberLimit)
if err != nil {
Cookies on our website
We use cookies on our website. To learn more about cookies, how we use them on
our site and how to change your cookie settings please view our [cookie
policy](http://www.allenovery.com/legal-notices/Pages/cookies.aspx). By
continuing to use this site without changing your settings you consent to our
use of cookies in accordance with our cookie policy.
[Read more](http://www.allenovery.com/legal-notices/Pages/cookies.aspx)
[Close](javascript:void\(0\) "Close")