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 / technology_notes.md
Created September 5, 2021 09:15
Catatan tentang teknologi development

Installer Bundle Software

  • NSIS
  • Inno Setup Compiler
@Dagimal
Dagimal / tunctl.md
Last active June 8, 2021 04:26
Buat interface loopback menggunakan TAP
$ sudo iptables -t nat -A POSTROUTING -o tap0 -j MASQUERADE
$ sudo iptables -A FORWARD -i tap0 -j ACCEPT
@Dagimal
Dagimal / loading_animation.py
Created May 18, 2021 05:17
simple loading animation for python
from itertools import cycle
from shutil import get_terminal_size
from threading import Thread
from time import sleep
class Loader:
def __init__(self, desc="Loading...", end="Done!", timeout=0.1):
"""
A loader-like context manager
@Dagimal
Dagimal / csv_bing_image_url.py
Last active May 15, 2021 14:45
scrape image urls from bing search engine from .csv file
# ///////////////////////////////////////////////////
# Bing Image URL Search
# Created by Dagimal
# v0.1
# --- Search & Grab URL From Bing Search Engine ---
# //////////////////////////////////////////////////
# CTRL + Z for kill process
import random
@Dagimal
Dagimal / ip_checker.sh
Created May 14, 2021 12:15
Check IP Address using CURL
curl http://checkip.amazonaws.com/
@Dagimal
Dagimal / zip_limit.sh
Created March 27, 2021 05:11
bypass zip bash limit
find . -name '*.zip' -print | zip namazip.zip -@
@Dagimal
Dagimal / ssh_config.txt
Created March 27, 2021 04:45
ssh config
Host ubuntu
HostName [your server IP]
User ubuntu
IdentityFile [your identity file]
Host singapore
HostName [your server IP]
User ubuntu
IdentityFile [your identity file]
@Dagimal
Dagimal / splitter.sh
Created March 18, 2021 13:14
Text File Splitter with file extension
split -l 1000 -d --additional-suffix=.txt file.txt split_file
@Dagimal
Dagimal / json_extractor.py
Last active March 18, 2021 05:17
untuk extract value pada file json
# JSON EXTRACTOR
## Untuk mengambil value dari json, contohnya client_email
## Pastikan tidak ada file yang kosong
import json
for file in range(10):
with open("key_" + str(file) + ".json") as json_file:
json_data = json.load(json_file)
print(json_data['client_email'])
@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