Skip to content

Instantly share code, notes, and snippets.

Avatar

Hikmah Gumelar hikmahgumelar

  • Jakarta
View GitHub Profile
@hikmahgumelar
hikmahgumelar / .gitlab-ci.yml
Created Nov 21, 2019 — forked from jlis/.gitlab-ci.yml
AWS ECS and ECR deployment via Docker and Gitlab CI
View .gitlab-ci.yml
image: docker:latest
variables:
REPOSITORY_URL: <AWS ACCOUNT ID>.dkr.ecr.eu-central-1.amazonaws.com/<ECS REPOSITORY NAME>
REGION: eu-central-1
TASK_DEFINTION_NAME: <TASK DEFINITION NAME>
CLUSTER_NAME: <CLUSTER NAME>
SERVICE_NAME: <SERVICE NAME>
services:
@hikmahgumelar
hikmahgumelar / redis-backup.sh
Created Nov 19, 2018 — forked from acenqiu/redis-backup.sh
redis rdb backup script
View redis-backup.sh
#!/bin/bash
#
## redis backup script
## usage
## redis-backup.sh port backup.dir
port=${1:-6379}
backup_dir=${2:-"/data/backup/redis"}
cli="/usr/local/bin/redis-cli -p $port"
@hikmahgumelar
hikmahgumelar / expedia.py
Created Sep 5, 2018 — forked from scrapehero/expedia.py
Python 2 code to extract flight details from expedia.com
View expedia.py
import json
import requests
from lxml import html
from collections import OrderedDict
import argparse
def parse(source,destination,date):
for i in range(5):
try:
url = "https://www.expedia.com/Flights-Search?trip=oneway&leg1=from:{0},to:{1},departure:{2}TANYT&passengers=adults:1,children:0,seniors:0,infantinlap:Y&options=cabinclass%3Aeconomy&mode=search&origref=www.expedia.com".format(source,destination,date)
View keybase.md

Keybase proof

I hereby claim:

  • I am hikmahgumelar on github.
  • I am hikmahgumelar (https://keybase.io/hikmahgumelar) on keybase.
  • I have a public key ASCbtOfZZMuXGhWvoohoZq-kAHTo56ubk9xuzZzh3CNIIgo

To claim this, I am signing this object:

@hikmahgumelar
hikmahgumelar / gist:704ef7df5c1dff6ebf7f
Created Mar 29, 2016 — forked from dirkk0/gist:5967221
Enabling CORS in Angular JS with NodeJS/Express
View gist:704ef7df5c1dff6ebf7f
// in AngularJS (client)
myApp.config(['$httpProvider', function($httpProvider) {
$httpProvider.defaults.useXDomain = true;
delete $httpProvider.defaults.headers.common['X-Requested-With'];
}]);
// in Express/nodeJS