This file contains 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
# $ golangci-lint run --config=~/.golangci.yml ./... > lint.txt | |
run: | |
# default concurrency is a available CPU number | |
concurrency: 4 | |
# timeout for analysis, e.g. 30s, 5m, default is 1m | |
timeout: 10m | |
# exit code when at least one issue was found, default is 1 |
This file contains 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
module go-windows-chown | |
go 1.15 | |
require golang.org/x/sys v0.0.0-20210110051926-789bb1bd4061 |
This file contains 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
KDIR ?= /lib/modules/$(shell uname -r) | |
SDIR ?= $(KDIR)/source | |
CLANG ?= clang | |
LLC ?= llc | |
#ARCH := $(subst x86_64,x86,$(shell arch)) | |
ARCH := x86 | |
BIN := modify-ping-ttl.o | |
CLANG_FLAGS = -I. -I$(SDIR)/arch/$(ARCH)/include \ | |
-I$(SDIR)/arch/$(ARCH)/include/generated \ |
This file contains 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 ( | |
"fmt" | |
"math" | |
"strconv" | |
) | |
var ( | |
sizeInMB float64 = 999 // This is in megabytes |