Some notes to describe to team members how I typically work with a github or bitbucket hosted project.
- Fork
- Branch
- Pull Request
| #!/usr/bin/env python | |
| import sys | |
| import csv | |
| # tabbed file tabs.txt: | |
| #one two three four | |
| # cmd: | |
| #cat tabs.txt | ./mask.py 2 CUSTOMER_ | |
| POS = int(sys.argv[1]) |
| after_success: | |
| - > | |
| test "${TRAVIS_PULL_REQUEST}" = 'false' && | |
| test "${TRAVIS_TAG}" && | |
| sh "$TRAVIS_BUILD_DIR/.travis.credentials.sh" && | |
| sbt publish |
| #!/usr/bin/env bash | |
| #mkvpropedit to edit the video file title metadata (mkv files) | |
| for f in *.mkv; do mkvpropedit "$f" --edit info --set "title=${f%.mkv}"; done |
| #docker command to run rstudio server | |
| docker run --name rstudio -d -v /Users/navicore/classes/introstat:/src -p 8787:8787 rocker/rstudio |
| # docker command to init and run a influxdb container with a db pre allocated | |
| docker run --name influxdb -e PRE_CREATE_DB="pollen" -d -p 8083:8083 -p 8086:8086 --expose 8090 --expose 8099 tutum/influxdb |
| # docker command to init and run grafana with running influxdb | |
| docker run -d --name grafana -p 8080:80 -e INFLUXDB_HOST=192.168.59.103 -e INFLUXDB_PORT=8086 -e INFLUXDB_NAME=pollen -e INFLUXDB_USER=root -e INFLUXDB_PASS=root tutum/grafana | |
| # after running, check logs for password `docker logs grafana` |
| #Dockerfile for riemann http://riemann.io/ | |
| #base | |
| FROM ruby:1.9-wheezy | |
| MAINTAINER Amaret, Inc. <[email protected]> | |
| EXPOSE 5555 | |
| ENTRYPOINT ["/usr/bin/java", "-Djava.awt.headless=true", "-Xmx128m", "-XX:+UseConcMarkSweepGC", "-jar", "/app/riemann-0.2.8/lib/riemann.jar", "/etc/riemann.config"] | |
| RUN ["apt-get", "update"] | |
| RUN mkdir -p /app |
| # oauth2 to coinbase via R | |
| # define your oauth2 app to get "Client ID" and "Client Secret" at https://www.coinbase.com/settings/api | |
| appKey="<MY_CLIENT_ID>" | |
| appSecret="<MY_CLIENT_SECRET>" | |
| require(httr) | |
| require(jsonlite) | |
| require(httpuv) | |
| endpoints <- oauth_endpoint( |
| #!/usr/bin/env node | |
| 'use strict'; | |
| var request = require('request'), | |
| log4js = require("log4js"), | |
| LOG = log4js.getLogger('example'); | |
| request({ | |
| url: 'http://requestb.in/up1rw2up', | |
| method: 'POST', |