Skip to content

Instantly share code, notes, and snippets.

View pgonee's full-sized avatar
🎯
Focusing

EUNJO WI pgonee

🎯
Focusing
View GitHub Profile
@pgonee
pgonee / container_settings.json
Created December 3, 2015 06:13
ss shop container settings
{
"_comment": "FOR DETAILED FORMAT LOOK AT https://docs.docker.com/reference/api/docker_remote_api_v1.16/#create-a-container",
"AttachStdin": true,
"OpenStdin": true,
"Cmd": [
"/usr/sbin/apachectl",
"-e",
"info",
"-DFOREGROUND"
],
@pgonee
pgonee / 0_reuse_code.js
Created October 22, 2015 07:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@pgonee
pgonee / apis_router.py
Last active August 6, 2020 11:41
flask rest api versioning
# -*- coding: utf-8 -*-
from flask import request, Blueprint, jsonify, Response
from werkzeug.routing import Map, Rule
import json
import traceback
"""
# TODO: 함수명 중복을 피하기 위해 __v를 붙였는데 맘에 안듬..
# TODO: 버전을 입력하지 않았을 때는 최신 버전으로..
@pgonee
pgonee / a.py
Created October 21, 2013 09:50
get google play version.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from BeautifulSoup import BeautifulSoup
import urllib2
url = 'https://play.google.com/store/apps/details?id=kr.co.quizzes.quizzes'
handle = urllib2.urlopen(url)
data = handle.read()
soup = BeautifulSoup(data)
@pgonee
pgonee / backup_config.json
Created October 18, 2013 01:57
redis backup script.
{
"rdb_file": "/Users/pgonee/dump.rdb",
"backup_path": "/Users/pgonee/tmp/redis_backup"
}