Skip to content

Instantly share code, notes, and snippets.

@uyjulian
Last active April 29, 2022 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uyjulian/1c80459df6192352ba1a356e07228ffe to your computer and use it in GitHub Desktop.
Save uyjulian/1c80459df6192352ba1a356e07228ffe to your computer and use it in GitHub Desktop.
^\* \[(.*?)\]\(https://onscripter\.osdn\.jp/(.*?)\) $
< $1 dd bs=4 skip=1 count=1 | od -t d4
0000000 (\d*)
^\* \[(.*?)\]\(https://onscripter\.osdn\.jp/(.*?)\) (\d*) $
([^ \n]*) ([^ \n]*) ([^ \n]*)
rm -rf x; mkdir x; pushd x; tar -xf ../$2; cp -r */* ../y; popd; pushd y; git add .; GIT_AUTHOR_DATE="$3 +0900" GIT_COMMITTER_DATE="$3 +0900" GIT_AUTHOR_NAME="Ogapee" GIT_COMMITTER_NAME="Ogapee" GIT_AUTHOR_EMAIL="ogapee@yahoo.kp at aqua.dti2.ne.jp" GIT_COMMITTER_EMAIL="ogapee@yahoo.kp at aqua.dti2.ne.jp" git -c commit.gpgsign=false commit -m "ONScripter $1"; git rm -r ./*; popd;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment