Skip to content

Instantly share code, notes, and snippets.

View fd0's full-sized avatar

Alexander Neumann fd0

View GitHub Profile
section "InputClass"
Identifier "SynPS/2 Synaptics TouchPad"
MatchIsTouchpad "on"
Driver "libinput"
Option "Tapping" "on"
EndSection
diff --git a/build.go b/build.go
index 2e3e5d05..0b3a6a61 100644
--- a/build.go
+++ b/build.go
@@ -575,6 +575,9 @@ func main() {
buildArgs = append(buildArgs, "-mod=vendor")
testArgs = append(testArgs, "-mod=vendor")
+
+ goEnv["GO111MODULE"] = "on"
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 10 columns, instead of 9. in line 9.
"Index","Menge","Teilenummer","Hersteller-Teilenummer","Beschreibung","Kundenreferenz","Verfügbar","Lieferrückstände","Stückpreis","Gesamtpreis EUR"
"1","1","300-1002-ND","CFS-20632768DZFB","CRYSTAL 32.7680KHZ 12.5PF T/H","","1","0","0,21000","0,21"
"2","11","478-10047-1-ND","06031C104KAT2A","CAP CER .1UF 100V X7R 0603","","11","0","0,12400","1,36"
"3","1","507-1813-1-ND","0ZCK0050FF2E","PTC RESET FUSE 6V 500MA 0805","","1","0","0,19000","0,19"
"4","2","WM10134CT-ND","1051330011","CONN RCPT USB2.0 MICRO B SMD","","2","0","0,99000","1,98"
"5","1","450-1642-ND","2-1825910-7","SWITCH TACTILE SPST-NO 0.05A 24V","","1","0","0,10000","0,10"
"6","1","MCP1825S-3302E/DB-ND","MCP1825S-3302E/DB","IC REG LIN 3.3V 500MA SOT223-3","","1","0","0,47000","0,47"
"7","4","754-1439-1-ND","APT3216QBC/D","LED BLUE CLEAR CHIP SMD","","4","0","0,46000","1,84"
"8","2","609-3407-ND","68016-404HLF","CONN HEADER R/A 4POS 2.54MM","","2","0","0,16000","0,32"
"9","4","P33.00BYCT-ND","ERJ-PA3F33R0V","RES SMD 33 OHM 1% 1/4W 0603","","4","0",
# Configuration for Alacritty, the GPU enhanced terminal emulator
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty it self.
env:
# TERM env customization.
#
# If this property is not set, alacritty will set it to xterm-256color.
// an example to create a new mapping `ctrl-y`
//mapkey('<Ctrl-y>', 'Show me the money', function() {
// Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
//});
// an example to replace `u` with `?`, click `Default mappings` to see how `u` works.
//map('?', 'u');
// an example to remove mapkey `Ctrl-i`
//unmap('<Ctrl-i>');
package main
import (
"bytes"
"fmt"
"io"
"log"
"os"
crand "crypto/rand"

Setup modern.ie vagrant boxes

Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.

However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.

Pre-requisites

Inhalt:

  • Editor/IDE, gofmt, golint
  • main.go, hello world
  • GOPATH
  • main/library
  • Sprachkonstrukte, if/switch/var/const/go struct/type, slices/arrays, maps/channel
  • chat server?
  • go test, coverage
  • profiling
  • serialisierung (xml, json)
@fd0
fd0 / xtime
Created January 25, 2018 21:23
#!/bin/sh
/usr/bin/time -f '%Uu %Ss %er %MkB %C' "$@"
package main
import (
"fmt"
"os"
"os/exec"
"os/signal"
"syscall"
"time"
"unsafe"