Skip to content

Instantly share code, notes, and snippets.

View con-f-use's full-sized avatar
💭
😱

con-f-use

💭
😱
  • A University, An IT Firm
  • Europe
View GitHub Profile
#!/usr/bin/python
# Let's call this file 'mymodule.py'
# When run from the 'shell application' created by setuptools,
#+only doctests for `main()` get run, while `to_be_tested()` is
#+ignored `mymoduleapp -test`.
# Testing for both functions works, when run direcly as shell
# script, e.g. as `./mymodule.py --test`
# Used python version: Python 2.7.12 (setuptools 20.7.0)
Moved to https://github.com/con-f-use/img2ngrv
@con-f-use
con-f-use / esp-clone.sh
Last active November 20, 2017 20:47
Automatically clone and build repositories related to the esp8266 sdk
#!/bin/bash
# Build the esp 8266 open-sdk and related tools in current directory.
#
# Tested on Ubuntu 16.04.1 and 14.04.4/5.
# It takes up to an hour to build and several GB of space, so be prepared!
#
# Use it with:
# wget -O esp-clone.sh https://gist.githubusercontent.com/con-f-use/d086ca941c2c80fbde6d8996b8a50761/raw && chmod +x esp-clone.sh && ./esp-clone.sh
#
# ToDo: Ask the user when install installing examples or checking for Ubuntu, make a -y option to proceed automatically