Skip to content

Instantly share code, notes, and snippets.

View AmitAronovitch's full-sized avatar
🌤️

Amit Aronovitch AmitAronovitch

🌤️
  • Ramat Gan, Israel
  • 11:29 (UTC -12:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am amitaronovitch on github.
  • I am amitar (https://keybase.io/amitar) on keybase.
  • I have a public key ASCildgTRyV2l3MAsFcE8-VQcb2SBpVukRT6TvMh25gOyQo

To claim this, I am signing this object:

@AmitAronovitch
AmitAronovitch / draw_letters.py
Created May 1, 2019 09:14
playing with ttf fonts
from fontTools.ttLib import TTFont
class Tracer:
def __init__(self, name):
# print('initializing {}'.format(name))
self.name = name
def __call__(self, *args):
# print('call {}(*{}, **{})'.format(self.name, args, kwargs))
@AmitAronovitch
AmitAronovitch / terminal_dump.txt
Created November 26, 2016 21:09
demo: docker containers preserve data
amit@penguin:~$ docker run -i -t debian /bin/bash
root@338b5a0ff034:/# mkdir /usr/local/blabla
root@338b5a0ff034:/# echo hello-there >/usr/local/blabla/data
root@338b5a0ff034:/# exit
exit
amit@penguin:~$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
338b5a0ff034 debian "/bin/bash" 32 seconds ago Exited (0) 5 seconds ago stoic_goldberg
13ffee81f8cd debian "/bin/bash" 35 hours ago Exited (0) 29 hours ago boring_kowalevski
amit@penguin:~$ docker start -a -i 338b5a0ff034