Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#LISTEN_URL='rtmp://localhost:1935/live/app'
LISTEN_URL='rtmp://127.0.0.1:1935/live/app'
TWITCH_LIVE_SERVER="live-fra"
CONFIG_PATH="$HOME/.config/obs-studio"
TWITCH_KEY_F="$CONFIG_PATH/twitch.key"
@mmuman
mmuman / aliexpress_tags.py
Last active November 25, 2024 01:05
Converts the aliexpress order list or order detail DOM HTML to a printable item list with QR codes, and inventory CSV
#!/usr/bin/env python3
import sys
from parsel import Selector
import qrcode
import qrcode.image.svg
from io import BytesIO
from base64 import b64encode
qrheight = "2cm"
#!/usr/bin/env python3
# Copyright 2023, François Revol <[email protected]>
# MIT license
#
# csv2ics: convert a sensible schedule table to an icalendar program
# Initially wrote for https://2023.eurobsdcon.org/program/
import csv
from datetime import datetime, timedelta
import pytz
@mmuman
mmuman / voyages-sncf-resa-href.php
Last active August 29, 2015 14:21
generates urls to voyages-sncf.com to book trains with prefilled form items
<?php
/*
* voyages-sncf.php - generates urls to voyages-sncf.com with prefilled form items.
*
* Copyright 2011, Francois Revol, [email protected].
* Distributed under the terms of the MIT License.
*/
/*
@mmuman
mmuman / reorder-patch
Last active August 29, 2015 14:11 — forked from jlebar/reorder-patch
#!/usr/bin/env python
"""Re-order the files in a patch according to a set of rules.
Input is accepted on stdin, and written to stdout.
Usage: cat patch | reorder-patch > reordered-patch
"""