# Backup telephony data as telephony.ab
adb backup -apk com.android.providers.telephony -f telephony.ab &>/dev/null
# Extract .ab file with tail, pigz and tar
# Notice we need to ignore the first 24 bytes and then fo decoding
tail -c +25 telephony.ab | pigz -d | tar -xf -
# Get JSON data with files: XXXXXXsms_backup
for sms in **/*sms_backup; do
This file contains hidden or 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
dist/ | |
plugin/ | |
css/ | |
*.html | |
assets/ |
This file contains hidden or 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
CARD_TYPE= | |
CARD_NO= | |
APPID= | |
CARD_ENCRYPT= |
This file contains hidden or 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
input/ | |
output/ | |
upload/ | |
**/.git |
This file contains hidden or 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
.ONESHELL: | |
all: | |
GID=`getent group gitea | cut -d: -f3` \ | |
docker-compose up -d | |
down: | |
GID=`getent group gitea | cut -d: -f3` \ | |
docker-compose down | |
install: | |
sudo systemctl enable gitea.service |
This file contains hidden or 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
*.insp | |
*.jpg |
This file contains hidden or 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
.ONESHELL: | |
test: xmap.pgm ymap.pgm | |
ffmpeg -y -i test.jpg -i xmap.pgm -i ymap.pgm -filter_complex remap out.jpg | |
exiftool -UsePanoramaViewer=TRUE -ProjectionType="equirectangular" out.jpg | |
which SimplePanoramaViewer 2>/dev/null && SimplePanoramaViewer out.jpg | |
pgm: dualfisheye2equirectangular | |
cd $< | |
gcc -o projection projection.c -lm |
This file contains hidden or 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 | |
RSS_URL=http://feeds.bbci.co.uk/news/rss.xml | |
#RSS_URL=http://feeds.bbci.co.uk/news/rss.xml | |
PRINT_INTERVAL=${PRING_INTERVAL:-30} | |
FETCH_INTERVAL=${FETCH_INTERVAL:-600} | |
RSS=$(mktemp) | |
LOCK=$(mktemp) |
This file contains hidden or 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
GITEA_DATA_DIR=/tmp/gitea |
This file contains hidden or 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
kaohsiung.csv: | |
curl -Lo $@ https://data.kcg.gov.tw/dataset/7b142b2b-4d92-4a22-ac63-339c95bb0dfc/resource/d6e12411-8655-40ff-a2b2-ea3791c7c586/download/firehydrantonground.csv | |
taipei.csv: | |
curl -L https://data.taipei/api/getDatasetInfo/downloadResource\?id\=c106a00b-5a21-4393-b213-475a0ece9f2b\&rid\=b9f8154d-c627-48a8-b3ef-512ed9cde9e7 \ | |
| iconv -f BIG-5 -t UTF-8 >$@ | |
taoyuan_97.csv: | |
curl -Lo raw.json https://data.tycg.gov.tw/opendata/datalist/datasetMeta/download\?id\=3fd4a492-bcae-45be-8184-aa6fad506701\&rid\=ea487112-ef5b-481a-b49a-26f52dc04b93 | |
echo 'FID,類別碼,識別碼,高程,x,y' >$@ |