Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View awesomebytes's full-sized avatar

Sam Pfeiffer awesomebytes

View GitHub Profile
@awesomebytes
awesomebytes / Dockerfile
Created May 3, 2018 09:15 — forked from Tryum/Dockerfile
Dockerfile to build 32 bit Docker container, for 32 bit docker daemon dev
# This file describes the standard way to build Docker, using docker
#
# Usage:
#
# # Assemble the full dev environment. This is slow the first time.
# docker build -t docker .
#
# # Mount your source in an interactive container for quick testing:
# docker run -v `pwd`:/go/src/github.com/docker/docker --privileged -i -t docker bash
#
@awesomebytes
awesomebytes / Dockerfile
Created May 3, 2018 08:18 — forked from dan-1d/Dockerfile
Dockerfile to build 32 bit Docker container, for 32 bit docker daemon dev version 17.04.0-ce
# This file describes the standard way to build Docker, using docker
#
# Usage:
#
# # Assemble the full dev environment. This is slow the first time.
# docker build -t docker .
#
# # Mount your source in an interactive container for quick testing:
# docker run -v `pwd`:/go/src/github.com/docker/docker --privileged -i -t docker bash
#
@awesomebytes
awesomebytes / HTTPWebSocketsHandler.py
Created January 8, 2016 10:21 — forked from SevenW/HTTPWebSocketsHandler.py
HTTPWebSocketsHandler extends SimpleHTTPServer with WebSockets enabling the use of HTTP and WebSockets throught the same port
'''
The MIT License (MIT)
Copyright (C) 2014, 2015 Seven Watt <info@sevenwatt.com>
<http://www.sevenwatt.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#!/bin/bash
PIP_PKG=$1
if [ -z $PIP_PKG ]; then
echo "Usage is $0 python_pkg_name"
exit -1
fi
INSTALL_DIR=`mktemp -d`
cd $INSTALL_DIR
DEB_NAME="pal-python-"`echo $PIP_PKG | sed s/_/-/`