Skip to content

Instantly share code, notes, and snippets.


Oded Arbel guss77

View GitHub Profile
premek /
Last active Jul 5, 2021
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
# Also see:
# - imv from renameutils
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste)
jjeising / NetflixProfileGateBlocker.user.js
Last active Dec 9, 2020
Get rid of Netflix's annoying "Who's watching?" screen
View NetflixProfileGateBlocker.user.js
// ==UserScript==
// @name Netflix Profile Gate Blocker
// @description Get rid of Netflix's annoying "Who's watching?" screen
// @include*
// @version 2.0
// ==/UserScript==
Netflix shows a profile selection window when the
user is inactive for more than 30 minutes.
md5 /
Last active Aug 30, 2021
Demonstration Docker config for Wordpress on PHP-FPM behind Nginx

Proof of concept setup for Wordpress running under PHP-FPM with an Nginx frontend


Build a copy of this image:

git clone git:// docker-nginx-fpm
cd docker-nginx-fpm
docker build -t nginx-fpm .
mauiaaron / gist:7105043
Created Oct 22, 2013
Workaround Android log limit
View gist:7105043
Yes, 1024 is an internal limit of __android_log_print / __android_log_vprint functions which printf() uses. See
As a workaround I can suggest using custom printf function:
#include <android/log.h>
void uprintf(const char* format, ...) {
va_list args;
set -o errexit
set -o nounset
if [[ ${#} -ne 1 ]]
echo "Usage: ${0} upstart-conf-file" >&2
exit 1
nrk / command.txt
Created Apr 2, 2012
Using ffprobe to get info from a file in a nice JSON format
View command.txt
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"