Skip to content

Instantly share code, notes, and snippets.

@aflyhorse
aflyhorse / config.ini
Last active August 4, 2025 02:49
Weather data extractor for temperature analysis. Extracts lowest and highest temperatures from mirror-earth.com weather history.
[weather]
city_code = 310000 # Shanghai city code
@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