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
@nekoprog
nekoprog / enterprise_token.rb
Created January 21, 2026 04:38 — forked from markasoftware/enterprise_token.rb
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 ################
@nekoprog
nekoprog / deno_fresh_prisma_orm_mssql_database.md
Last active May 20, 2025 03:39
Deno Fresh + Prisma ORM + MSSQL

Deno Fresh with Prisma ORM and MSSQL

  1. Add this line in deno.json
{
  "nodeModulesDir": "auto",
}
@nekoprog
nekoprog / git-cmd.txt
Last active November 19, 2023 13:31
Git common command
rm -rfv .git
git init -b main
git add .
git commit -m "First commit"
git remote add origin https://github.com/REPO.git
gh auth login
git push origin main
@nekoprog
nekoprog / scrcpy_webcam.markdown
Created October 17, 2023 05:08 — forked from cadadr/scrcpy_webcam.markdown
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
@nekoprog
nekoprog / Python-Kivy.txt
Last active January 28, 2023 12:53
Python Kivy KivyMD Buildozer
python.org
kivy.org
https://kivymd.readthedocs.io Material Design (Android style UI)
https://kivy-cupertino.readthedocs.io Cupertino (iOS style UI)
https://buildozer.readthedocs.io (APK compile)
logcat *:S python:D
.buildozer/android/platform/python-for-android/pythonforandroid/bootstraps/common/build/templates/gradle.tmpl.properties
Android API SDK NDK
https://developer.android.com/studio/releases/platforms
@nekoprog
nekoprog / lakka.txt
Last active November 25, 2022 13:51
LAKKA
Build Image:
git clone https://github.com/libretro/Lakka-LibreELEC
cd Lakka-LibreELEC
DISTRO=Lakka PROJECT=RPi DEVICE=RPi2 ARCH=arm make image
Upgrade Image:
cd Lakka-LibreELEC
git pull
rm -rf target
DISTRO=Lakka PROJECT=RPi DEVICE=RPi2 ARCH=arm make image
@nekoprog
nekoprog / k3s.txt
Created November 13, 2022 13:13
K3s + Rancher
sudo nano /etc/nginx/nginx.conf
load_module /usr/lib/nginx/modules/ngx_stream_module.so;
events {}
stream {
upstream k3s_servers {
server 192.168.0.10:6443;
server 192.168.0.11:6443;
@nekoprog
nekoprog / listen.txt
Created November 10, 2022 07:12
List listen port
sudo netstat -ltpn
@nekoprog
nekoprog / install-python3-node-npm-yarn.sh
Last active May 8, 2021 15:23
Install Python3 Node NPM and Yarn into Shared Web Hosting
#Prep
touch ~/.bashrc
echo 'export PATH=$HOME/.local/bin:$PATH' >> ~/.bashrc
ln -s ~/.bashrc -> ~/.bash_profile
ln -s ~/.bashrc -> ~/.profile
mkdir ~/.local
mkdir ~/.tmp
echo prefix = ~/.local >> ~/.npmrc
echo prefix = ~/.local >> ~/.yarnrc
. ~/.bashrc
@nekoprog
nekoprog / xz.txt
Created November 18, 2019 11:05
XZ (De)Compress
Compress
xz -zk9evv -T 0 <input file>
Decompress
xz -dkvv -T 0 <input file>