This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
calibre: | |
image: lscr.io/linuxserver/calibre:latest | |
container_name: calibre | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- TZ=Etc/UTC | |
- CUSTOM_USER=vkku | |
- PASSWORD=081382 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm run build | |
git init | |
git status | |
git add . | |
it commit -m "Completed a pp" |
NewerOlder