Posts

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...

[Vugen] save param/ response

web_reg_save_param("RunStatus",    "LB=HTTP/1.1 ",    "RB=\n",    "Ord=1",    "NotFound=WARNING",    "Search=Headers",   LAST); using {RunStatus} to get the value.   It will return an array object. ------------------- web_reg_find("Search=Headers",    "SaveCount=SuccessCount",    "Text=200 OK",    LAST); using {SuccessCount} to value.   It will return integer. atoi(lr_eval_string("{SuccessCount}")) Reference [1]  https://www.perfmatrix.com/web_reg_save_param/ ========================== Set Timeout Syntax: web_set_timeout("STEP","20"); now the timeout is 20 Seconds... you need add this before the transaction Reference [1]  https://community.microfocus.com/t5/LoadRunner-Enterprise-User/Set-up-a-timeout-period-for-every-transaction-in-LR/td-p/636468 However, wininet doesn't accept any setting on vugen.  It needs to set ReceiveTimeout in registry to update timeout fo...

[Firebase] Free web

Image
We can create free webhosting using firebase. This is really nice and easy. Take a look the youtube link below.

[Firebase] ionic

Image
To connect firebase with ionic firebase login firebase init  Reference [1]  https://www.youtube.com/watch?v=fiRmjngNALA

[React] How to create web application

Image
This blog is going to tell you how to create the web application using React.js 1. Go to react website to get first tutorial https://reactjs.org/tutorial/tutorial.html - Make sure you have a recent version of Node.js installed. - Follow the installation instructions for Create React App to make a new project. Install NodeJS Node >= 8.10 (v13.5.0) and npm >= 5.6 (6.13.4) on your machine. To create a project, run: npx create-react-app my-app  cd my-app  npm start This will let you go to url :  http://localhost:3000/ 2. Install YARN > npm install -g yarn 2. Add bootstrap go to react  https://reactstrap.github.io/ > npm install --save reactstrap react react-dom > npm install --save bootstrap or > yarn add bootstrap reactstrap 4. Add AXIOS > npm install axios --save 5. Add .env to root folder     Define key and value as needed e.g. PORT=3001 Alternative Re...

[Grandma] Run Web & API

Image
Forever We use forever to make server run all the time > sudo npm install -g forever > forever list > forever stop 0 > forever restart 0 > forever -w server.js> forever server.js > forever yarn https Reference [1]  https://www.npmjs.com/package/forever [2]  https://stackoverflow.com/questions/12701259/how-to-make-a-node-js-application-run-permanently 1. Web > node server.js or > forever start -c "node server.js" ./ 2. API > npm start > yarn https or >  forever start -c "npm start" ./ > To support https in loopback