Monday, 29 November 2021

composer and docker docker-compose

 

composer:
image: composer:latest
container_name: fantise_composer
volumes:
- ./src:/var/www/html
working_dir: /var/www/html
depends_on:
- php
networks:
- fantise

npm:
image: node:13.7
container_name: fantise_npm
volumes:
- ./src:/var/www/html
working_dir: /var/www/html
entrypoint: ['npm']
site:
image: library/nginx:stable
container_name: fantise_nginx
ports:
- "61141:80"
volumes:
- ./src:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- php
- mysql
 
server {
listen 80;
index index.php index.html;
server_name localhost;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www/html/public;
client_max_body_size 0;
location / {
try_files $uri $uri/ /index.php?$query_string;

}

location ~ \.php$ {

try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass fantise_php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;

}
}

  location / {


   proxy_pass http://localhost:61141;
proxy_read_timeout 310s;
proxy_set_header Host $host;
proxy_set_header Forwarded "for=$remote_addr;proto=$scheme";
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Connection "";
client_max_body_size 0;
proxy_request_buffering off;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header SERVER_NAME $host

Friday, 26 November 2021

List of cool linux things

 cli

btop

Resource monitor that shows usage and stats for processor, memory, disks, network and processes.

https://github.com/aristocratos/btop
Screenshot 1
ranger 

ranger is a console file manager with VI key bindings. It provides a minimalistic and nice curses interface with a view on the directory hierarchy. It ships with rifle, a file launcher that is good at automatically finding out which program to use for what file type.

 https://github.com/ranger/rangerhttps://raw.githubusercontent.com/ranger/ranger-assets/master/screenshots/twopane.png


trash cli

trash-cli trashes files recording the original path, deletion date, and permissions. It uses the same trashcan used by KDE, GNOME, and XFCE, but you can invoke it from the command line (and scripts).



https://github.com/andreafrancia/trash-cli

ncdu

sudo apt-get install ncdu
 
ncdu - Wikipedia

 speedtest-cli

 https://github.com/sivel/speedtest-cli

 

Command line interface for testing internet bandwidth using speedtest.net

cheat.sh

 

 gooey

Joplin

 

https://joplinapp.org/

 Ulauncher

BitWarden

 

https://bitwarden.com/download/ 

MailSpring

https://getmailspring.com/

Stacer

https://oguzhaninan.github.io/Stacer-Web/