Skip to content

Instantly share code, notes, and snippets.

View paspo's full-sized avatar

Paolo Asperti paspo

View GitHub Profile
@gullyn
gullyn / flappy.html
Last active May 4, 2024 15:35
Flappy bird in 205 bytes (improved!)
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c>
#!/usr/bin/env bash
#===============================================================================
# FILE: ReconnectSynologyVPN.sh
#
# DESCRIPTION: Reconnect a disconnected VPN session on Synology DSM
# SOURCE(S): https://forum.synology.com/enu/viewtopic.php?f=241&t=65444
#
# AUTHOR: Ian Harrier
# VERSION: 1.0.0
# LICENSE: MIT License
@rbray89
rbray89 / configuration.yaml
Created January 6, 2017 02:50
Scripts and such for raspberry pi camera
#for use with mpeg.py
camera:
- platform: mjpeg
mjpeg_url: http://localhost:8500/picam.mjpg
#for use with h264.py
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg
run_test: True