Skip to content

Instantly share code, notes, and snippets.

View ryannealmes's full-sized avatar

Ryan-Neal Mes ryannealmes

View GitHub Profile
@ryannealmes
ryannealmes / git_diff.md
Last active December 1, 2020 23:07
Readable git diff

This can help get a more readable diff

git diff --diff-algorithm=Minimal ./somefile
@ryannealmes
ryannealmes / find.md
Created November 9, 2018 22:23
Finding files
find / -type f -name [file]
kubectl exec -ti <running_pod_name> /bin/bash
kubectl get pods
kubectl get services
kubectl describe <service_name>
credit to https://github.com/mdkrog
git checkout development
git pull origin development
git checkout your-local-branch
git rebase -i development
git push -f origin your-local-branch
git checkout development
git merge your-local-branch --ff-only
git push origin development
@ryannealmes
ryannealmes / port finder.md
Last active November 25, 2016 10:22
Find my port!
@ryannealmes
ryannealmes / .babelrc
Created September 7, 2016 02:12
Basic files required to play with redux
{
"presets": [
"es2015",
"react"
]
}
@ryannealmes
ryannealmes / delete_containers.sh
Created August 30, 2016 06:25
Delete all Docker Containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
@ryannealmes
ryannealmes / README.md
Last active July 19, 2016 04:23
Basic setup for ruby project with rspec + guard
  1. Ensure latest version of ruby is installed
  2. Run bundle gem my_lib
  3. Update [project].gemspec file to include develpment dependencies and update any todos
  4. Run bundle install
  5. Run guard init rspec
  6. Check your project runs ok with guard running - this can be done by saving one of your tests
@ryannealmes
ryannealmes / Kill all docker containers
Last active June 18, 2016 06:38
Stops and removes all running docker containers
docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)
credit to https://github.com/mdkrog
git checkout development
git pull origin development
git checkout you-local-branch
git rebase -i development
git push -f origin your-local-branch
git checkout development
git merge your-local-branch --ff-only
git push origin development