Skip to content

Instantly share code, notes, and snippets.


Schlomo Schapiro schlomo

View GitHub Profile
schlomo / .gitignore
Last active Jun 25, 2020
Performance comparison between Iconify Inline SVG, Iconify Element and SVG Sprites.
View .gitignore
schlomo / .gitignore
Last active Jun 21, 2020
Iconify.basic bug report
View .gitignore
schlomo /
Created Apr 20, 2020
video grabber script for PAL VHS video
# record from video grabber
VIDEO_IN="-f video4linux2 -video_size 720x576 -thread_queue_size 1024 -framerate 25 -i $VIDEO -vsync 1"
AUDIO_IN="-f alsa -sample_rate $AUDIO_RATE -channels 2 -thread_queue_size 2048 -itsoffset 0.3 -i $AUDIO"
schlomo /
Last active Jan 15, 2020
Understanding AWS IAM Roles and useful scripts to assume a role. See for details.
#!/bin/bash -ue
die() { echo 1>&2 "ERROR: $*" ; exit 1 ; }
info() { echo 1>&2 "INFO: $*" ; }
test "${1:-}" || die "Usage: $0 <role-name | role ARN> [<role-name | role ARN> ...]"
while test "${1:-}" ; do
schlomo /
Created May 15, 2014
XBMC automatically play all videos in a permanent loop. Ideal for video presentations, digital signage or party mode.
# See also
# Put this into the userdata folder, see for details where this is for each platform
import xbmc
View test.html
<p>hello world</p>
<!-- licensed under the MIT -->
schlomo / video_converter
Last active Apr 13, 2018
Convert videos to MP4 with HandBrake (
View video_converter
# search for .m2ts, .mov, .mp4 files and convert them to .m4v files with HandBrake
# search in current dir or in files/folders given as args
if [[ "$*" == *--help* ]] ; then
cat <<EOF
Usage: $0 [path or file] ...
Convert all .m2ts, .mov, .mp4 videos in given paths or files
schlomo / deployment.yaml
Last active Mar 22, 2018
Files for demo of Kubernetes: Shifting the mindset from servers to containers talk
View deployment.yaml
apiVersion: extensions/v1beta1
kind: Deployment
app: webdav
name: webdav
replicas: 1
revisionHistoryLimit: 0
schlomo / DEB Repo Management
Last active Mar 12, 2018
Create and maintain a DEB repo with reprepro Support GPG signing and waiting for DropBox sync. Autoconfiguration from conf/distributions
View DEB Repo Management
Some scripts to help with DEB Repo Management.
See for how to use this.
schlomo /
Last active Feb 20, 2018
rsh wrapper that correctly returns the exit code of the remote command, just like ssh does. This wrapper installs itself as rsh and calls the real rsh. Written for Bash.
# This rsh wrapper supports reporting the exit code of the remote program.
# Assumes that remote shell is Bash or compatible and that you don't call
# exit directly (that would yield a return 127 regardless of the remote
# exit code!)
# Written by Schlomo Schapiro @ ImmobilienScout24
# Licensed under the GNU General Public License, see for full text
function rsh {
local res=$(
You can’t perform that action at this time.