Skip to content

Instantly share code, notes, and snippets.


PhillyBass fweller

View GitHub Profile
jaxxzer / pipelines.txt
Last active Dec 14, 2021
gstreamer pipelines
View pipelines.txt
// rtsp receivers:
gst-launch-1.0 rtspsrc location="rtsp://" protocols=GST_RTSP_LOWER_TRANS_TCP latency=0 ! rtph264depay ! decodebin ! videoconvert ! autovideosink sync=false
gst-launch-1.0 rtspsrc location=rtsp:// ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! autovideosink
// Stream video to window and record it to file
gst-launch-1.0 -e -v udpsrc port=5600 ! tee name=VIDEOWINDOW ! queue ! application/x-rtp, encoding-name=H264, payload=96 ! rtph264depay ! h264parse ! mp4mux ! filesink location=myvideo.mp4 VIDEOWINDOW. ! queue ! application/x-rtp, payload=96 ! rtph264depay ! avdec_h264 ! autovideosink
tanyuan /
Last active Sep 27, 2022
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

Caps Lock 變成智慧的 Control 以及 Escape

  • 單獨輕按一下就是 Escape
  • 若按下時同時按著其他鍵,就會是 Control

這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)

  • Send Escape if you tap Caps Lock alone.
antiproblemist /
Created Mar 14, 2016
Convert complete excel workbook to SQLite database (All Sheets)
This code uses the openpyxl package for playing around with excel using Python code
to convert complete excel workbook (all sheets) to an SQLite database
The code assumes that the first row of every sheet is the column name
Every sheet is stored in a separate table
The sheet name is assigned as the table name for every sheet
import sqlite3
import openpyxl