Skip to content

Instantly share code, notes, and snippets.

View Dagimal's full-sized avatar
👨‍💻
[dagimal@K4tsu ~]$

Daffa Gifari Akmal Dagimal

👨‍💻
[dagimal@K4tsu ~]$
View GitHub Profile
@Dagimal
Dagimal / twin-adapter-solution-vbox.md
Last active August 17, 2022 09:12
solusi untuk adapter nomor 2 tidak terdeteksi di ubuntu virtual box

solusi host dan guest bisa saling ping dan guest tetap mendapatkan akses internet.

  • adapter 1 : host only
  • adapter 2 : NAT

source : https://unix.stackexchange.com/questions/37122/virtualbox-two-network-interfaces-nat-and-host-only-ones-in-a-debian-guest-on In Ubuntu 18.04 host, VirtualBox 6.1, using Ubuntu 19.04 as guest

In the guest edit /etc/netplan/50-cloud-init.yaml file, add two lines as shown below (before the version line). Looks like the network configuration in the guest is set up only to handle one network and the second one has to be added manually

@Dagimal
Dagimal / sitemap-auto-append.py
Last active March 23, 2022 08:25
append sitemap url and deploy via CI/CD
"""
MIT License
Copyright (c) 2022 Dagimal
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@Dagimal
Dagimal / workbench.colorCustomizations
Created January 12, 2022 18:06
oprek vscode dagimal
{
"editor.minimap.renderCharacters": false,
"window.titleBarStyle": "custom",
"editor.fontWeight": "normal",
"editor.renderWhitespace": "all",
"workbench.colorTheme": "Seti Monokai",
"workbench.colorCustomizations": {
"editor.background": "#040709",
"editor.foreground": "#ffffff"
}
@Dagimal
Dagimal / devops-in-general.md
Created December 23, 2021 07:10
Memahami konsep DevOps secara umum

DevOps in general

komponen :

  • sistem operasi dan Linux
  • Networking & Security
    • Firewall, Proxy
    • Load balancer
    • HTTP/HTTPS
    • DNS/IP
  • Container
@Dagimal
Dagimal / build_twitter_audience.md
Created October 26, 2021 15:51
Membangun audience di Twitter

How to build an audience on Twitter

  1. Build in public
  2. Write threads
  3. Break down complex ideas
  4. Engage with your audience
  5. Schedule tweets
  6. Repost your best content
  7. Give without expectation
@Dagimal
Dagimal / zipping.sh
Created March 11, 2021 14:06
Menyatukan File dengan nama yang sama dalam satu file zip
for fname in *.*; do
prefix=${fname%.*}
[ ! -f "$fname" ] || [ -f "$prefix.zip" ] && continue
zip "$prefix" "$prefix".*
done
@Dagimal
Dagimal / cek_server.sh
Last active February 11, 2021 08:42
Perintah untuk mengecek server
curl -s -v https://namadomain 2>&1 | grep Server
@cmod
cmod / hugofastsearch.md
Last active November 22, 2025 07:03 — forked from eddiewebb/readme.md
Fast, instant client side search for Hugo static site generator
@nyancodeid
nyancodeid / commit-message-id.md
Last active December 3, 2025 01:07
Commit Message Guidelines

Pedoman Commit Message

Kami memiliki aturan yang sangat tepat tentang bagaimana pesan git commit kami dapat diformat. Ini mengarah ke pesan yang lebih mudah dibaca yang mudah diikuti ketika melihat melalui history proyek. Dan juga, kami menggunakan pesan git commit untuk menghasilkan log perubahan pada Angular.

Format Commit Message

Setiap pesan komit terdiri dari header, konten, dan catatan kaki. Judul memiliki format khusus yang mencakup jenis, cakupan, dan subjek:

<type>(<scope>): <subject>
<BLANK LINE>
@alucard001
alucard001 / GoogleIndexing.py
Created May 27, 2019 04:49
Google Indexing API V3 Working example with Python 3
from oauth2client.service_account import ServiceAccountCredentials
import httplib2
import json
import pandas as pd
# https://developers.google.com/search/apis/indexing-api/v3/prereqs#header_2
JSON_KEY_FILE = "json_key_file_downloaded_after_creating_your_google_service_account_see_above_details_on_how_to_do.json"
SCOPES = ["https://www.googleapis.com/auth/indexing"]