Skip to content

Instantly share code, notes, and snippets.

View callTx's full-sized avatar
🏠
Working from home

Daniel F. callTx

🏠
Working from home
View GitHub Profile
@sarthology
sarthology / regexCheatsheet.js
Created January 10, 2019 07:54
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
@bagong
bagong / msys2-gstreamer
Last active February 11, 2022 12:51
gstreamer msys2 dll's and dependencies for deployment (mingw64)
## Gstreamer itself
Pretty much everything in mingw64/lib/gstreamer-1.0 and all libraries with prefix libgst in mingw64/bin
$ pacman -Fl mingw-w64-x86_64-{gstreamer,gst-{libav,plugins-{good,base,bad}}} | grep mingw64/.*\.dll$
mingw-w64-x86_64-gstreamer mingw64/bin/libgstbase-1.0-0.dll
mingw-w64-x86_64-gstreamer mingw64/bin/libgstcheck-1.0-0.dll
mingw-w64-x86_64-gstreamer mingw64/bin/libgstcontroller-1.0-0.dll
mingw-w64-x86_64-gstreamer mingw64/bin/libgstnet-1.0-0.dll
mingw-w64-x86_64-gstreamer mingw64/bin/libgstreamer-1.0-0.dll