gantt
dateFormat YYYY-MM-DD
title Adding GANTT diagram to mermaid
excludes weekdays 2014-01-10
section A section
Completed task :done, des1, 2014-01-06,2014-01-08
Active task :active, des2, 2014-01-09, 3d
Future task : des3, after des2, 5d
View Makefile
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
.ONESHELL: | |
# https://data.gov.tw/dataset/14718 | |
data.csv: | |
curl -L 'https://www.dgpa.gov.tw/FileConversion?filename=dgpa/files/202206/d52179b9-5e82-489b-86fd-716e959bfa5c.csv&nfix=&name=112%e5%b9%b4%e4%b8%ad%e8%8f%af%e6%b0%91%e5%9c%8b%e6%94%bf%e5%ba%9c%e8%a1%8c%e6%94%bf%e6%a9%9f%e9%97%9c%e8%be%a6%e5%85%ac%e6%97%a5%e6%9b%86%e8%a1%a8.csv' | \ | |
iconv -f BIG-5 -t UTF-8 | \ | |
dos2unix >$@ | |
clean: data.csv | |
sed -i '1d; /,$$/d' $^ |
View mermaid.md
View .gitignore
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
dist/ | |
plugin/ | |
css/ | |
*.html | |
assets/ |
View .env.template
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
CARD_TYPE= | |
CARD_NO= | |
APPID= | |
CARD_ENCRYPT= |
View .dockerignore
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
input/ | |
output/ | |
upload/ | |
**/.git |
View Makefile
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
.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 |
View .gitignore
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
*.insp | |
*.jpg |
View Makefile
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
.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 |
View README.md
# 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
View cnn_news.sh
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
#! /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) |
NewerOlder