Skip to content

Instantly share code, notes, and snippets.

@aflyhorse
aflyhorse / config.ini
Last active March 5, 2026 02:46
Extracts daily low and high temperatures using the Open-Meteo archive API
[weather]
# Coordinates for the city (used to fetch data from Open-Meteo)
# Shanghai: 31.2304, 121.4737
latitude = 31.2304
longitude = 121.4737
# Timezone (IANA format, e.g. Asia/Shanghai, America/New_York)
timezone = Asia/Shanghai
@aflyhorse
aflyhorse / gnushogi.spec
Last active January 23, 2018 06:27
RPM spec of gnushogi for Fedora
Name: gnushogi
%global commit 5bb0b5b2f6953b3250e965c7ecaf108215751a74
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Version: 1.5
Release: 0.2.git%{shortcommit}%{?dist}
Summary: Shogi, the Japanese version of chess
License: GPLv3+
@aflyhorse
aflyhorse / rrsync
Last active September 22, 2016 08:47
A script to spur on rsync
#!/bin/bash
# A script to spur on rsync.
# Released under GPLv3, copyright LunarShaddow
# retry cap
MAXTRY=10
# safety-keep sleep interval
SLEEPSEC=600
RVALUE=0