This file contains hidden or 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
// /etc/polkit-1/rules.d/50-smartcard-access.rules | |
// Uses the group 'smartcard-access' to determine whether one has access. | |
polkit.addRule(function(action, subject) { | |
if ((action.id == "org.debian.pcsc-lite.access_pcsc" || action.id == "org.debian.pcsc-lite.access_card") && | |
subject.isInGroup("smartcard-access")) { | |
return polkit.Result.YES; | |
} | |
}); |
This file contains hidden or 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
# Use 'inputs.<name>' when pasting into a bash `if`, like so: | |
# if [[ "${{ inputs.strip }}" == 'true' ]]; then ... | |
# | |
# When using to guard a step, use 'github.event.inputs.<name>', like so: | |
# if: ${{ github.event.inputs.<name> == 'true' }} | |
# or | |
# if: ${{ github.event.inputs.<name> != 'false' }} | |
# In the first case, the step will not run if there isn't any workflow dispatch. | |
# In the second case, the step will run if there isn't any workflow dispatch. | |
# As such, the recommendation is to use the `== true` if the default is |
This file contains hidden or 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
inotifywait -e create --include ttyACM0 /dev && \ | |
ls -l /dev/ttyACM0 && \ | |
inotifywait -e attrib /dev --include ttyACM0 && \ | |
jag monitor --port /dev/ttyACM0 -a --envelope esp32s3-cdc |
This file contains hidden or 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
import net | |
import net.wifi | |
CREDENTIALS ::= [ | |
[ "ssid1", "password" ], | |
[ "ssid2", "password" ] | |
] | |
attempt-connection [block] -> bool: | |
network/net.Interface? := null |
This file contains hidden or 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
/* | |
Zero-Clause BSD License | |
Copyright (C) 2023 Toitware ApS | |
Permission to use, copy, modify, and/or distribute this software for any | |
purpose with or without fee is hereby granted. | |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND |