Some stats: - Total number of links: 23983
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
version: '3' | |
services: | |
nginx: | |
labels: | |
- "traefik.enable=true" | |
- "traefik.http.routers.provys-transformer.rule=Host(`www.example.com`)" | |
- "traefik.http.routers.provys-transformer.tls=true" | |
networks: | |
- traefik |
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 | |
import sys | |
from datetime import datetime | |
import dbus | |
try: | |
from gi.repository import GObject | |
except ImportError: | |
import gobject as GObject |
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
root@orion:/etc/acpi# cat /etc/acpi/events/fucking-headphones-plugged-in | |
# Fucking headphones man | |
event=jack/headphone HEADPHONE plug | |
action=/etc/acpi/fucking-headphones-plugged-in.sh | |
root@orion:/etc/acpi# cat /etc/acpi/fucking-headphones-plugged-in.sh | |
#!/bin/sh | |
# 2 is not pulled out of my ass. See `pactl list short sinks`. | |
su ema -c 'pactl list short sink-inputs | while read x y ; do pactl move-sink-input $x 2; done' |
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
AppCompat-v7:21 provides a very useful way of dealing with pressed/focused/activated states maintaining backwards compatibility downto API-7, but there's a small issue (big for some) with the default selectableItemBackground: It uses some PNGs and/or default values for API<21. | |
The main reason is that android drawable resource definitions (prior API 21) CANNOT use theme attributes at all, so there's no way of making something like: | |
<shape android:shape="rectangle"> | |
<solid android:color="?attr/colorControlHighlight" /> | |
</shape> | |
For this, I've put this simple mockup on how to give your app better drawables that the appcompat defaults. |