Skip to content

Instantly share code, notes, and snippets.

View athasamid's full-sized avatar

Dhimas Atha Abdillah athasamid

View GitHub Profile
@athasamid
athasamid / .env
Created June 11, 2025 15:31
n8n_docker_compose
DOMAIN_NAME=localhost
SUBDOMAIN=
GENERIC_TIMEZONE=Asia/Jakarta
POSTGRES_DATABASE=n8n_local
POSTGRES_HOST=postgres
POSTGRES_USER=n8n
POSTGRES_SCHEMA=public
POSTGRES_PASSWORD=IniPasswordDatabase123
@athasamid
athasamid / perpustakaan.dart
Created October 4, 2022 07:39
Dart OOP Perpustakaan
import 'dart:io';
class Mahasiswa {
String? name;
int? nim;
String? address;
Mahasiswa({this.name, this.nim, this.address});
String toString() {
@athasamid
athasamid / rename.sh
Last active August 24, 2022 11:42
Rename File with bash
#!/bin/bash
# Rename file get 4 character from end
for file in *.*; do
filename="${file%%.*}"
ext="${file##*.}"
echo $ext
echo $filename
mv "${file}" "${filename: -4}.jpg";
done
{
"status_code" : 200,
"data" : [
{
"id": 1,
"title": "Title Image 1",
"content": "Lorem Ipsum Dolor Amit",
"type": "image",
"media": [
"https://picsum.photos/id/0/640/480"
@athasamid
athasamid / 256bit-shiftregister.ino
Created October 6, 2019 11:13 — forked from kleinejan/256bit-shiftregister.ino
256 bit shiftregister relay machine
#include "SSD1306.h"
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoJson.h>
#include <ShiftRegister74HC595.h>
long previousTime = 0;
long interval = 10000;
@athasamid
athasamid / stuns
Created February 13, 2019 07:57 — forked from yetithefoot/stuns
STUN+TURN servers list
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
@athasamid
athasamid / README.md
Created December 4, 2018 21:30 — forked from cr7pt0gr4ph7/README.md
Gradle Dependency Resolution

Gradle Dependency Resolution

Normal Gradle behavior

The default behavior of Gradle to pick the newest version also applies if a lower version has been declared locally, but another dependency transitively pulls in a newer version. This is in contrast with Maven, where a locally declared version will always win.

For example, if your build.gradle specifies the dependency org.springframework:spring-tx:3.2.3.RELEASE, and another dependency declares 4.0.5.RELEASE as a transitive dependency, then 4.0.5.RELEASE will take precedence:

dependencies {
    compile("org.springframework.data:spring-data-hadoop:2.0.0.RELEASE")
    compile("org.springframework:spring-tx:3.2.3.RELEASE")

// will select org.springframework:spring-tx:4.0.5.RELEASE