Skip to content

Instantly share code, notes, and snippets.

View LeandroLovisolo's full-sized avatar

Leandro Lovisolo LeandroLovisolo

View GitHub Profile
@LeandroLovisolo
LeandroLovisolo / toggle-title-bar.py
Last active August 29, 2015 14:09
i3 window manager script that toggles the visibility of the currently focused window's title bar
#!/usr/bin/env python3
# Save this script to ~/.i3/toggle-title-bar.py, then add the following to
# your ~/.i3/config file:
#
# # toggle title bar
# bindsym $mod+t exec ~/.i3/toggle-title-bar.py
#
# Author: Leandro Lovisolo <[email protected]>
# https://github.com/LeandroLovisolo
@LeandroLovisolo
LeandroLovisolo / backit.py
Created September 9, 2014 16:49
Reddit user photos backup script
#!/usr/bin/env python2
# coding: utf-8
import argparse
import re
from urllib import urlretrieve
from urllib2 import urlopen
from os.path import isfile
def download_json_and_photos(url, url_filename, output_path):