Skip to content

Instantly share code, notes, and snippets.

View palanglung's full-sized avatar

Yudi Rahono palanglung

View GitHub Profile
@palanglung
palanglung / hello__DASH__world.py
Created December 6, 2018 17:43
Sample Python 3.7 AWS Lambda SAM template.
import json
def handler(event, context):
body = {
"message": "World",
"input": event
}
response = {
#!/usr/bin/env bash
# Loading Environment for Hook Data on Golang Prebuilt Elasticbeanstalk
# set some directory environment
EB_APP_USER=$(/opt/elasticbeanstalk/bin/get-config container -k app_user)
EB_APP_CURRENT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k app_deploy_dir)
EB_APP_STAGING_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k app_staging_dir)
# get config and eval environment variables
eval $(/opt/elasticbeanstalk/bin/get-config --output YAML environment | perl -ne "/^\w/ or next; s/: /=/; print qq|\$_|")

Keybase proof

I hereby claim:

  • I am palanglung on github.
  • I am palanglung (https://keybase.io/palanglung) on keybase.
  • I have a public key ASA7IAPKWLExkF3w3o6NyOnpUtrQDLMWKsCGd5RVieA7cQo

To claim this, I am signing this object:

// FiLE: app/js/main.js
(function(window, document){
window.HalalData = {
Views: {}
}
document.onready = function() {
}
@palanglung
palanglung / typography.css
Last active May 12, 2017 07:48
Effective Typography
/*------------------------------------*/
/*------------------------------------*/
/*------Effective Typography----------*/
/*------------------------------------*/
/*------------------------------------*/
/**
@authors: [info@mylaw.it, yudi@rahono.com]
**/
sudo apt-get update
sudo apt-get install docker.io
sudo docker pull dockerfile/ubuntu
sudo docker pull dockerfile/java
sudo docker pull dockerfile/elasticsearch
sudo docker pull dockerfile/redis
sudo docker pull dockerfile/mongodb
sudo docker pull dockerfile/mysql
sudo docker pull dockerfile/haproxy