Skip to content

Instantly share code, notes, and snippets.

View crispgm's full-sized avatar
Caffeinated

David Zhang crispgm

Caffeinated
View GitHub Profile
int
foo(bar)
    int bar
{
    ...
}
@crispgm
crispgm / forked-repo-ahead-master.md
Created September 24, 2016 02:21
Forked repo is ahead of master
git checkout master
git reset --hard upstream/master
git push --force
@crispgm
crispgm / docker-commands.md
Created September 7, 2016 03:54
Docker commands

Build Dockerfiles:

docker build -t crisp/nginx /path/to/Dockerfile

Run in daemon mode:

docker run --name nginx -d -p PORT1:PORT1 -p PORTn:PORTn -v VOL1:VOL1 -v VOLn:VOLn crisp/nginx
@crispgm
crispgm / git-fetch-upstream.md
Last active June 4, 2016 14:10
sync forked project
git remote add upstream <ORIGINAL>
git fetch upstream
git checkout master
git merge upstream/master
@crispgm
crispgm / git-remote-set-url.md
Created June 4, 2016 14:08
When you rename a project on GitHub

show the upstreams

git remote -v

remove origin

git remote remove origin
Olympus Share APP control urls over E-M10 camera, still to investigate..
http://192.168.0.10
http://192.168.0.10/
http://192.168.0.10/clear_resvflg.cgi
http://192.168.0.10/exec_pwoff.cgi
http://192.168.0.10/exec_shutter.cgi?com=1st2ndpush
http://192.168.0.10/exec_shutter.cgi?com=1stpush
http://192.168.0.10/exec_shutter.cgi?com=1strelease
http://192.168.0.10/exec_shutter.cgi?com=2nd1strelease