Synchronize with service image registry (https://docs.docker.com/compose/compose-file/#image):
docker-compose pull Recreate container if docker-compose file or image have changed:
docker-compose up -d
Synchronize with service image registry (https://docs.docker.com/compose/compose-file/#image):
docker-compose pull Recreate container if docker-compose file or image have changed:
docker-compose up -d
| #!/bin/sh | |
| ssh [email protected] -t bash -ci "logs" >> report.log | |
| # Remove duplicated lines | |
| sort report.log | uniq > report_temp.log | |
| # replace new items | |
| mv -f report_temp.log report.log | |
| # generating reports |
| git clone https://github.com/sbs20/scanservjs | |
| sudo apt install -y nodejs | |
| sudo apt-get install npm sane-utils imagemagick` | |
| npm install | |
| npm install -g gulp-cli | |
| gulp | |
| cd ./build/scanservjs | |
| node /server.js |
| If you have a HP printer or scanner and you want to be able to use it on your Raspberryi Pi running the Raspbian operating system, you`ll have to install HP Linux Imaging and Printing and CUPS. | |
| In the terminal run the following commands: | |
| sudo su | |
| apt-get update | |
| apt-get install hplip cups | |
| usermod -a -G lpadmin pi | |
| In a browser, on the raspberry pi you can now access the CUPS configuration screen at http://127.0.0.1:631/ |
| version: '3' | |
| services: | |
| nginx: | |
| image: nginx:alpine | |
| ports: | |
| - "4040:80" | |
| volumes: | |
| - ./nginx.conf:/etc/nginx/nginx.conf | |
| - ./dist:/usr/share/nginx/html |
| Paste this in the console | |
| document.cookie="VISITOR_INFO1_LIVE=oKckVSqvaGw; path=/; domain=.youtube.com";window.location.reload(); |
| /* ! | |
| * Find the differences between two objects and push to a new object | |
| * @param {Object} obj1 The original object | |
| * @param {Object} obj2 The object to compare against it | |
| * @return {Object} An object of differences between the two | |
| */ | |
| export const getDiff = (obj1, obj2) => { | |
| // Make sure an object to compare is provided | |
| if (!obj2 || Object.prototype.toString.call(obj2) !== '[object Object]') { | |
| return obj1; |
| server { | |
| server_name test.com; | |
| gzip on; | |
| gzip_types application/javascript image/* text/css; | |
| gunzip on; | |
| location / { | |
| proxy_pass http://127.0.0.1:8000; | |
| proxy_set_header Host $host; |
| # RPI monitor | |
| docker run --device=/dev/vchiq \ | |
| --device=/dev/vcsm \ | |
| --volume=/opt/vc:/opt/vc \ | |
| --volume=/boot:/boot \ | |
| --volume=/sys:/dockerhost/sys:ro \ | |
| --volume=/etc:/dockerhost/etc:ro \ | |
| --volume=/proc:/dockerhost/proc:ro \ | |
| --volume=/usr/lib:/dockerhost/usr/lib:ro \ | |
| -p=8888:8888 \ |