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> | |
| $(document).ready(function () { | |
| // Tanggal Awal dan Akhir | |
| const today = new Date(); | |
| const sevenDaysAgo = new Date(); | |
| sevenDaysAgo.setDate(today.getDate() - 7); | |
| const formatDate = (date) => date.toISOString().split("T")[0]; | |
| $('#start_date').val(formatDate(sevenDaysAgo)); | |
| $('#final_date').val(formatDate(today)); | |
| // Auto on Ready |
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
| #!/bin/bash | |
| # Get Project ID on Current Project | |
| gcloud config get-value project | |
| # Set Compute Region | |
| gcloud config set compute/region region | |
| # Get Project Region | |
| gcloud config get-value compute/region |
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
| #!/bin/bash | |
| # Create Topic | |
| gcloud pubsub topics create PemiluTopic | |
| # List of Topics | |
| gcloud pubsub topics list | |
| # Delete Topic | |
| gcloud pubsub topics delete PemiluTopic |