Posts

Showing posts from May, 2021

Curl

  Open Chrome Developer Tools, go to Network tab, make your request (you may need to check "Preserve Log" if the page refreshes). Find the request on the left, right-click, "Copy as cURL". Paste into curl.sh > bash curl.sh How to convert curl to scrapy https://michael-shub.github.io/curl2scrapy/ ================== > curl -c cookie.txt https://bizportal.go.th/th/Intro > curl -b cookie.txt https://bizportal.go.th/

[Laravel] DigitalPass

'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon https://stackoverflow.com/questions/40459280/docker-cannot-start-on-windows https://medium.com/@jinawongjino/%E0%B8%A1%E0%B8%B2%E0%B8%97%E0%B8%B3-docker-environment-%E0%B8%81%E0%B8%B1%E0%B8%9A-laravel-project-%E0%B8%81%E0%B8%B1%E0%B8%99-25feb02e720f 1.  docker-compose up -d --build   2. set .env #docker build -t <project-name> . #e.g.  docker build -t bizportal . #docker run -dp 3000:3000 <project-name> #e.g. docker run -dp 3000:3000 bizportal/server #How to rename container docker rename admiring_grothendieck bizportal #How to rename image docker image tag 44db5143cbd bizportal/server:latest https://docs.docker.com/get-started/ ==================== > wsl > code . =================== install nginx https://phoenixnap.com/kb/how-to-install-nginx-on-ubuntu-20-04 ==================== sudo apt install php7.4-cli sudo apt-get update sudo apt-get install php-mbstring ------------------ composer requi...