Skip to content

Instantly share code, notes, and snippets.

# Title Author Count First Mention
1 Structure and Interpretation of Computer Programs Abelson and Sussman 376 5675
2 Gödel, Escher, Bach Douglas Hofstadter 293 56795
3 How to Win Friends and Influence People Dale Carnegie 292 5584
4 The C Programming Language Brian Kernighan, Dennis Ritchie 284 135262
5 Dune Brian Herbert 263 57231
6 Thinking, Fast and Slow Daniel Kahneman 244 3277457
7 Meditations Descartes 233 134993
8 Atlas Shrugged Ayn Rand 222 86114
9 The Art of Computer Programming Donald E. Knuth 213 135245
@dmitris
dmitris / fetch.go
Created May 26, 2023 09:37
Go test program fetching https://example.com URL
package main
import (
"fmt"
"io"
"log"
"net/http"
)
const link = "https://example.com"
@dmitris
dmitris / infer-build-error.txt
Created August 19, 2019 13:28
infer build - error running ./build-infer.sh -y (current master version)
initializing opam...
installing infer dependencies; this can take up to 30 minutes...
[WARNING] Lock file opam.locked is outdated, you may want to re-run opam lock:
Dependencies present in opam file not in lock file:
- utop
Nothing to do.
preparing build...
checking for .release... no
@dmitris
dmitris / infer-build-failure.txt
Created August 19, 2019 12:53
error messages from infer source build
$ make install-with-libs BUILD_MODE=opt \
> PATCHELF=patchelf \
> DESTDIR="/opt/local/infer-release" \
>
WARNING: MAKEFLAGS var was set to: -- DESTDIR=/opt/local/infer-release PATCHELF=patchelf BUILD_MODE=opt
which may (and will!) interfere with the setup
... ignoring MAKEFLAGS.
WARNING: DESTDIR var was set to: /opt/local/infer-release
but the setup script is not designed to handle
relocation of the installation.
@dmitris
dmitris / dep.go.diff
Created October 5, 2018 15:49
diff of src/cmd/go/internal/modconv/dep.go modified for replacement inclusion
diff --git a/src/cmd/go/internal/modconv/dep.go b/src/cmd/go/internal/modconv/dep.go
index 690c206a13..9212a5f11b 100644
--- a/src/cmd/go/internal/modconv/dep.go
+++ b/src/cmd/go/internal/modconv/dep.go
@@ -18,6 +18,8 @@ func ParseGopkgLock(file string, data []byte) (*modfile.File, error) {
mf := new(modfile.File)
var list []module.Version
var r *module.Version
+ replacements := map[string]string{}
+ versions := map[string]string{}
@dmitris
dmitris / dep.go
Created October 5, 2018 15:48
src/cmd/go/internal/modconv/dep.go - to include replacements when creating go.mod
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package modconv
import (
"fmt"
"strconv"
"strings"
This file has been truncated, but you can view the full file.
Script started on Thu 05 Oct 2017 08:14:48 AM UTC
sudo rm -fr /var/run/yakl-client.slowburn; sudo GODEBUG=http2debug=2 /opt/yahoo/yakl/bin/yakl-client
Client Info: yakl-client/1329 (hash=3bd6c76) (osVersion=7.1.43_168) (osKernel=3.10.0-514.26.2.el7.YAHOO.20170707.8.x86_64)
2017/10/05 08:15:07 client.go:90: INFO - locked the unique process file /opt/yahoo/yakl/var/uniqlock
2017/10/05 08:15:07 client.go:149: YAKL Client is up. See /var/log/yakl (on chef managed hosts); and yo/yakl
2017/10/05 08:15:07 client.go:154: INFO: YAKL:Local logger started
2017/10/05 08:15:07 client.go:160: INFO: YAKL:yakl-client version: 1329 (3bd6c76) (2017-09-28T19:37:08Z)
2017/10/05 08:15:07 client.go:200: INFO: YAKL:OK: prereqs check OneClient
2017/10/05 08:15:07 client.go:200: INFO: YAKL:OK: prereqs check OptYahooYaklVarDir
0x00,0x00 TLS_NULL_WITH_NULL_NULL Y [RFC5246]
0x00,0x01 TLS_RSA_WITH_NULL_MD5 Y [RFC5246]
0x00,0x02 TLS_RSA_WITH_NULL_SHA Y [RFC5246]
0x00,0x03 TLS_RSA_EXPORT_WITH_RC4_40_MD5 N [RFC4346][RFC6347]
0x00,0x04 TLS_RSA_WITH_RC4_128_MD5 N [RFC5246][RFC6347]
0x00,0x05 TLS_RSA_WITH_RC4_128_SHA N [RFC5246][RFC6347]
0x00,0x06 TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5 Y [RFC4346]
0x00,0x07 TLS_RSA_WITH_IDEA_CBC_SHA Y [RFC5469]
0x00,0x08 TLS_RSA_EXPORT_WITH_DES40_CBC_SHA Y [RFC4346]
0x00,0x09 TLS_RSA_WITH_DES_CBC
@dmitris
dmitris / gist:ff6e10ffa0d2f678b12e
Created February 16, 2016 13:43
glide.lock for dmitris/deptest4glide
hash: 7426698773ba5a2d53518848853ec15ba1d61123d89ae837b7b8fe012d420c73
updated: 2016-02-16T14:39:57.930652458+01:00
imports:
- name: github.com/coreos/coreos-cloudinit
version: 2915be549c3fc93527952a880b138618bbee218c
subpackages:
- datasource
- datasource/url
- pkg
- name: github.com/dmitris/deptesthuge
$ glide -debug update
[DEBUG] Creating vendor
[INFO] Downloading dependencies. Please wait...
[INFO] Fetching updates for github.com/dmitris/deptesthuge.
[DEBUG] Attempting to find current branch for https://github.com/dmitris/deptesthuge
[DEBUG] Saving default branch for https://github.com/dmitris/deptesthuge
[INFO] Resolving imports
[DEBUG] Adding local Import /tmp/go/src/github.com/dmitris/deptest4glide/vendor/github.com/dmitris/deptesthuge/deptestsmall to queue
[DEBUG] Trying to open /tmp/go/src/github.com/dmitris/deptest4glide/vendor/github.com/dmitris/deptesthuge
[DEBUG] Package github.com/dmitris/deptesthuge imports github.com/coreos/coreos-cloudinit/datasource