Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python2
# coding=utf-8
#
# Copyright © 2015 Yves Fauser. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
#!/usr/bin/env python2
# coding=utf-8
#
# Copyright © 2015 Yves Fauser. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
#!/usr/bin/env python2
# coding=utf-8
#
# Copyright © 2015 Yves Fauser. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
#!/usr/bin/env python2
# coding=utf-8
#
# Copyright © 2015 Yves Fauser. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
#!/usr/bin/env python2
# coding=utf-8
#
# Copyright © 2015 Yves Fauser. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
@seahawk1986
seahawk1986 / frontend
Created April 23, 2017 17:00
frontend script with svdrp support
#!/usr/bin/python
# -*- coding: utf-8 -*-
import codecs
import datetime
import gobject
import os
import socket
import string
import struct
import subprocess
#!/usr/bin/python
# -*- coding: utf-8 -*-
import codecs
import datetime
import gobject
import os
import socket
import string
import struct
import subprocess
@seahawk1986
seahawk1986 / frontend.py
Last active October 9, 2017 20:33
add svdrp support for detach command to frontend script
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
import os
import codecs
import subprocess
import gobject
import socket
import string
import struct
@seahawk1986
seahawk1986 / wait-on-vdr-has-open-sounddevices.cpp
Created September 10, 2018 11:13
Wait up to 5 seconds for vdr to close it's sound devices. This must be run as root.
#include <algorithm>
#include <chrono>
#include <thread>
#include <string>
#include <vector>
#include <dirent.h>
#include <errno.h>
#include <fstream>
#include <iostream>
#include <limits.h>
#!/usr/bin/env python3
"""
*** ANSIBLE MANAGED FILE ***
template: /home/alexander/yavdr-ansible/roles/kodi/templates/set-kodi-display.j2
This Script changes the monitor in KODI's guisettings.xml to the wanted output
according to the DISPLAY environment variable. It works with KODI 18 (not KODI 17!).
In order to change the display we need to modify the settings/videoscreen nodes.