Skip to content

Instantly share code, notes, and snippets.

version: "3.5"
services:
mongo-config-server1:
image: mongo:4.2
container_name: mongo-config-server1
command: mongod --configsvr --replSet rnd-config-replica-set --port 27019
mongo-config-server2:
image: mongo:4.2
@msramdan
msramdan / docker-compose.yml
Created May 25, 2022 23:11 — forked from nicoavila/docker-compose.yml
Docker Compose file for a MySQL 5.7 container
version: '3.3'
services:
database:
image: mysql:5.7
container_name: mysql
restart: always
environment:
MYSQL_DATABASE: 'db'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'password'
@msramdan
msramdan / script.php
Created January 30, 2021 18:42 — forked from guangrei/script.php
[PHP] pengecekan tanggal merah berdasarkan hari libur nasional dan hari minggu
<?php
//default time zone
date_default_timezone_set("Asia/Jakarta");
//fungsi check tanggal merah
function tanggalMerah($value) {
$array = json_decode(file_get_contents("https://raw.githubusercontent.com/guangrei/Json-Indonesia-holidays/master/calendar.json"),true);
//check tanggal merah berdasarkan libur nasional
if(isset($array[$value]))
: echo"tanggal merah ".$array[$value]["deskripsi"];