I hereby claim:
- I am mowtschan on github.
- I am mowtschan (https://keybase.io/mowtschan) on keybase.
- I have a public key ASD8UG8cIMulv7EZ4XMjUdoBddA0HdYzX8-IFzlZAD9c4Qo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| set -e | |
| BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
| TARGET_BRANCH=main | |
| REMOTE=$(git remote get-url origin) | |
| # assume the repo uses SSH | |
| REMOTE=${REMOTE#"[email protected]:v3/"} |
| git remote add upstream ORIGINAL_REPO_URL | |
| git fetch upstream | |
| git checkout main | |
| git merge upstream/main | |
| git push |
| run in the terminal: | |
| ``` | |
| brew install open-ocd | |
| openocd -f /usr/local/share/openocd/scripts/interface/stlink.cfg -f /usr/local/share/openocd/scripts/target/nrf51.cfg | |
| ``` | |
| open another terminal window: | |
| ``` | |
| telnet localhost 4444 | |
| reset halt | |
| nrf51 mass_erase |
| ssh [email protected] | |
| opkg update | |
| opkg install lighttpd-mod-setenv | |
| vim /etc/lighttpd/conf.d/30-setenv.conf | |
| # --- | |
| server.modules += ( "mod_setenv" ) | |
| setenv.add-response-header = ( | |
| "Access-Control-Allow-Origin" => "<PUT HERE YOUR SITE, DON'T USE *>", |
I hereby claim:
To claim this, I am signing this object: