Skip to content

Instantly share code, notes, and snippets.

View shamaru001's full-sized avatar
🏠
Working from home

Shamaru Primera shamaru001

🏠
Working from home
View GitHub Profile
@trongnghia203
trongnghia203 / install_pyenv.md
Last active August 7, 2024 02:06
Install pyenv
@pantsel
pantsel / docker-compose.yml
Last active July 28, 2024 09:49
example docker-compose.yml for kong, postgres and konga
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong
@oktavianidewi
oktavianidewi / dockerize-simple-api.md
Last active September 12, 2019 21:09
Dockerize simple API from Node-JS

Dockerize NodeJS

a note on how to dockerize NodeJS tutorial source from this link

Write Dockerfile and Build Docker Locally

The docker container is launched based on a docker image, the docker image is created with instructions written in the Dockerfile. So we have to add Dockerfile to the directory in the application directory.

write these set of commands on your Dockerfile

FROM node:7
@thomasdarimont
thomasdarimont / app.py
Last active July 19, 2024 02:17
Simple python example using flask, flask_oidc and keycloak
import json
import logging
from flask import Flask, g
from flask_oidc import OpenIDConnect
import requests
logging.basicConfig(level=logging.DEBUG)
app = Flask(__name__)
@Yimiprod
Yimiprod / difference.js
Last active August 6, 2024 06:25
Deep diff between two object, using lodash
/**
* This code is licensed under the terms of the MIT license
*
* Deep diff between two object, using lodash
* @param {Object} object Object compared
* @param {Object} base Object to compare with
* @return {Object} Return a new object who represent the diff
*/
function difference(object, base) {
function changes(object, base) {
@DavidWells
DavidWells / reset.css
Last active August 21, 2024 03:06 — forked from karbassi/reset.css
CSS reset. Follow me on the twitters for more tips: https://twitter.com/davidwells
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,