Skip to content

Instantly share code, notes, and snippets.

Bjørn Erik Pedersen bep

Block or report user

Report or block bep

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View hugo-meltdown-benchmark.md

benchstat from two runs of Hugo 0.32 on a MacBook before and after the Meltdown update on macOS High Sierra:

name                                                                                                             old time/op    new time/op    delta
pkg:github.com/gohugoio/hugo/helpers goos:darwin goarch:amd64
StripHTML-4                                                                                                        3.56µs ± 0%    3.46µs ± 0%   ~     (p=0.100 n=3+3)
TestTruncateWordsToWholeSentence-4                                                                                  124ns ± 1%     126ns ± 1%   ~     (p=0.100 n=3+3)
TestTruncateWordsToWholeSentenceOld-4                                                                              6.55µs ± 0%    6.45µs ± 1%   ~     (p=0.100 n=3+3)
TotalWords-4                                                                                                       10.9µs ± 0%    10.9µs ± 1%   ~     (p=1.000 n=3+3)
TotalWordsOld-4                
View benchmarks-hugo-v031.1-vs-v0.32.md
go test -run="NONE" -bench="Benchmark.*" -test.benchmem=true -count=3 ./...

Hugo v0.31.1 vs v0.32:

benchmark                                                                                                                    old ns/op     new ns/op     delta
BenchmarkStripHTML-4                                                                                                         3557          3547          -0.28%
BenchmarkTestTruncateWordsToWholeSentence-4                                                                                  124           123           -0.81%
BenchmarkTestTruncateWordsToWholeSentenceOld-4                                                                               6402          6535          +2.08%
BenchmarkTotalWords-4                                                                                                        10852         10870         +0.17%
View keybase.md

Keybase proof

I hereby claim:

  • I am bep on github.
  • I am bep (https://keybase.io/bep) on keybase.
  • I have a public key whose fingerprint is 15BA B543 3F2B 427A C8DF 3773 8265 2D8B 4A9D 587A

To claim this, I am signing this object:

View hugo-cla
Developer Certificate of Origin Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 660 York Street, Suite 102, San Francisco, CA 94110 USA
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
@bep
bep / hugo-on-android.md
Last active Jul 13, 2019
Run Hugo on an Android phone
View hugo-on-android.md

First install Termux

Then there are two options:

Build from source

Open the Termux terminal on your Android device and copy-and-paste the commands listed below and hit ENTER:

View keybase.md

Keybase proof

I hereby claim:

  • I am bep on github.
  • I am bep (https://keybase.io/bep) on keybase.
  • I have a public key whose fingerprint is AF2E 1F2C F3B5 A38D CC80 73E4 C640 08BC 136A 1391

To claim this, I am signing this object:

You can’t perform that action at this time.