Skip to content

Instantly share code, notes, and snippets.

View Kelniiit's full-sized avatar

Kelp Kelniiit

  • Seattle
  • 02:24 (UTC -07:00)
View GitHub Profile
<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
@Kelniiit
Kelniiit / GoogleCloudShell.sh
Created February 25, 2026 14:18
Google Cloud Shell
#!/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
@Kelniiit
Kelniiit / GooglePubSub.sh
Created February 25, 2026 14:17
Google Pub Sub
#!/bin/bash
# Create Topic
gcloud pubsub topics create PemiluTopic
# List of Topics
gcloud pubsub topics list
# Delete Topic
gcloud pubsub topics delete PemiluTopic