Skip to content

Instantly share code, notes, and snippets.

View brianpeiris's full-sized avatar

Brian Peiris brianpeiris

View GitHub Profile
@welshstew
welshstew / build-complete.txt
Last active August 27, 2022 04:37
Generating and using ssl client certificates for use in an nginx sidecar image
[user@localhost certs]$ oc get builds
NAME TYPE FROM STATUS STARTED DURATION
nodejs-mongo-persistent-1 Source Git@e59fe75 Complete About an hour ago 2m37s
simple-nginx-ssl-reverseproxy-1 Source Git@552932f Complete 16 minutes ago 47s
@aliesbelik
aliesbelik / benchmarking-tools.md
Last active May 7, 2025 12:33
Benchmarking & load testing tools
@neozero
neozero / HomeUnhider.ahk
Last active December 6, 2017 23:55
Unhide Oculus Home window, enable keyboard and mouse input.
; Home Unhider
;
; Author: NeoZeroo
; www.emuvr.net
;
; Instructions:
;
; Just run it after Oculus Home is running, and it will show up.
; This doesn't keep running, it just unhides Home and exits instantly.
;
@jaburns
jaburns / findrefs.sh
Last active September 8, 2016 04:23
Find scene and prefab references to scripts in Unity.
#!/usr/bin/env bash
#
# Run from the project root. Pass the full name of a script, or substring of the names of the scripts to check.
#
# Example
# $) ./findrefs.sh BackgroundCamera
# Finding matches for script Assets/Scripts/Camera/BackgroundCamera.cs.meta ...
# Assets/Prefabs/CaveBGCamera.prefab: m_Script: {fileID: 11500000, guid: 7e63acfee367c4314852b87218149bd3, type: 3}
# Assets/Prefabs/ForestBGCamera.prefab: m_Script: {fileID: 11500000, guid: 7e63acfee367c4314852b87218149bd3, type: 3}
#
@brianpeiris
brianpeiris / .gitignore
Last active September 30, 2021 13:07
An AutoHotKey script for positioning and resizing windows
WindowsHelpers-Run-As-Admin.lnk
@endolith
endolith / readme.md
Last active March 27, 2025 16:57
How to stream a webcam to a web browser in Ubuntu

Grr this took hours to figure out. I was trying to install MJPG-streamer and running VLC command lines and all this crap but nothing worked.

First install motion:

~> sudo apt-get install motion

Then create a config file:

~> mkdir ~/.motion

~> nano ~/.motion/motion.conf