Skip to content

Instantly share code, notes, and snippets.

View nekoprog's full-sized avatar
:octocat:
I may be slow to respond.

Neko Prog nekoprog

:octocat:
I may be slow to respond.
View GitHub Profile
@cadadr
cadadr / scrcpy_webcam.markdown
Last active July 14, 2025 00:37
Use android phone as webcam using scrcpy, OpenCamera, and v4l2-loopback

Download Android SDK and put it under a known location. Get the appropriate commandlinetools package from this page. Then, extract it under ~/Android/.

mkdir -p ~/Android/Sdk
cd ~/Android
cp ~/Downloads/commandlinetools-linux-6858069_latest.zip .
unzip commandlinetools-linux-6858069_latest.zip
@markasoftware
markasoftware / enterprise_token.rb
Last active January 23, 2026 00:06
OpenProject Enterprise mode for free
############ If you are using DOCKER all-in-one image, create Dockerfile like: ################
############ FROM openproject/openproject:16 ################
############ COPY ./enterprise_token.rb app/models/enterprise_token.rb ################
############ If you are runing a manual installation: ################
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ If using some other set up (eg docker-compose), read the comments on ################
############ https://gist.github.com/markasoftware/f5b2e55a2c2e3abb1f9eefcdf0bfff45 ################
@pjobson
pjobson / openwrt_nanopi_r1.md
Last active May 8, 2025 17:35
Notes for OpenWRT on NanoPi R1

OpenWRT on NanoPi R1

This guide assumes you're using linux or some kind of OS with a shell, you can use Windows with some modifications.

Links

Install Latest OpenWRT

diff -rupN openlitespeed-1.4.12/configure.ac openlitespeed-1.4.12-ARM/configure.ac
--- openlitespeed-1.4.12/configure.ac 2015-10-19 14:37:38.000000000 -0400
+++ openlitespeed-1.4.12-ARM/configure.ac 2015-10-19 23:24:19.577309207 -0400
@@ -178,15 +178,21 @@ AC_ARG_WITH([libdir],
[OPENLSWS_LIBDIR="$withval"], [
OSTYPE=`uname -m`
OSNAME=`uname -s`
- if test "$OSNAME" != Linux ; then
- OPENLSWS_LIBDIR=lib
- else