Skip to content

Instantly share code, notes, and snippets.

View MJeorrett's full-sized avatar

Matthew Jeorrett MJeorrett

View GitHub Profile
@MJeorrett
MJeorrett / README.md
Last active March 27, 2023 23:32
Private Ethereum network using Clique

DRAFT

Assume working directory of ~/playground/ethereum and that terminal windows are all opened here.

Create account

$ geth --datadir ./node1 account new

You will be prompted to enter and confirm a password. This will create a "keystore" directory in your working directory with the key for the created account saved in it.

@MJeorrett
MJeorrett / EntityFrameworkCore Quickstart.md
Last active May 9, 2017 08:52
Quickstart for EntityFrameworkCore

Install Dependencies

  • Microsoft.EntityFrameworkCore.Design
  • Microsoft.EntityFrameworkCore.Sqlite

Add following to .csproj file:

<ItemGroup>
     <DotNetCliToolReferenceInclude="Microsoft.EntityFrameworkCore.Tools.DotNet"Version="1.0.0" />
</ItemGroup>
@MJeorrett
MJeorrett / git_submodule_replacement.md
Last active June 19, 2023 17:25
Replace directory with git submodule

These are the steps required to replace a directory with a submodule in git. Note: Assumes that you are currently working on branch called 'develop'

  1. Check out a new branch to make the changes on: git checkout -b creating-submodule
  2. delete directory to be replaced rm -rf path/of/directory/to/be/replaced
  3. git add . then git commit -m "removing local directory"
  4. add the submodule: git submodule add "https://github.com/repoName" path/of/directory/to/be/replaced
  5. git add . then git commit -m "adding submodule"
  6. delete the submodule directory if you don't do this git will throw a hissy when you try to checkout out develop to merge the changes in
  7. git checkout develop
  8. pull the submodule back into the local repo: git submodule foreach git fetch --tags then git submodule update --init --recursive
@MJeorrett
MJeorrett / rails_react_heroku_quickstart.md
Last active June 22, 2023 13:56
How to get a React Client with Rails api running on Heroku

Rails React Heroku Quickstart

A quickstart guide for getting a React.js client running with a Rails API, both hosted on Heroku. Topics Covered:

  • Creating a Rails API and deploying to Heroku
  • Creating a React app using create-react-app and deploying to Heroku
  • Configuring React app to speak to local host / Heroku instance of API automatically

Prerequisits

This is a very quick run down so it is assumed that you have a basic understanding of Unix, Node, NPM, Rails and React. It is also assumed that you have Ruby, Node and NPM installed already.

Quick Note on the Tools Used