Skip to content

Instantly share code, notes, and snippets.

@vincentfretin
vincentfretin / flatten_redux.bash
Last active August 29, 2015 14:27
Flatten redux and react-redux for react native playground
cd /tmp
npm install redux@1.0.1
cat node_modules/redux/src/createStore.js node_modules/redux/src/utils/* > redux.js
sed -e 's@^export default @@' -e 's@^export @@' -e 's@^import.*@@' \
-e 's@`"${actionType.toString()}"`@actionType.toString()@' \
redux.js >redux_wo_import_export.js
cat << "EOF" >> redux_wo_import_export.js
@vincentfretin
vincentfretin / check_containers.bash
Created August 17, 2015 12:30
script to check all your ubuntu(debootstrap):14.04 containers for updates, uses https://github.com/mafr/docker-update-check
./update-check run
./update-check update
for container in `docker ps -q`; do
./update-check check $container
docker inspect --format '{{.Name}}' $container
done