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 | |
""" | |
switches Gnome between light and dark theme, after | |
a delay syncs Adwaita theme with system dark preference | |
Put into PATH and set a custom shortcut (mine is ctrl+shift+f2) | |
""" | |
from gi.repository import Gio | |
import time |
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 | |
# | |
# copy this file to /etc/libvirt/hooks/network.d/ and make executable | |
# | |
import sys | |
import subprocess | |
import xml.etree.ElementTree as ET | |
# parse input |
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
- name: "update httpd configuration" | |
tasks: | |
- name: "add a file" | |
block: | |
- copy: | |
dest: "{{ my_new_conf }}" | |
content: | | |
Options +MyCoolOption | |
notify: "restart httpd" |