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 / playButton.py
Created November 12, 2022 18:12
add play button to image for clickbait 😹
# example
@Dagimal
Dagimal / command.sh
Created November 3, 2022 21:27
Link scraper with pagination
awk '/resep/' link > link2
@Dagimal
Dagimal / fantastic-bash-command
Created July 19, 2022 06:22
fantastic bash command : cool command collection on bash shell
```sh
_____ _ _ _
| __|___ ___| |_ ___ ___| |_|_|___
| __| .'| | _| .'|_ -| _| | _|
|__| |__,|_|_|_| |__,|___|_| |_|___|
+++ Bash Command +++
```
@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 / git-branch.txt
Created January 15, 2022 06:51
Add git branch name to bash prompt
Display git branch name
Add following lines to your ~/.bash_profile
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
In here parse_git_branch() function extract the branch name when your are in git repository. This function output used in PS1 variable in order to prompt the branch name.
@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 / heimdall_command.txt
Created September 17, 2021 11:27
Heimdall command for flashing ROM
heimdall flash --BOOT boot.img --CACHE cache.img --PIT tab4.pit --RADIO modem.bin --PARAM param.bin --BOOTLOADER sboot.bin --RECOVERY recovery.img --SYSTEM system.img --HIDDEN hidden.img