-
-
-
-
- cd /home && LOG_FILE=laravel-$(date --date="tomorrow" +"%Y-%m-%d").log && [ ! -f $LOG_FILE ] && echo "" > $LOG_FILE
-
-
-
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
| /* | |
| IoTLabs ESP32 WiFi + MQTT (TLS) Core | |
| -------------------------------------------------- | |
| Yêu cầu: | |
| - Board: ESP32 (Arduino IDE) | |
| - Libraries: WiFi, WiFiClientSecure, PubSubClient | |
| - Device Info: Đã tạo device trên IoTLabs Dashboard và lấy thông tin kết nối MQTT thành công | |
| Ghi chú: | |
| - Code đã được đóng gói sẵn thành các hàm WiFi/MQTT “lõi”, rõ ràng và độc lập |
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
| /* | |
| ESP32 MQTT Integration (Arduino IDE) | |
| - Broker: mqtt.iotlabs.vn:8883 | |
| - Ping topic: send latest status without sensor data | |
| - Telemetry topic: send sensor data | |
| - TLS enabled (port 8883) for secure. | |
| Auth: | |
| - username: d_696309d71a367b6c5fb9663e | |
| - password: PASSWORD |
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
| "The best way to predict your future is to create it." —Abraham Lincoln. |
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
| # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
| name: Build Frontend Dev | |
| on: | |
| push: | |
| branches: ["main", "cicd", "dev/*"] | |
| pull_request: | |
| branches: ["main"] |
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
| FROM php:8.1-fpm | |
| # Arguments defined in docker-compose.yml | |
| ARG user=ubuntu | |
| ARG uid=1000 | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| curl \ |
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
| [Desktop Entry] | |
| Version=1.0 | |
| Type=Application | |
| Name=PhpStorm | |
| Icon=/home/super/Programs/PhpStorm-2021.3/bin/phpstorm.png | |
| Exec="/home/super/Programs/PhpStorm-2021.3/bin/phpstorm.sh" %f | |
| Comment=Develop with pleasure! | |
| Categories=Development;IDE; | |
| Terminal=false | |
| StartupWMClass=jetbrains-phpstorm |
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
| # | |
| ```shell | |
| sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1 | |
| ``` |
NewerOlder