20180809

오늘의 일기
* How Can I Convert Github-Flavored Markdown To A PDF

# written by https://superuser.com/users/46185/fredoverflow
# sudo apt install grip wkhtmltopdf

MD=${1:-README.md}
PDF=${2:-"$MD".pdf}
PORT=8971
DELAY=10

printf "Converting $MD to $PDF on port $PORT\n"
printf "Waiting $DELAY seconds for server to start...\n"

grip "$MD" localhost:$PORT &
sleep $DELAY
wkhtmltopdf http://localhost:$PORT "$PDF"
kill $(ps -eo pid,command | grep grip | grep -v grep | awk '{print $1}')

* linux/compiler-gcc.h: No such file or directory 오류가 발생해서 https://raw.githubusercontent.com/torvalds/linux/7829fb09a2b4268b30dd9bc782fa5ebee278b137/include/linux/compiler-gcc5.h 를 추가했더니 해결되었음.
 

Advertisements
Posted in 1) Memo

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Recent Posts
누적 방문자 수
  • 141,924 hits
%d bloggers like this: