Skip to content

Instantly share code, notes, and snippets.

@Axel-Erfurt
Axel-Erfurt / OlympiaLiveStreams
Created Jul 31, 2021
Olympia 2021 Tokio Livestreams
View OlympiaLiveStreams
ARD Olympia 1
https://ndrspezial-lh.akamaihd.net/i/spezial_1@430235/master.m3u8
ARD Olympia 2
https://ndrspezial-lh.akamaihd.net/i/spezial_2@430236/master.m3u8
ARD Olympia 3
https://ndrspezial-lh.akamaihd.net/i/spezial_3@430237/master.m3u8
ARD Olympia 4
https://ndrspezial-lh.akamaihd.net/i/spezial_4@430238/master.m3u8
ARD Olympia 5
https://ndrspezial-lh.akamaihd.net/i/spezial_5@430239/master.m3u8
@Axel-Erfurt
Axel-Erfurt / PyQt5VideoPlayer
Last active Jul 28, 2021
PyQt5 VideoPlayer
View PyQt5VideoPlayer
#!/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)
@Axel-Erfurt
Axel-Erfurt / test_bitwig.sh
Last active Jul 23, 2021
temporary Bitwig test in Ubuntu/Mint 20
View test_bitwig.sh
#!/bin/sh
cd /tmp
wget https://downloads-eu.bitwig.com/stable/4.0.1/bitwig-studio-4.0.1.deb
mkdir bitwig
dpkg-deb -xv bitwig-studio-4.0.1.deb /tmp/bitwig
cd /tmp/bitwig/opt/bitwig-studio/
./bitwig-studio
@Axel-Erfurt
Axel-Erfurt / CSV_Viewer_Gtk3.py
Last active Jul 21, 2021
CSV Viewer Gtk3 Python with Filter
View CSV_Viewer_Gtk3.py
#!/usr/bin/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
@Axel-Erfurt
Axel-Erfurt / Qt5_CSV.py
Last active Jul 21, 2021
CSV Reader / Writer (Python Qt5)
View Qt5_CSV.py
#!/usr/bin/python3
#-*- coding:utf-8 -*-
import csv, codecs
import os
import pandas as pd
from PyQt5 import QtPrintSupport
from PyQt5.QtGui import (QImage, QPainter, QIcon, QKeySequence, QTextCursor, QPalette,
QCursor, QDropEvent, QTextDocument, QTextTableFormat, QColor, QBrush)
from PyQt5.QtCore import (QFile, QSettings, Qt, QFileInfo, QItemSelectionModel, QDir,
QMetaObject, QAbstractTableModel, QModelIndex, QVariant)
View XAppStatusicon.py
#!/usr/bin/python3
import gi
gi.require_versions({'Gtk': '3.0','XApp': '1.0'})
from gi.repository import Gtk, XApp
import warnings
warnings.filterwarnings("ignore")
class MyStatusIconApp:
@Axel-Erfurt
Axel-Erfurt / myDownloader.py
Created Dec 21, 2017
Python PyQt4 Downloader with progressbar
View myDownloader.py
# -*- coding: utf-8 -*-
from PyQt4 import QtCore, QtGui
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from urllib2 import *
class DownloaderApp(QtGui.QMainWindow):
def __init__(self, parent = None):
super(DownloaderApp, self).__init__(parent)
@Axel-Erfurt
Axel-Erfurt / PyEdit2.py
Last active Jun 18, 2021
Python Editor (created with PyQt5)
View PyEdit2.py
#!/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 / LiveStreamsDeutscheSender.py
Last active Jun 10, 2021
die aktuellen Livestreams der öffentlich rechtlichen Sender auslesen
View LiveStreamsDeutscheSender.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import requests
import json
url = "https://raw.githubusercontent.com/mediathekview/MServer/master/dist/live-streams.json"
data = requests.get(url).text
js = json.loads(data)
@Axel-Erfurt
Axel-Erfurt / QTableWidget_CSV
Created Jun 8, 2021
open / save CSV in QTableWidget
View QTableWidget_CSV
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtWidgets import (QMainWindow, QApplication,
QToolButton, QTableWidget,
QTableWidgetItem, QFileDialog, QStyle)
from PyQt5.QtCore import Qt, QSize