Skip to content

Instantly share code, notes, and snippets.

Schlomo Schapiro schlomo

View GitHub Profile
@schlomo
schlomo / .gitignore
Last active Jun 25, 2020
Performance comparison between Iconify Inline SVG, Iconify Element and SVG Sprites.
View .gitignore
/node_modules
/.cache
/dist
@schlomo
schlomo / .gitignore
Last active Jun 21, 2020
Iconify.basic bug report
View .gitignore
/node_modules
/.cache
/dist
@schlomo
schlomo / grab.sh
Created Apr 20, 2020
video grabber script for PAL VHS video
View grab.sh
#!/bin/bash
#
# record from video grabber
VIDEO=${VIDEO:-/dev/video1}
AUDIO=${AUDIO:-hw:1}
AUDIO_RATE=48000
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"
View test.html
<html>
<body>
<p>hello world</p>
</body>
</html>
<!-- licensed under the MIT -->
@schlomo
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
metadata:
annotations:
labels:
app: webdav
name: webdav
spec:
replicas: 1
revisionHistoryLimit: 0
@schlomo
schlomo / ...README.md
Last active Jul 21, 2017
Demo for UI testing with selenium based on Zalenium, see http://blog.schlomo.schapiro.org/2017/07/web-ui-testing-made-easy-with-zalenium.html for details
View ...README.md
@schlomo
schlomo / LICENSE.txt
Last active Jun 9, 2017
Simple daily cron job as Kubernetes container image. See http://blog.schlomo.schapiro.org/2017/06/using-kubernetes-with-multiple.html for details.
View LICENSE.txt
Copyright 2017 Schlomo Schapiro / Zalando SE
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE O
@schlomo
schlomo / aws-assume-role.sh
Last active Jan 15, 2020
Understanding AWS IAM Roles and useful scripts to assume a role. See http://blog.schlomo.schapiro.org/2017/06/understanding-iam-roles-in-amazon-aws.html for details.
View aws-assume-role.sh
#!/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
role="$1"
shift
View Vagrantfile
# BUG proof for VirtualBox vagrant with centos/7 failing to run autorelabel
#
# before starting install the reload plugin with: vagrant plugin install vagrant-reload
#
# see the bug: vagrant up
# destroy VM: vagrant destroy -f
# see the fix (disable serial console): FIX=1 vagrant up
#
# destroy VM: vagrant destroy -f
View keybase.md

Keybase proof

I hereby claim:

  • I am schlomo on github.
  • I am schlomo (https://keybase.io/schlomo) on keybase.
  • I have a public key whose fingerprint is EAE2 A8B2 C84B 7F63 9914 C80E 6D97 452D AD64 9AF2

To claim this, I am signing this object:

You can’t perform that action at this time.