Skip to content

Instantly share code, notes, and snippets.

View restureese's full-sized avatar
😊

Ariska Restu Ginanjar restureese

😊
  • Yogyakarta - Banjarnegara
View GitHub Profile
@restureese
restureese / KongJwt.md
Created October 5, 2020 09:02 — forked from martinheld/KongJwt.md
Short example to use JWT with Kong

JWT Kong Example

  • Get and Start Kong and Co
git clone [email protected]:Mashape/docker-kong.git
cd docker-kong/compose
docker-compose up
  • Create Kong API Route
@restureese
restureese / readme.md
Created July 21, 2020 03:37 — forked from mowings/readme.md
ffmpeg stream and save video from Dahua 4300s IP Camera

Use ffmpeg to stream video from a dahua 4300s to a file or files

You can use ffmpeg to directly pull frames off of a dahua 4300s at full resolution. May be a good alternative to pricey dvrs which likely cannot record at full resolution, may not work with the camera, or are prohibitevly expensive

Simple Stream to file

Simple stream to file. Full resolution

ffmpeg -loglevel debug -rtsp_transport tcp -i "rtsp://admin:[email protected]:554/live" \

-c copy -map 0 foo.mp4

@restureese
restureese / update_multi_rows.py
Created February 26, 2020 03:41
SQLAlchemy update multiple rows
db.session.query(Model).\
filter(Model.id == id).\
update({Model.deleted_at:datetime.now()}, synchronize_session = False)