Skip to content

Instantly share code, notes, and snippets.

View gdsotirov's full-sized avatar
:octocat:
Migrating repositories

Georgi D. Sotirov gdsotirov

:octocat:
Migrating repositories
View GitHub Profile
@gdsotirov
gdsotirov / pcscd.log
Created January 18, 2017 17:49
PCSCd Log from OmniKey Cardman 6121 on Slackware 14.2 with proprietary driver
# sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu
00000000 debuglog.c:289:DebugLogSetLevel() debug level=debug
00000040 debuglog.c:310:DebugLogSetCategory() Debug options: APDU
00000002 pcscdaemon.c:360:main() Force colored logs
00000052 configfile.l:358:DBGetReaderList() Parsing conf file: /etc/reader.conf.d
00000006 pcscdaemon.c:675:main() pcsc-lite 1.8.18 daemon ready.
00049929 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000030 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000030 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x0463, PID: 0xFFFF, path: /dev/bus/usb/003/002
00000023 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
@gdsotirov
gdsotirov / new_pcscd.log
Created February 5, 2017 15:24
New pcscd log with patch
# sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee log.txt
00000000 debuglog.c:289:DebugLogSetLevel() debug level=debug
00000036 debuglog.c:310:DebugLogSetCategory() Debug options: APDU
00000002 pcscdaemon.c:360:main() Force colored logs
00000135 configfile.l:358:DBGetReaderList() Parsing conf file: /etc/reader.conf.d
00000057 pcscdaemon.c:675:main() pcsc-lite 1.8.18 daemon ready.
00001032 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000073 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
00000061 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x0463, PID: 0xFFFF, path: /dev/bus/usb/003/002
00000031 hotplug_libudev.c:294:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/003/001
@gdsotirov
gdsotirov / check_pos_int_number.tf
Created August 19, 2020 13:30
Check a number variable in Terraform to be a positive integer
# Check whether an input variable is a positive integer in Terraform
# Tested with version 0.13
variable "release" {
type = number
description = "Release number"
default = 0
validation {
condition = tonumber(var.release) == floor(var.release)
error_message = "Release should be an integer!"
}