Skip to content

Instantly share code, notes, and snippets.

diff --git a/Telegram/Resources/qrc/telegram_linux.qrc b/Telegram/Resources/qrc/telegram_linux.qrc
index 0554fa179..3ea027406 100644
--- a/Telegram/Resources/qrc/telegram_linux.qrc
+++ b/Telegram/Resources/qrc/telegram_linux.qrc
@@ -1,5 +1,4 @@
<RCC>
<qresource prefix="/qt">
- <file alias="etc/qt.conf">../etc/qt_linux.conf</file>
</qresource>
</RCC>
@bakatrouble
bakatrouble / keybase.md
Created March 22, 2019 23:18
keybase.md

Keybase proof

I hereby claim:

  • I am bakatrouble on github.
  • I am bakatrouble (https://keybase.io/bakatrouble) on keybase.
  • I have a public key ASDuEHpNtr6yV0WyAxKrxNgh8lgbNFooz1iinuArNwwApAo

To claim this, I am signing this object:

# GYP project file for TDesktop
{
'targets': [
{
'target_name': 'libtgvoip',
'type': 'shared_library',
'dependencies': [],
'defines': [
'WEBRTC_APM_DEBUG_DUMP=0',
# GYP project file for TDesktop
# Fixed for standalone Windows static lib build, building notes are at https://github.com/bakatrouble/pylibtgvoip/blob/master/README.libtgvoip.md
{
'targets': [
{
'target_name': 'libtgvoip',
'type': 'shared_library',
'dependencies': [],
'defines': [
from urllib import parse
from pony.orm import *
db = Database()
Model = db.Entity
class SanicPony(object):
def __init__(self, app, connect=True):
# source data files: http://spreadsheet_reader.drop.bakatrouble.pw/
/home/bakatrouble/.virtualenvs/sandbox/bin/python3 /home/bakatrouble/dev/sandbox/q.py
=== XLS ===
Тестов, Тест, Тестович, test, test@example.com
Иванов, Иван, Иванович, test2, test2@example.com
=== CSV ===
Тестов, Тест, Тестович, test, test@example.com
Иванов, Иван, Иванович, test2, test2@example.com
#EXTM3U
#EXT-X-VERSION:2
#EXT-X-ALLOW-CACHE:YES
#EXT-X-MEDIA-SEQUENCE:1816
#EXT-X-TARGETDURATION:15
#EXTINF:17,
/hls/09154439-766a-aaaa-aaaa-64db8b208356-sub/1521425416.16-1521425432.83.ts?input=ele-production&kid=vyborymos-1&sub=0&exp=1521763199&dig=9d82fa52ba2f341a1065f05ca379dc97
#EXTINF:17,
/hls/09154439-766a-aaaa-aaaa-64db8b208356-sub/1521425432.83-1521425449.46.ts?input=ele-production&kid=vyborymos-1&sub=0&exp=1521763199&dig=9cc03b8c8f201025014118317c5d13e8
#EXTINF:17,
import asyncio
import os
from urllib.parse import urlparse, parse_qs
from subprocess import Popen
import itertools
import requests
import ffmpeg
import m3u8
from natsort import natsorted
@bakatrouble
bakatrouble / snippet.py
Last active July 16, 2017 11:55
Runtime generation of uploaded file name (Django)
@deconstructible
class RandomFileName(object):
def __init__(self, path):
self.path = os.path.join(path, "%s%s")
def __call__(self, _, filename):
extension = os.path.splitext(filename)[1]
return self.path % (uuid.uuid4(), extension)
image = models.ImageField(verbose_name=_('Image'), upload_to=RandomFileName('backgrounds'),
@bakatrouble
bakatrouble / run.py
Last active January 24, 2016 19:52
Vanilla Minecraft runner
#!/usr/bin/python3
from subprocess import Popen
from os import path
from platform import system
from uuid import uuid4
def run_game(game_path, game_data, main_class, version, uuid=str(uuid4()), xmx=1024, max_perm_size=128, more=list()):
"""