Skip to content

Instantly share code, notes, and snippets.

View biwin's full-sized avatar
🎯
Focusing

Biwin Joseph biwin

🎯
Focusing
View GitHub Profile
@biwin
biwin / enc_dec_test.py
Last active April 29, 2016 04:07 — forked from justinfx/enc_dec_test.py
Speed test of common serializers on python 2.7.8 cartridge on OpenShift (pickle, cPickle, ujson, cjson, simplejson, json, yajl, msgpack)
"""
Dependencies:
pip install tabulate simplejson python-cjson ujson yajl msgpack-python
"""
from timeit import timeit
from tabulate import tabulate
@biwin
biwin / reserved_usernames.rb
Created February 10, 2017 14:23 — forked from caseyohara/reserved_usernames.rb
A list of reserved usernames to avoid vanity URL collision with resource paths
# A list of possible usernames to reserve to avoid
# vanity URL collision with resource paths
# It is a merged list of the recommendations from this Quora discussion:
# http://www.quora.com/How-do-sites-prevent-vanity-URLs-from-colliding-with-future-features
# Country TLDs found here:
# http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
# Languages found here:
@biwin
biwin / reserved-words.txt
Created February 10, 2017 14:40 — forked from zachrose/reserved-words.txt
URL paths to reserve in a web app
about
admin
blog
calendar
contact
copyright
dashboard
email
errors
events
@biwin
biwin / gist:835a2647105d64158f3ca01d8710cbbf
Created January 27, 2018 07:52 — forked from agriffis/gist:2481292
.bashrc.virtualenvwrapper
# Dynamically load virtualenvwrapper functions to reduce shell startup
# time.
#
# Copyright 2012 Aron Griffis <aron@arongriffis.com>
# Released under the GNU GPL v3
#######################################################################
# Python virtualenvwrapper loads really slowly, so load it on demand.
if [[ $(type -t workon) != function ]]; then
virtualenv_funcs=( workon deactivate mkvirtualenv )
@biwin
biwin / Dockerfile
Last active January 15, 2019 16:36 — forked from balachandarlinks/Dockerfile
Dockerfile for https://github.com/gojuno/mainframer remote android build system.
FROM ubuntu:18.04
MAINTAINER Biwin John KM "biwinjohn@gmail.com"
ENV TZ=Europe/Minsk
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Install java8
RUN apt-get update && \
apt-get install -y software-properties-common && \