Skip to content

Instantly share code, notes, and snippets.

View j0hn's full-sized avatar

Gonzalo Garcia Berrotaran j0hn

  • Cordoba, Argentina
View GitHub Profile
#!/bin/bash
# Dependencies: imagemagick, i3lock-color-git, scrot
# IMAGE=$(mktemp).png
# scrot $IMAGE
# # convert $IMAGE -level 0%,100%,0.6 -filter Gaussian -resize 30% -define filter:sigma=2.5 -resize 333.33% $IMAGE
# convert -scale 10% -scale 1000% $IMAGE $IMAGE
# i3lock -i $IMAGE
# rm $IMAGE
import os
from functools import lru_cache
import requests
import urllib.parse
from flask import Flask
from flask import request
from flask import flash
from flask import url_for