Skip to content

Instantly share code, notes, and snippets.

@Axel-Erfurt
Axel-Erfurt / Gtk3_PDF_Viewer.py
Created May 21, 2022 18:56
View PDF in python Gtk3
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import gi
gi.require_version('EvinceView', '3.0')
gi.require_version('EvinceDocument', '3.0')
gi.require_version('Gtk', '3.0')
gi.require_version('Gdk', '3.0')
from gi.repository import Gtk, Gdk
from gi.repository import EvinceDocument
from gi.repository import EvinceView
@Axel-Erfurt
Axel-Erfurt / PlutoTV_aktuell.m3u
Last active April 10, 2024 20:21
Pluto TV german Channels
#EXTM3U
#EXTINF:-1 tvg-name="Kids" group-title="Kids" tvg-logo="http://images.pluto.tv/channels/5ad9b648e738977e2c312131/solidLogoPNG.png" tvg-id="",Kids
https://service-stitcher.clusters.pluto.tv/v1/stitch/embed/hls/channel/5ad9b648e738977e2c312131/master.m3u8?deviceType=unknown&deviceMake=unknown&deviceModel=unknown&deviceVersion=unknown&appVersion=unknown&deviceLat=90&deviceLon=0&deviceDNT=TARGETOPT&deviceId=PSID&advertisingId=PSID&us_privacy=1YNY&profileLimit=&profileFloor=&embedPartner=
#EXTINF:-1 tvg-name="World Poker Tour" group-title="Sport" tvg-logo="http://images.pluto.tv/channels/5ad9b7aae738977e2c312132/solidLogoPNG.png" tvg-id="",World Poker Tour
https://service-stitcher.clusters.pluto.tv/v1/stitch/embed/hls/channel/5ad9b7aae738977e2c312132/master.m3u8?deviceType=unknown&deviceMake=unknown&deviceModel=unknown&deviceVersion=unknown&appVersion=unknown&deviceLat=90&deviceLon=0&deviceDNT=TARGETOPT&deviceId=PSID&advertisingId=PSID&us_privacy=1YNY&profileLimit=&profileFloor=&embedPartner=
#EXTINF:-1 tv
#EXTM3U
#EXTINF:-1,Das Erste
https://mcdn.daserste.de/daserste/de/master.m3u8
#EXTINF:-1,ZDF
http://zdf-hls-15.akamaized.net/hls/live/2016498/de/high/master.m3u8
#EXTINF:-1,ZDF SD
http://zdf-hls-15.akamaized.net/hls/live/2016498/de/low/master.m3u8
#EXTINF:-1,ZDF neo
http://zdf-hls-16.akamaized.net/hls/live/2016499/de/high/master.m3u8
#EXTINF:-1,ZDF neo SD
@Axel-Erfurt
Axel-Erfurt / PyEdit2.py
Last active April 9, 2024 02:03
Python Editor (created with PyQt5)
#!/usr/bin/python3
# -- coding: utf-8 --
from __future__ import print_function
from PyQt5.QtWidgets import (QPlainTextEdit, QWidget, QVBoxLayout, QApplication, QFileDialog, QMessageBox, QLabel, QCompleter,
QHBoxLayout, QTextEdit, QToolBar, QComboBox, QAction, QLineEdit, QDialog, QPushButton,
QToolButton, QMenu, QMainWindow, QInputDialog, QColorDialog, QStatusBar, QSystemTrayIcon)
from PyQt5.QtGui import (QIcon, QPainter, QTextFormat, QColor, QTextCursor, QKeySequence, QClipboard, QTextDocument,
QPixmap, QStandardItemModel, QStandardItem, QCursor)
from PyQt5.QtCore import (Qt, QVariant, QRect, QDir, QFile, QFileInfo, QTextStream, QSettings, QTranslator, QLocale,
@Axel-Erfurt
Axel-Erfurt / gtk4_videoplayer.py
Last active March 25, 2024 10:29
Play Video using the new Gtk.Video
#!/usr/bin/env python3
import sys
import gi
gi.require_version("Gtk", "4.0")
gi.require_version("Gdk", "4.0")
gi.require_version("Adw", "1")
from gi.repository import Gtk, Gdk, Adw, Gio, GLib
from subprocess import check_output, STDOUT
@Axel-Erfurt
Axel-Erfurt / celluloidTV.m3u
Last active March 23, 2024 22:00
Livestreams deutscher TV-Sender
#EXTM3U
#EXTINF:-1,ARD
https://mcdn.daserste.de/daserste/de/master.m3u8
#EXTINF:-1,ARD ONE
https://mcdn.one.ard.de/ardone/hls/master.m3u8
#EXTINF:-1,ARD Alpha
https://mcdn.br.de/br/fs/ard_alpha/hls/de/master.m3u8
#EXTINF:-1,ARD Tagesschau
https://tagesschau.akamaized.net/hls/live/2020115/tagesschau/tagesschau_1/master.m3u8
#EXTINF:-1,ZDF
@Axel-Erfurt
Axel-Erfurt / CSV_Viewer_Gtk3.py
Last active January 30, 2024 19:37
CSV Viewer Gtk3 Python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import gi
gi.require_version("Gtk", "3.0")
gi.require_version("Gdk", "3.0")
from gi.repository import Gtk, Gdk, GLib
from sys import argv
import pandas as pd
@Axel-Erfurt
Axel-Erfurt / test_bitwig.sh
Last active January 21, 2024 08:56
temporary Bitwig test in Ubuntu/Mint 20
#!/bin/sh
cd /tmp
wget https://downloads.bitwig.com/5.1.2/bitwig-studio-5.1.2.deb
mkdir bitwig
dpkg-deb -xv bitwig-studio-5.1.2.deb /tmp/bitwig
cd /tmp/bitwig/opt/bitwig-studio/
./bitwig-studio
@Axel-Erfurt
Axel-Erfurt / PyQt5Notification.py
Created December 10, 2020 22:10
PyQt5 Notification Popup
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtWidgets import (QWidget, QApplication, QVBoxLayout, QPushButton,
QDesktopWidget, QLabel, QGridLayout, QMainWindow)
from PyQt5.QtCore import Qt, QTimer, QSize, QRect
from PyQt5.QtGui import QIcon
import sys
class Message(QWidget):
def __init__(self, title, message, parent=None):
@Axel-Erfurt
Axel-Erfurt / PyQt5VideoPlayer
Last active November 1, 2023 22:27
PyQt5 VideoPlayer
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtGui import QPalette, QKeySequence, QIcon
from PyQt5.QtCore import QDir, Qt, QUrl, QSize, QPoint, QTime, QMimeData, QProcess, QEvent
from PyQt5.QtMultimedia import QMediaContent, QMediaPlayer, QMediaMetaData
from PyQt5.QtMultimediaWidgets import QVideoWidget
from PyQt5.QtWidgets import (QApplication, QFileDialog, QHBoxLayout, QLineEdit,
QPushButton, QSizePolicy, QSlider, QMessageBox, QStyle, QVBoxLayout,
QWidget, QShortcut, QMenu)