Skip to content

Instantly share code, notes, and snippets.

View AhnSeongHyun's full-sized avatar
🌮
taco is life

안성현 AhnSeongHyun

🌮
taco is life
View GitHub Profile
@pfote
pfote / AesCrypt.py
Created March 6, 2013 13:01
AES256 with PKCS5 padding
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from Crypto.Cipher import AES
import base64
import random
import hashlib
import os
class AesCrypt256:
@artbikes
artbikes / nginx-es.conf
Created March 21, 2012 21:27
nginx proxy for elasticsearch
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
@rduplain
rduplain / app.py
Created January 30, 2012 15:49
Serve a Flask app on a sub-url during localhost development.
"Serve a Flask app on a sub-url during localhost development."
from flask import Flask
APPLICATION_ROOT = '/spam'
app = Flask(__name__)
app.config.from_object(__name__)