Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Migrating repositories

Georgi D. Sotirov gdsotirov

:octocat:
Migrating repositories
View GitHub Profile
@gdsotirov
gdsotirov / check_pos_int_number.tf
Created Aug 19, 2020
Check a number variable in Terraform to be a positive integer
View check_pos_int_number.tf
# 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!"
}
@gdsotirov
gdsotirov / new_pcscd.log
Created Feb 5, 2017
New pcscd log with patch
View new_pcscd.log
# 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 / pcscd.log
Created Jan 18, 2017
PCSCd Log from OmniKey Cardman 6121 on Slackware 14.2 with proprietary driver
View pcscd.log
# 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