This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"version": "1.2", | |
"creator": { | |
"name": "Firefox", | |
"version": "72.0" | |
}, | |
"browser": { | |
"name": "Firefox", | |
"version": "72.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Sort todo.txt file according to multiple critera. | |
Depends on todotxt-machine | |
""" | |
import argparse | |
import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import contextlib | |
from django.utils import translation | |
from django.utils.safestring import SafeData, SafeText | |
def prefix_decorator(function): | |
def prefix_wrapper(*args, **kwargs): | |
result = function(*args, **kwargs) | |
wrapped_result = "[[ " + result + " ]]" | |
# if isinstance(result, SafeData): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from django.conf import settings | |
settings.configure( | |
DEBUG=True, | |
SECRET_KEY="thisisthesecretkey", | |
ROOT_URLCONF=__name__, | |
MIDDLEWARE_CLASSES=( | |
"django.middleware.common.CommonMiddleware", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Trigger] | |
Operation = Install | |
Operation = Upgrade | |
Type = File | |
Target = usr/share/doc/kde/HTML/* | |
Target = usr/share/gnome/help/* | |
Target = usr/share/locale/* | |
Target = usr/share/man/* | |
Target = usr/share/omf/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# CLI wrapper that works around a bug with Spotify's handling of URIs. | |
# See https://community.spotify.com/t5/Desktop-Linux/Linux-Spotify-URI-only-opens-start-page/m-p/1675578#M1812 | |
uri="$1" | |
echo "Trying to play: \"$uri\"" | |
if ! qdbus org.mpris.MediaPlayer2.spotify \ | |
/org/mpris/MediaPlayer2 \ | |
org.mpris.MediaPlayer2.Player.OpenUri \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a Python script to extract GNOME/GTK's color scheme and apply it to Wine, so that the themes (approximately) match. | |
Instructions: | |
1. Set your Gnome theme as you would like it | |
2. Run with a command like "python wine_colors_from_gtk.py" | |
3. Restart any apps running in Wine. They should match the Gnome theme colors now. | |
Better description with screenshots here: http://www.endolith.com/wordpress/2008/08/03/wine-colors/ | |
This is also stored on https://code.launchpad.net/~endolith/+junk/wine-color-scraper |
OlderNewer