Skip to content

Instantly share code, notes, and snippets.

View schlomo's full-sized avatar

Schlomo Schapiro schlomo

View GitHub Profile
@schlomo
schlomo / click-to-dial.user.js
Last active November 12, 2024 08:12
Click to dial UserScript to add phone icon to every phone number for easy dialing or copying the phone number
// ==UserScript==
// @name Click to Dial Phone Icon
// @namespace https://schlomo.schapiro.org/
// @version 2024.11.12.01
// @description Add phone icon to phone numbers for dialing (click) and copying (context menu / right click)
// @author Schlomo Schapiro
// @match *://*/*
// @grant none
// @run-at document-start
// @homepageURL https://schlomo.schapiro.org/
@schlomo
schlomo / override-serial-number.sh
Created January 20, 2023 10:54
Overriding / Patching Linux System Serial Number
#!/bin/bash
# See https://schlomo.schapiro.org/2023/01/overriding-patching-linux-system-serial.html
# Copyright 2023 Forto Logistics AG & Co. KG / Schlomo Schapiro
# 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
@schlomo
schlomo / sops-in-docker-demo.sh
Last active April 16, 2023 03:39
Demo for simple adding & using of SOPS in Docker
#!/bin/bash
# Written by Schlomo Schapiro, Licensed under CC0
for b in sops gpg mkdir rm chmod cat date ; do
if ! type $b &>/dev/null ; then
echo -e "\n******** REQUIRED BINARY $b IS MISSING! ********\n"
exit 1
fi
done
@schlomo
schlomo / keybase.md
Last active November 17, 2022 15:38
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 ASA9B4VcvlA8Bk1pvQvdH2iOwYXKcOLqKJBoOFvMYODqywo

To claim this, I am signing this object:

# This is a demo for the problem in https://github.com/pleiszenburg/wenv/issues/14
#
# it builds yamlreader into an executable. First on Linux and then in wine.
#
# Building it in wine fails, I hope that this test case helps to extend wenv to support this sort of "cross building"
# to allow creating Windows executables from Python programs without actually running Windows, e.g. in a CI pipeline.
#
# Build like this: docker build .
#
# Optionally set the Pyhon version like this: docker build --build-arg PYTHONVERSION=3.8.1 .
@schlomo
schlomo / .gitignore
Last active June 25, 2020 10:20
Performance comparison between Iconify Inline SVG, Iconify Element and SVG Sprites.
/node_modules
/.cache
/dist
@schlomo
schlomo / .gitignore
Last active June 21, 2020 20:03
Iconify.basic bug report
/node_modules
/.cache
/dist
@schlomo
schlomo / grab.sh
Created April 20, 2020 17:31
video grabber script for PAL VHS video
#!/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"
@schlomo
schlomo / test.html
Last active January 16, 2019 15:24
<html>
<body>
<p>hello world</p>
</body>
</html>
<!-- licensed under the MIT -->
@schlomo
schlomo / deployment.yaml
Last active March 22, 2018 15:53
Files for demo of Kubernetes: Shifting the mindset from servers to containers talk
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
labels:
app: webdav
name: webdav
spec:
replicas: 1
revisionHistoryLimit: 0