Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Neumann fd0

View GitHub Profile
View asound.conf
# ~/.asoundrc or /etc/asound.conf
# ALSA configuration file
##### USAGE #####
# Save this file as "~/.asoundrc" (for user-specific sound configuration) or
# "/etc/asound.conf" (for system-wide sound configuration) and specify ALSA
# device names ad described in the next section.
##### DEVICE NAMES #####
View tttool-790faed5627a73c54acc236400b3df6fdceb5a71.patch
diff --git Makefile Makefile
index 23f4c17..8686fe4 100644
--- Makefile
+++ Makefile
@@ -1,7 +1,7 @@
tttool: src/*.hs
# cabal update
- cabal install --only-dependencies
- cabal install --bindir=.
+ cabal install --jobs --only-dependencies
@fd0
fd0 / gist:6951577
Created Oct 12, 2013
i3 multi monitor config snippet
View gist:6951577
# assign workspaces to screens
workspace 1 output DVI-I-1
workspace 2 output DVI-I-1
workspace 3 output DVI-I-1
workspace 4 output DVI-I-1
workspace 5 output DVI-I-1
workspace 6 output HDMI-0
workspace 7 output HDMI-0
workspace 8 output HDMI-0
workspace 9 output HDMI-0
@fd0
fd0 / go.mod
Last active Feb 6, 2021
termstatus size test
View go.mod
module github.com/fd0/termsizewidthtest
go 1.15
require golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a
View gist:a886978e762d38b12521ad253e165013
for i in {0..40}; do
timestamp=$(date +"%Y-%m-%d 12:00:00" -d "+ ${i} days")
echo "=========================================================="
echo "run backup on ${timestamp}"
./restic backup --quiet --time "${timestamp}" main.go
./restic forget --keep-weekly 3
done
View vt100test.go
package main
import (
"fmt"
"os"
"time"
"golang.org/x/sys/unix"
)
View 20-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
Option "DRI" "3"
Option "AccelMethod" "uxa"
#Option "AccelMethod" "sna"
EndSection
View 30-touchpad.conf
section "InputClass"
Identifier "SynPS/2 Synaptics TouchPad"
MatchIsTouchpad "on"
Driver "libinput"
Option "Tapping" "on"
EndSection
View gist:7e30c2d4c379454842660e9096ef83cb
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"
View Digikey-mk66f-hw.csv
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",