Skip to content

Instantly share code, notes, and snippets.

@valpackett
valpackett / 1_WTF.md
Created February 3, 2012 18:32
Kindle dictionary template

Kindle dictionary template

Use it with KindleGen

kindlegen dic.opf

@Golit
Golit / tplink-reconnect.sh
Created February 5, 2015 04:52
This script will reconnect your TP-Link TL-WDR3600 router. The script works with the latest firmware
@DrLulz
DrLulz / mpv-commands.lua
Created June 1, 2015 14:48
MPV zoom, rotate, and pan. Add to mpv scripts folder.
-- ZOOM
function zoom_in()
zoom = mp.get_property("video-zoom")
zoom_to = zoom + 0.1
mp.set_property("video-zoom", zoom_to)
end
function zoom_out()
zoom = mp.get_property("video-zoom")
zoom_to = zoom - 0.1
mp.set_property("video-zoom", zoom_to)
@haasn
haasn / image.lua
Last active May 21, 2024 21:54
mvi - set of configuration for turning mpv into an image viewer
-- Allow changing a property with by zoom-adjusted amount
function zoom_invariant_add(prop, amt)
amt = amt / 2 ^ mp.get_property_number("video-zoom")
mp.set_property_number(prop, mp.get_property_number(prop) + amt)
end
-- Resets the pan if the entire image would be visible
function zoom_check_center()
local zoom = mp.get_property_number("video-zoom")
local rot = mp.get_property_number("video-rotate") * math.pi / 180
@mcsepes
mcsepes / bookmarks.xml
Last active March 18, 2023 12:08
Radio Tray bookmarks
<bookmarks>
<group name="root">
<group name="ETHNIC / FOLK / SPIRITUAL MUSIC">
<bookmark name="Indian Folk/Ethnic" url="http://79.111.14.76:9021/"/>
<bookmark name="Russian Folk Music" url="http://79.120.77.11:9057/"/>
<bookmark name="Православная Духовная Музыка" url="http://79.111.14.76:9127/"/>
<bookmark name="Flamenco" url="http://79.111.14.76:9055/"/>
<bookmark name="Tango" url="http://79.120.39.202:9117/"/>
<bookmark name="Middle East Music" url="http://79.111.119.111:9133/"/>
<bookmark name="Celtic Music" url="http://79.111.14.76:9087/"/>
@KurtJacobson
KurtJacobson / transparent_window.py
Last active October 21, 2024 05:25
Transparent Window in Gtk+ 3, python
#!/usr/bin/env python
# Copyright (c) 2017 Kurt Jacobson
# License: https://kcj.mit-license.org/@2017
import cairo
import gi
gi.require_version('Gtk', '3.0')
gi.require_version('Gdk', '3.0')