Skip to content

Instantly share code, notes, and snippets.

View lopezpdvn's full-sized avatar

Pedro Ivan Lopez lopezpdvn

View GitHub Profile
@lopezpdvn
lopezpdvn / fahclient.service
Created April 17, 2015 09:36
Systemd service unit for FAHClient // Folding@Home Client
[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
#!/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 19:43
wkhtmltopdf cheatsheet/examples
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"
@lopezpdvn
lopezpdvn / html5_template_basic.html
Last active May 25, 2016 19:53
HTML5 templates
<!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 August 29, 2015 14:07
zip/unzip cs
# Zip directories
zip -r $zipf name00* name01*
# List zip file contents
unzip -l $zipf
vim $zipf
less $zipf