Skip to content

Instantly share code, notes, and snippets.

🐼
panda

streetturtle

View GitHub Profile
@streetturtle
streetturtle / blur-screenshot.sh
Last active Mar 9, 2019
Make screenshot, blur it and save - very fast
View blur-screenshot.sh
#!/usr/bin/env bash
ffmpeg -loglevel panic\
-f x11grab\
-video_size $(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/')\
-y -i :0.0\
-filter_complex "boxblur=9"\
-vframes 1\
/tmp/i3lock.png
@streetturtle
streetturtle / pixelate-screenshot.sh
Last active Mar 9, 2019
Make screenshot, pixelate, save.
View pixelate-screenshot.sh
#!/usr/bin/env bash
ffmpeg -loglevel panic\
-f x11grab\
-video_size $(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/')\
-y -i :0.0\
-vf frei0r=pixeliz0r\
-vframes 1\
/tmp/i3lock.png
View Prepare for screenshot
function prepareForScreenshot(selector) {
var textElements = document.querySelectorAll(selector);
for (i = 0; i < textElements.length; ++i) {
textElements[i].innerHTML = randomiseString(textElements[i].textContent);
}
var imgElements = document.querySelectorAll('img');
for (i = 0; i < imgElements.length; ++i) {
imgElements[i].style.filter = 'blur(7px)';
}
View Custom footer for Alfresco 5.0.c
@streetturtle
streetturtle / sp
Last active Apr 14, 2019 — forked from wandernauta/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
View sp
#!/bin/bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
You can’t perform that action at this time.