Skip to content

Instantly share code, notes, and snippets.

View lukpueh's full-sized avatar

Lukas Pühringer lukpueh

View GitHub Profile
@lukpueh
lukpueh / lind_webhook_listener.py
Created October 29, 2018 15:36
Flask app to listen for a GitHub push webhook request on one repo and trigger a Travis build on another repo.
"""
Tiny flask app that listens for incoming requests from a "GitHub webhook",
and, if the webhook was triggered by a push to the "native_client" repo,
calls the "Travis API" to trigger a build for the "lind_project" repo.
"""
import os
import json
import hmac
import hashlib
import requests
@lukpueh
lukpueh / find_in_pdf.py
Created August 16, 2018 10:18
Sublime Text 3 command to find next or previous occurrence of a string in a tex document and in the corresponding open pdf document
"""
Sublime Text 3 command to find next or previous occurrence of a string in a tex
document and in the corresponding open pdf document, built with ST3 package
`LaTeXTools`, and displayed using OSX pdf viewer `skim`.
Add snippet to new *.py file in:
~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/
Handy keybindings:
(~/Library/Application Support/Sublime Text 3/Packages/User/Default (OSX).sublime-keymap
@lukpueh
lukpueh / count_html_elems.py
Created May 28, 2018 10:14
Basic HTML tag opening-closing-pair validator
#!/usr/bin/env python
"""
<Program Name>
count_html_elems.py
<Author>
Lukas Puehringer <luk.puehringer@gmail.com>
<Started>
May, 2018
@lukpueh
lukpueh / say_lte.py
Created May 24, 2018 10:38
Script to help me position my `Alcatel Linkhub HH40v` LTE modem for the best signal strength
#!/usr/bin/env python
"""
<Program Name>
say_lte.py
<Author>
Lukas Puehringer <luk.puehringer@gmail.com>
<Purpose>
Script to help me position my `Alcatel Linkhub HH40v` LTE modem for the
@lukpueh
lukpueh / trac2down.py
Created May 6, 2016 16:48 — forked from sgk/trac2down.py
Trac Wiki to Markdown converter
#!/usr/bin/python
# vim:set fileencoding=utf-8 sw=2 ai:
import sqlite3
import datetime
import re
SQL = '''
select
name, version, time, author, text