Skip to content

Instantly share code, notes, and snippets.

View vkku's full-sized avatar
🎯
Focusing

Vivek Kumar vkku

🎯
Focusing
View GitHub Profile
[Unit]
Description=Docker Compose Service
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
ExecStart=/usr/local/bin/docker-compose -f /path/to/docker-compose.yml up -d
WorkingDirectory=/path/to/docker/compose/project
services:
calibre:
image: lscr.io/linuxserver/calibre:latest
container_name: calibre
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- CUSTOM_USER=vkku
- PASSWORD=081382
@vkku
vkku / motion.txt
Last active January 8, 2023 17:48
apt get install motion
sudo systemctl start motion
#Delete /var/log/motion/motion.log if it already exists
sudo service motion status
sudo systemctl stop motion
308 git clone https://github.com/janeczku/calibre-web.git
310 cd calibre-web/
312 pip3 install --target vendor -r requirements.txt
#https://stackoverflow.com/questions/55116381/modulenotfounderror-no-module-named-flask
pip uninstall flask && python -m pip install flask
313 python3 cps.py
#Create users from CLI
calibre-server --userdb /srv/calibre/users.sqlite --manage-users
#Run authenticated server
calibre-server --userdb /srv/calibre/users.sqlite --enable-auth
#Run as content server
#To see this in action, visit http://localhost:8080/calibre
calibre-server --url-prefix /calibre --port 8080
#Run from specific path
calibre-server calibre-library
@vkku
vkku / mosh-ssh.txt
Last active January 15, 2024 11:28
https://bitlaunch.io/blog/getting-started-with-mosh/
sudo apt-get install -y mosh
sudo ufw allow 60000:61000/udp
sudo ufw status numbered
998 brew install mosh
999 mosh
1007 locale
1008 export LC_ALL=en_US.UTF-8
1009 export LANG=en_US.UTF-8
1010 locale
1051 brew install putty
1052 puttygen ~/Downloads/raspi-private.ppk -O private-openssh raspi.pem
1053 puttygen ~/Downloads/raspi-private.ppk -O private-openssh -o raspi.pem
1054 chmod 400 ~/Downloads/raspi.pem
1055 chmod 400 ~/.ssh/raspi.pem
1056 ssh-add ~/.ssh/raspi.pem
https://speed.cloudflare.com/
fast.com
speedtest.com
https://speedtest.xfinity.com/
https://www.google.com/search?q=SpeedTest
http://speedtest-blr1.digitalocean.com/
http://www.dslreports.com/speedtest
https://www.dost.rest/ping
ubuntu:~/environment $ history
2 sudo add-apt-repository ppa:ubuntugis/ppa
3 sudo apt-get update
4 sudo apt-get install python-numpy gdal-bin libgdal-dev
5 sudo rm /var/lib/apt/lists/lock
6 sudo apt-get install python-numpy gdal-bin libgdal-dev
7 gdal-config --version
10 pip3 install numpy GDAL==2.4.2
22 pip3 install --upgrade pip
30 pip install opencv-python
@vkku
vkku / FullStackReactCommands.txt
Last active February 3, 2020 23:08
Leverage React, Node.js, MongoDB, and AWS to Create a Full-Stack Site
npm run build
git init
git status
git add .
it commit -m "Completed a pp"