Skip to content

Instantly share code, notes, and snippets.

@eswarm
eswarm / x11_watch_active_window.py
Created April 7, 2019 16:51 — forked from ssokolow/x11_watch_active_window.py
python-xlib example which reacts to changing the active window
#!/usr/bin/env python
"""python-xlib example which reacts to changing the active window/title.
Requires:
- Python
- python-xlib
Tested with Python 2.x because my Kubuntu 14.04 doesn't come with python-xlib
for Python 3.x.
@eswarm
eswarm / Cliref.md
Created June 11, 2016 13:44 — forked from yunga/Cliref.md
CLIRef.md
_________ _____ _______________       _____
\_   ___ \\    \\___________   \____ / ____\     ~/.bash/cliref.md
/    \  \/|    | |   ||       _/ __ \  __\    copy/paste from whatisdb
\     \___|__  |_|_  ||    |   \  __/|_ |   http://pastebin.com/yGmGiDQX
 \________  /_____ \_||____|_  /____  /_|     yunga.palatino@gmail.com
 20160515 \/ 1527 \/         \/     \/

alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'

@eswarm
eswarm / .gitignore
Created May 17, 2016 17:00 — forked from starenka/.gitignore
fabfile to deploy flask app to nginx/supervisor/uwsgi stack
.idea/*
*.pyc
@eswarm
eswarm / server.py
Created September 26, 2015 09:45
Simple flask server which takes a post request and generates content for pelican
from flask import Flask, request, render_template, url_for
import shutil
from werkzeug import secure_filename
import sys
import subprocess
import os
app = Flask(__name__)
USERNAME = "user"
PASSWORD = "password"