Skip to content

Instantly share code, notes, and snippets.

View ezsimple's full-sized avatar

minho0883.lee ezsimple

View GitHub Profile
@ezsimple
ezsimple / ansi.c
Created April 8, 2022 00:17
terminal ansi colors
// gcc ansi.c -o ansi && sudo mv ansi /usr/local/bin
#include <stdio.h>
int main(void){
int i, j, n;
for (i = 0; i < 11; i++) {
for (j = 0; j < 10; j++) {
n = 10 * i + j;
if (n > 107) break;
printf("\033[%dm %3d\033[m", n, n);
@ezsimple
ezsimple / README.md
Created February 10, 2022 11:22 — forked from dkurzaj/README.md
Docker compose Kafka, Zookeeper and Kafka manager

Docker compose Kafka, Zookeeper and Kafka manager

Gist inspired by this one intending to be an updated version of it : https://gist.github.com/17twenty/d619f922ab209f750630824f7c6836e3

Install

  • Create the environment variable that contains our host name (IP address) :
$ export EXPOSED_HOSTNAME=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1  -d'/')
  • Create the folders :
@ezsimple
ezsimple / index.html
Last active February 10, 2022 02:08 — forked from brenoferreira/index.html
Hello World in HTML with NodeJS
<!doctype html>
<html>
<body>
<p>Hello world! Node is awesome, is it not?</p>
</body>
</html>