Quickly convert a markdown file into a nice looking PDF formatted in the same way GitHub formats Readme.md files
- Install grip
$ pip install grip - Install wkhtmltopdf
$ sudo apt-get install wkhtmltopdf
| Complete installation process: | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get install -y python-software-properties python make build-essential g++ curl libssl-dev apache2-utils git libxml2-dev | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| cd ~ | |
| mkdir git | |
| cd ~/git |
| import sys | |
| import dbus | |
| bus = dbus.SystemBus() | |
| systemd = bus.get_object('org.freedesktop.systemd1', '/org/freedesktop/systemd1') | |
| manager = dbus.Interface(systemd, 'org.freedesktop.systemd1.Manager') | |
| def restart(service): | |
| """ | |
| restart method will restart service that is passed in this method. |