Skip to content

Instantly share code, notes, and snippets.

View moomdate's full-sized avatar
🍋
~/.profile

moomdate moomdate

🍋
~/.profile
  • kanchanaburi
View GitHub Profile
@moomdate
moomdate / container_ip.bash
Created May 30, 2020 07:26 — forked from zainengineer/container_ip.bash
Get docker container ip
#!/usr/bin/env bash
#inside docker container
HOST_IP=$(/sbin/ip route|awk '/default/ { print $3 }')
CONTAINER_IP=$(curl "$HOST_IP:8000" 2>/dev/null)
echo "container ip is $CONTAINER_IP"
@moomdate
moomdate / java_vs_kotlin.md
Created April 19, 2020 07:43 — forked from AnthonyNahas/java_vs_kotlin.md
Java vs Kotlin - the quick comparison

1. Types and Operators

Java

// variable
int x = 1;

// constant
final int y = 2;