This script will watch for xscreensaver blanking event and disable actual HDMI output accordingly.
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 | |
| set -e | |
| panic() { echo $* >&2; exit 1; } | |
| HOST="$(hostname)" | |
| CLIENT="$1" | |
| [ -z "$CLIENT" ] && panic "usage: ./bundle-conf [CLIENT]" |
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
| /dts-v1/; | |
| / { | |
| description = "Example FIT image"; | |
| #address-cells = <1>; | |
| images { | |
| kernel@1 { | |
| description = "default kernel"; | |
| data = /incbin/("./zImage"); |
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
| /dts-v1/; | |
| / { | |
| description = "Example FIT image"; | |
| #address-cells = <1>; | |
| images { | |
| kernel@1 { | |
| description = "default kernel"; | |
| data = /incbin/("./zImage"); |
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
| # $Id$ | |
| # | |
| # SIP DTMF-to-keypress | |
| # | |
| # Copyright (C) 2003-2008 Benny Prijono <[email protected]> | |
| # | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 2 of the License, or | |
| # (at your option) any later version. |
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
| -- starts movie recording after a delay | |
| contrec_running = false | |
| contrec_stop = false | |
| contrec_countdown = 0 | |
| function contrec_main() | |
| if contrec_running then contrec_stop = true return end | |
| if camera.mode == MODE.MOVIE and movie.recording == false and contrec_menu.submenu["Delay Amount"].value > 0 then | |
| contrec_running = true |
Small example on how to set up letsencrypt with nginx and ansible.
- Include nginx snippet in default configuration and configuration of every vhost you would like to have letsencrypt enabled for
- Make sure nginx is reloaded before letsencrypt role (protip:
- meta: flush_handlers) - Use
playbook.ymlas a further example.
cloud-init is absolute cancer. Its code is horrible. It has no documentation at all.
It took me 5 fucking hours to figure out how to properly configure networking on recent
cloud-init (Ubuntu 16.04 cloud image) with local datasource.
It's not mentioned anywhere you need to provide dsmode: local. (but only if you need network-config,
besides that everything is fine; someone below noted that -m flag does the same thing, good to know) Of course nobody needs documentation for network-config format
either. (cloudinit/net/__init__.py is a protip, enjoy the feces dive)
Oh, and by the way - no, it's not possible to provide network-config to uvt-kvm without patching shit.
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
| \documentclass{article} | |
| \usepackage{lenny} | |
| \begin{document} | |
| Hello World! \lenny | |
| \end{document} |