Skip to content

Instantly share code, notes, and snippets.

@daweeed
daweeed / hostapd
Last active August 29, 2015 14:19
#! /bin/sh -e
DAEMON="sudo /usr/sbin/hostapd"
daemon_OPT="/etc/hostapd/hostapd.conf"
DAEMONUSER="poppy"
daemon_NAME="hostapd"
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
test -x $DAEMON || exit 0
@daweeed
daweeed / poppy-pip-github-install.sh
Last active August 29, 2015 14:19
Installling (or updating) Poppy libraries from github repos using PIP
#! /bin/bash
# It will install all libs in ~/dev/
# from github repositories
# using pip install git & svn
# Uninstall lib if you want to update
pip uninstall pypot poppy_humanoid poppy-ergo
# Install pypot
pip install -e git+https://github.com/poppy-project/pypot.git#egg=pypot --src=/home/$USER/dev/
@daweeed
daweeed / update-poppy.sh
Created April 14, 2015 16:44
Update poppy-humanoid and pypot libraries
#! /bin/bash
# uninstall both repo
pip uninstall pypot poppy-humanoid
# clone git repository into the correct folder:
git clone https://github.com/poppy-project/pypot.git ~/dev/pypot
git clone https://github.com/poppy-project/poppy-humanoid.git ~/dev/poppy-humanoid
# reinstall packages