Create the file under ~/.config/systemd/user/
, then enable the service with systemctl --user enable cache.service
.
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
# Clean up the package manager cache: | |
yay --sync --clean | |
# Clean up the Nix store: | |
nix-store --gc | |
# Clean up system journals, except the past two days: | |
journalctl --vacuum-time=2d | |
# DANGER ZONE: |
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
# Fix time offset: | |
export TZ=GMT+2 | |
$ exiftool '-FileModifyDate<${SonyDateTime2}+00:00' . | |
$ exiftool '-CreateDate<${FileModifyDate}' '-ModifyDate<${FileModifyDate}' '-DateTimeOriginal<${FileModifyDate}' '-SonyDateTime<${FileModifyDate}' | |
# Geotag using UTC timestamps: | |
$ for gpx in *.gpx; exiftool -geotag "${gpx}" '-Geotime<${SonyDateTime2}+00:00' . | |
# Clean up: | |
$ exiftool -delete_original . |
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.8" | |
services: | |
adguard_home: | |
# AdGuard Home server. | |
image: adguard/adguardhome | |
ports: | |
# DNS: | |
- 53:53/tcp | |
- 53:53/udp |
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
public class BleLssService { | |
public static final UUID AUTHENTICATION = UUID.fromString("00002000-3DD4-4255-8D62-6DC7B9BD5561"); | |
public static final UUID BATTERY_LEVEL = UUID.fromString("00002A19-3DD4-4255-8D62-6DC7B9BD5561"); | |
public static final UUID CLIENT_DEVICE_NAME = UUID.fromString("00002002-3DD4-4255-8D62-6DC7B9BD5561"); | |
public static final UUID CONNECTION_CONFIGURATION = UUID.fromString("00002004-3DD4-4255-8D62-6DC7B9BD5561"); | |
public static final UUID CONNECTION_ESTABLISHMENT = UUID.fromString("00002005-3DD4-4255-8D62-6DC7B9BD5561"); | |
public static final UUID CURRENT_TIME = UUID.fromString("00002006-3DD4-4255-8D62-6DC7B9BD5561"); | |
public static final UUID DESCRIPTOR = UUID.fromString("00002902-0000-1000-8000-00805F9B34FB"); | |
public static final UUID LOCATION_INFORMATION = UUID.fromString("00002007-3DD4-4255-8D62-6DC7B9BD5561"); | |
public static final UUID LSS_CABLE_ATTACHMENT = UUID.fromString("0000200A-3DD4-4255-8D62-6DC7B9BD5561"); |
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 bash | |
ROOT="${HOME}/legendary" | |
GAMEDIR="${ROOT}/SidMeiersCivilizationVI" | |
DXVK="1.9.1" | |
export WINEPREFIX="${GAMEDIR}.wine" | |
# Download & copy DXVK libraries. |
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
"""Pokemon episode downloader script. | |
Usage: | |
python dl.py https://s2.content.video.llnw.net/smedia/path/to/playlist0.ts | |
""" | |
import os | |
import shutil | |
import sys |
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
"""MASS database format verifier.""" | |
import hashlib | |
import os.path | |
import sys | |
USAGE = """Usage: | |
{} proof_dir/*.massdb |
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
// Package main downloads tiles from the Mapbox Static Tiles API. | |
// See https://docs.mapbox.com/api/maps/static-tiles/#retrieve-raster-tiles-from-styles. | |
// | |
// Usage: | |
// go run mapbox_dl.go -h | |
package main | |
import ( | |
"flag" | |
"fmt" |
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
include "%L" | |
<KP_7>: KP_1 | |
<KP_8>: KP_2 | |
<KP_9>: KP_3 | |
<KP_1>: KP_7 | |
<KP_2>: KP_8 | |
<KP_3>: KP_9 |
NewerOlder