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
| name: 🚀 Deploy File to cPanel | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| FTP-Deploy-Action: | |
| name: 🎉 Deploy | |
| runs-on: ubuntu-latest |
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
| RewriteEngine On | |
| RewriteCond %{HTTPS} off | |
| RewriteRule ^(folder1|folder2|folder3) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
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
| RewriteEngine On | |
| RewriteCond %{HTTP_HOST} ^myfirstdomain.com [NC] | |
| RewriteCond %{HTTPS} off | |
| RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
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
| RewriteEngine On | |
| RewriteCond %{HTTPS} off | |
| RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
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
| <html> | |
| <head> | |
| <title>MobileNet Introduction</title> | |
| <!-- Import script --> | |
| <script src="https://unpkg.com/@tensorflow/tfjs@1.2.8" type="text/javascript"></script> | |
| <script src="https://unpkg.com/@tensorflow-models/mobilenet@2.0.4" type="text/javascript"></script> | |
| </head> | |
| <body> |
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
| <script> | |
| // Step 1: Load the model. | |
| mobilenet.load().then(net => { | |
| // Step 2: Grab and classify | |
| const theImage = document.getElementById('img') | |
| net.classify(theImage).then(result => { | |
| // Step 3: Print top result | |
| document.getElementById('message').innerText = ` | |
| Detected: ${result[0].className} | |
| Probability: ${result[0].probability}` |
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
| <script> | |
| // Step 1: Load the model. | |
| mobilenet.load().then(net => { | |
| console.log('Model loaded to memory!') | |
| }) | |
| </script> |
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
| <html> | |
| <head> | |
| <title>MobileNet Introduction</title> | |
| <!-- Import script --> | |
| <script src="https://unpkg.com/@tensorflow/tfjs@1.2.8" type="text/javascript"></script> | |
| <script src="https://unpkg.com/@tensorflow-models/mobilenet@2.0.4" type="text/javascript"></script> | |
| </head> | |
| <body> |
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
| <html> | |
| <head> | |
| <title>MobileNet Introduction</title> | |
| </head> | |
| <body> | |
| <h1 id="message">Hello, I'm a simple web page!</h1> | |
| </body> |
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
| --- | |
| deployment: | |
| tasks: | |
| - export DEPLOYPATH=/home/cpanelUser/public_html/ | |
| - /bin/cp -R * $DEPLOYPATH | |