Skip to content

Instantly share code, notes, and snippets.

@eswarm
eswarm / x11_watch_active_window.py
Created Apr 7, 2019 — forked from ssokolow/x11_watch_active_window.py
python-xlib example which reacts to changing the active window
View x11_watch_active_window.py
#!/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 Jun 11, 2016 — forked from yunga/Cliref.md
CLIRef.md
View 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 — forked from starenka/.gitignore
fabfile to deploy flask app to nginx/supervisor/uwsgi stack
View .gitignore
.idea/*
*.pyc
@eswarm
eswarm / server.py
Created Sep 26, 2015
Simple flask server which takes a post request and generates content for pelican
View server.py
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"