Skip to content

Instantly share code, notes, and snippets.

@Axel-Erfurt
Axel-Erfurt / CSV_Viewer_Gtk3.py
Last active Feb 12, 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 / zenipyCSVViewer.py
Last active Jan 24, 2021
show CSV with zenipy
View zenipyCSVViewer.py
import zenipy
myfile = "/path/to/file.csv"
csv = open(myfile, "r").read().splitlines()
header = "\n".join(csv[:1])
columns = header.split("\t")
t = ""
View QuickPlayer.qml
import QtQuick 2.2
import QtQuick.Window 2.2
import QtMultimedia 5.0
import QtQuick.Controls 1.1
import QtQuick.Dialogs 1.0
ApplicationWindow {
id: window
flags: Qt.Window | Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint
visible: true
@Axel-Erfurt
Axel-Erfurt / PyQt5Notification.py
Created Dec 10, 2020
PyQt5 Notification Popup
View PyQt5Notification.py
#!/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):
View PyQt5BlackWindow.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
from PyQt5.QtCore import QPoint, Qt
from PyQt5.QtWidgets import QApplication, QPlainTextEdit, QMainWindow, QLabel, QPushButton, QLineEdit
btn_size = 14
class MainWindow(QMainWindow):
@Axel-Erfurt
Axel-Erfurt / celluloidTV.m3u
Last active Mar 17, 2021
Livestreams deutscher TV-Sender
View celluloidTV.m3u
#EXTM3U
#EXTINF:0,ARD
http://mcdn.daserste.de/daserste/de/master.m3u8
#EXTINF:1,ARD ONE
http://onelivestream-lh.akamaihd.net/i/one_livestream@568814/master.m3u8
#EXTINF:2,ARD Alpha
http://brlive-lh.akamaihd.net/i/bralpha_germany@119899/master.m3u8
#EXTINF:3,ARD Tagesschau
http://tagesschau-lh.akamaihd.net/i/tagesschau_1@119231/master.m3u8
#EXTINF:4,ZDF
@Axel-Erfurt
Axel-Erfurt / album_get_tracklist.py
Last active Nov 3, 2020
get tracklist of album using musicbrainzngs
View album_get_tracklist.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
import musicbrainzngs
import sys
musicbrainzngs.set_useragent(
"python-musicbrainzngs-example",
"0.1",
@Axel-Erfurt
Axel-Erfurt / test_bitwig.sh
Created Oct 30, 2020
temporary Bitwig test in Ubuntu/Mint 20
View test_bitwig.sh
#!/bin/sh
cd /tmp
wget https://downloads-eu.bitwig.com/stable/3.2.8/bitwig-studio-3.2.8.deb
mkdir bitwig
dpkg-deb -xv bitwig-studio-3.2.8.deb /tmp/bitwig
cd /tmp/bitwig/opt/bitwig-studio/
./bitwig-studio
@Axel-Erfurt
Axel-Erfurt / ExclusiveRadio.txt
Last active Aug 12, 2020
ExclusiveRadio Liste für myRadio
View ExclusiveRadio.txt
-- Exclusive Radio Genres --
Blues,http://streaming.exclusive.radio/er/blues/icecast.audio
Classical,http://streaming.exclusive.radio/er/classical/icecast.audio
Country,http://streaming.exclusive.radio/er/country/icecast.audio
Easy,http://streaming.exclusive.radio/er/easy/icecast.audio
Folk,http://streaming.exclusive.radio/er/folk/icecast.audio
Jazz,http://streaming.exclusive.radio/er/jazz/icecast.audio
Motown,http://streaming.exclusive.radio/er/motown/icecast.audio
Rock,http://streaming.exclusive.radio/er/rock/icecast.audio
Soft Rock,http://streaming.exclusive.radio/er/softrock/icecast.audio
@Axel-Erfurt
Axel-Erfurt / ExclusiveRadio.m3u
Last active Feb 4, 2021
Exclusive Radio Channels
View ExclusiveRadio.m3u
#EXTM3U
#EXTINF:1,Blues
http://streaming.exclusive.radio/er/blues/icecast.audio
#EXTINF:2,Calm
http://streaming.exclusive.radio/er/calm/icecast.audio
#EXTINF:3,Chart
http://streaming.exclusive.radio/er/chart/icecast.audio
#EXTINF:4,Classical
http://streaming.exclusive.radio/er/classical/icecast.audio
#EXTINF:5,Country