openpgp4fpr:D4C501DA48EB797A081750939449C2F50996635F
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
| #!/usr/bin/env python3 | |
| """Fullscreen direct-scanout (direct rendering) monitor for Wayland. | |
| Maps a fullscreen GBM/DMABUF window and reports, per frame, whether the | |
| compositor directly scans out the window (wp_presentation ZERO_COPY flag) | |
| or composites it. Also tracks the linux-dmabuf feedback "scanout tranche", | |
| which the compositor only advertises while it considers this surface a | |
| scanout candidate: if that tranche disappears while the window is fullscreen, | |
| something is inhibiting unredirection (e.g. Ubuntu Dock autohide). |
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
| #!/usr/bin/env python3 | |
| # | |
| # SPDX-License-Identifier: GPL-3.0-or-later | |
| import sys | |
| import os | |
| import argparse | |
| from gi.repository import Gio, GioUnix, GLib |
This file has been truncated, but you can view the full file.
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
| #!/usr/bin/env python3 | |
| import os | |
| import sys | |
| import gi | |
| gi.require_version('Gtk', '3.0') | |
| gi.require_version('Gdk', '3.0') | |
| gi.require_version('WebKit2', '4.1') |
aspe:keyoxide.org:M7RNSPH6GI4DYOQMX2CHV7GCAI
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
| #!/usr/bin/env python3 | |
| import gi | |
| import datetime | |
| import os | |
| os.environ['GDK_BACKEND'] = 'x11' | |
| gi.require_version('Gtk', '3.0') | |
| gi.require_version('Gdk', '3.0') |
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
| #!/usr/bin/env bash | |
| # Copyright 2023 - Marco Trevisan | |
| # Released under the GPLv3 terms | |
| # | |
| # A simple tool to simulate PAM authentication using SSSD smartcard settings. | |
| # | |
| # To be used with softhsm2 smart cards generators from | |
| # https://gist.github.com/3v1n0/287d02ca8e03936f1c7bba992173d47a | |
| # | |
| # Origin: https://gist.github.com/3v1n0/d7bc0f10cf44a11288648ae9d228430d |
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
| #include <glib.h> | |
| #include <json-glib/json-glib.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <security/pam_appl.h> | |
| #include <security/pam_modules.h> | |
| /* expected hook */ | |
| PAM_EXTERN int |
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
| #!/usr/bin/env bash | |
| # Copyright 2023 - Marco Trevisan | |
| # Released under the GPLv3 terms | |
| # | |
| # A simple tool to simulate PAM authentication using GDM smartcard settings. | |
| # | |
| # This can also be used in interactive mode to test GDM login from the UI, by | |
| # setting the environment variable `WAIT`, so that the script will restart the | |
| # gdm service and will allow the user to login it using its name and a provided | |
| # `PIN` (123456 by default). |
NewerOlder