Skip to content

Instantly share code, notes, and snippets.

View intelfx's full-sized avatar
🔥
ceterum censeo gstreamer esse delendam

Ivan Shapovalov intelfx

🔥
ceterum censeo gstreamer esse delendam
View GitHub Profile
-- autosave.lua
--
-- Periodically saves "watch later" data during playback, rather than only saving on quit.
-- This lets you easily recover your position in the case of an ungraceful shutdown of mpv (crash, power failure, etc.).
--
-- You can configure the save period by creating a "lua-settings" directory inside your mpv configuration directory.
-- Inside the "lua-settings" directory, create a file named "autosave.conf".
-- The save period can be set like so:
--
-- save_period=60
@intelfx
intelfx / register.py
Last active March 28, 2019 22:35
Idempotent register/password reset for https://github.com/matrix-org/synapse
#!/usr/bin/env python3
import os
import os.path as p
import sys
import argparse
import json
import yaml
import requests
import attr
======= GobiApi - 15 ������ 2016 �. 12:23:12.322 681.362770 =======
GobiApi 12:23:12.322 681.362813 0x00001130 i : Apply TBD logging registry over-rides
GobiApi 12:23:12.324 681.364071 0x00001130 i : Version: 4.2.1508.3
GobiApi 12:23:12.324 681.364099 0x00001130 i : g_TlsIndex: 0x0000001f
GobiApi 12:23:12.324 681.364128 0x00001130 h : + CMbnConnector::CMbnConnector
GobiApi 12:23:12.324 681.364181 0x00001130 E : Failed to load C:\Users\intel\AppData\Local\Temp\FDT\SwiMbnConnector.dll, error 0x7e
GobiApi 12:23:12.324 681.364201 0x00001130 h : - CMbnConnector::CMbnConnector (Duration = 0ms - Total time = 0ms - Total calls = 1)
GobiApi 12:23:12.359 681.399350 0x00002604 h : + SwiWWANConnect
GobiApi 12:23:12.359 681.399365 0x00002604 h : + QCWWAN2kEnumerateDevices

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@intelfx
intelfx / pandoc-lorcode.lua
Last active January 14, 2016 05:33
LORCODE writer for Pandoc
-- This is a custom writer for pandoc for http://linux.org.ru
-- markup language. It has been dirty-hacked from the sample custom
-- writer which produced HTML output.
--
-- Invoke with: pandoc -t sample.lua
--
-- Note: you need not have lua installed on your system to use this
-- custom writer. However, if you do have lua installed, you can
-- use it to test changes to the script. 'lua sample.lua' will
-- produce informative error messages if your code contains