Skip to content

Instantly share code, notes, and snippets.

Avatar

Pedro Ivan Lopez lopezpdvn

View GitHub Profile
@lopezpdvn
lopezpdvn / fahclient.service
Created Apr 17, 2015
Systemd service unit for FAHClient // Folding@Home Client
View fahclient.service
[Unit]
Description=Folding@Home V7 Client
Documentation=https://folding.stanford.edu/home/the-software/
[Service]
Type=simple
PIDFile=/var/run/fahclient.pid
ExecStart=/usr/local/bin/FAHClient -v start
ExecReload=/usr/local/bin/FAHClient -v restart
ExecStop=/usr/local/bin/FAHClient -v stop
View python-short-template.py
#!/usr/bin/env python
# coding=utf-8
'''Module docstrings title.
Don't use keywords only arguments (for functions), sphinx.ext.autodoc will
fail if you do.
When in doubt consult [PEP8]_.
@lopezpdvn
lopezpdvn / wkhtmltopdf_example_00.sh
Last active May 25, 2016
wkhtmltopdf cheatsheet/examples
View wkhtmltopdf_example_00.sh
title="ASP.NET from Wikipedia"
src='https://en.wikipedia.org/wiki/ASP.NET'
dst=aspnet.pdf
wkhtmltopdf -s Letter --title "$title" -T 10 -B 10 "$src" "$dst"
View html5_template_basic.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="css/main_stylesheet.css" />
<link rel="shortcut icon" href="/favicon.ico" />
<title>
Title || URI
</title>
</head>
@lopezpdvn
lopezpdvn / zip_cs
Last active Aug 29, 2015
zip/unzip cs
View zip_cs
# Zip directories
zip -r $zipf name00* name01*
# List zip file contents
unzip -l $zipf
vim $zipf
less $zipf