Skip to content

Instantly share code, notes, and snippets.

Avatar

Oded Arbel guss77

View GitHub Profile
@premek
premek / mv.sh
Last active Jul 5, 2021
Rename files in linux / bash using mv command without typing the full name two times
View mv.sh
# 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
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 https://www.netflix.com/*
// @version 2.0
// ==/UserScript==
/*
Netflix shows a profile selection window when the
user is inactive for more than 30 minutes.
@md5
md5 / 00_README.md
Last active Aug 30, 2021
Demonstration Docker config for Wordpress on PHP-FPM behind Nginx
View 00_README.md

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

Usage

Build a copy of this image:

git clone git://github.com/d9206eacb5a0ff5d6be0.git docker-nginx-fpm
cd docker-nginx-fpm
docker build -t nginx-fpm .
@mauiaaron
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 https://github.com/android/platform_system_core/blob/master/liblog/logd_write.c
As a workaround I can suggest using custom printf function:
*/
#include <android/log.h>
void uprintf(const char* format, ...) {
va_list args;
View dbus-init-checkconf.sh
#!/bin/bash
set -o errexit
set -o nounset
if [[ ${#} -ne 1 ]]
then
echo "Usage: ${0} upstart-conf-file" >&2
exit 1
fi
@nrk
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"