Skip to content

Instantly share code, notes, and snippets.

@madblobfish
madblobfish / gitpull.service
Created Jun 23, 2017
Systemd service file to pull a git repositoy when recieveing tcp packets (webhook)
View gitpull.service
[Unit]
Description=Autopull through webhook
After=network.target
[Service]
User=<user>
Type=simple
Environment="GITPATH=%h/somegitfolder/"
Environment="PORT=9999"
Environment="LOGFILE=%h/.gitpull.log"
@madblobfish
madblobfish / gist:4b9883e3d7593f4f90b8fe0f3a1e1dc0
Created Aug 17, 2016 — forked from anonymous/gist:1e15601f9771abef580d5c2ed9c2bf14
Recursive RegExp to find empty sectionings in latex
View gist:4b9883e3d7593f4f90b8fe0f3a1e1dc0
\\(chapter|(sub)*section)(\{([^{}]*(?3)?[^{}]*)*\})\s*\\(chapter|(sub)*section)
Matching Examples:
1
\section{yoooo{} \textbf{asd}}
\section
2