Skip to content

Instantly share code, notes, and snippets.

View jshimko's full-sized avatar

Jeremy Shimko jshimko

  • independent
  • Connecticut, USA
  • 16:41 (UTC -04:00)
View GitHub Profile
#!/bin/bash
#
# Starts up a MongoDB replica set
#
# There is a lot of documentation about replica sets:
#
# http://docs.mongodb.org/manual/reference/replica-configuration/
# http://docs.mongodb.org/manual/administration/replica-sets/
#
# To read data from a SECONDARY, when in the client, use:
@jshimko
jshimko / reaction-commerce-cla.md
Created December 4, 2015 19:40
Reaction Commerce - Contributor License Agreement (CLA)

Contributing to Ongo Works

Thank you for contributing code to Ongo Works and Reaction Commerce!

Like many open source projects, we need a Contributor License Agreement (CLA) from you before we can merge in your changes. You only need to fill out this agreement once. So bear with us, here comes the legalese.

In brief, by submitting your code to any Ongo Works and Reaction Commerce project, you are granting us a right to use that code under the terms of this Agreement, including providing it to others. You are also certifying that you wrote it, and that you are allowed to license it to us. You are not giving up your copyright in your work.

Contributor License Agreements are important because they define the chain of ownership of a piece of software. Some companies won't allow the use of free software without clear agreements around code ownership. That's why many open source projects collect similar agreements from contributors.

@jshimko
jshimko / docker-ssl-deployment.sh
Last active February 25, 2022 10:11
Deploy Reaction Commerce on Digital Ocean with Nginx and a Let's Encrypt SSL certificate
# start a server on Digital Ocean
# https://docs.docker.com/machine/drivers/digital-ocean/
docker-machine create \
--driver digitalocean \
--digitalocean-access-token <YOUR API KEY> \
--digitalocean-size 2gb \
reaction
# tell Docker to run commands on that server
@jshimko
jshimko / deploy.sh
Created January 16, 2017 22:58
Rancher 1.3 deployment
# start a server on AWS
# (see docs for options)
# https://docs.docker.com/machine/drivers/aws/
docker-machine create --driver amazonec2 \
--amazonec2-access-key <YOUR ACCESS KEY> \
--amazonec2-secret-key <YOUR SECRET KEY> \
--amazonec2-instance-type t2.medium \
rancher-test
# Nginx
@jshimko
jshimko / 01-container.js
Last active October 3, 2017 04:26
Container/Component Patterns
/**
* Container
*/
import { compose, withProps } from 'recompose';
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import { withPermissions, withIsAdmin, composeWithTracker } from '/client/api';
import UserDashboard from '../components/dashboard';
import usersListQuery from '../graphql/usersList.graphql';

Keybase proof

I hereby claim:

  • I am jshimko on github.
  • I am jshimko (https://keybase.io/jshimko) on keybase.
  • I have a public key ASAw7DCgk3WV6EtyM4r3Fspwuk65YdG8fB_0KNc0UcQY3Qo

To claim this, I am signing this object: