Skip to content

Instantly share code, notes, and snippets.

@hminnovation
hminnovation / find_text_git.md
Last active November 2, 2020 12:03
Find text in git repo on any branch

Find a file that's stuck on a branch and not been merged (and / or has been deleted)

This is a pain and something that can easily happen. Specifically had it with a readme file with some important documentation that we didn't want to, as a team, try and re-document.

This was the most "pragmatic" (ergo fastest to find what we were looking for)

From https://stackoverflow.com/questions/15292391/is-it-possible-to-perform-a-grep-search-in-all-the-branches-of-a-git-project

git log -p --all -S 'search string'

@hminnovation
hminnovation / understanding_path.md
Last active April 1, 2017 15:02
Wrapping my head around the $PATH variable
  • echo $path shows everything currently on the path
  • Add a location to the path PATH="/Some/Folder/Somewhere/bin:$PATH"
  • Add a location as a variable
  • export THE_VARIABLE=/Some/Folder/Somewhere/bin
  • export PATH=$PATH:$THE_VARIABLE/bin
@hminnovation
hminnovation / a.md
Created March 31, 2017 19:23
virtualenv with Python version from pyenv

mkvirtualenv --python=~/.pyenv/versions/3.5.2/bin/python3.5 {name of venv}

Run pyenv versions to see versions you have

@hminnovation
hminnovation / zsh-ruby-setup.md
Created March 8, 2017 08:13
Setup for Ruby with ZSH
@hminnovation
hminnovation / zsh-virtualenv-setup.md
Created February 16, 2017 15:08
ZSH Virtualenv and Virtualenvwrapper setup

### Installing global Python & Pip Use Brew brew install python

That'll install both Python, PIP and setuptools. If for some reason it didn't install PIP you can do via

curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
sudo python get-pip.py

c/f MacOSX setup gitbook

@hminnovation
hminnovation / chrome_extensions_list.txt
Created February 16, 2017 10:40
Chrome extensions
AccessibilityDeveloperTools==2.10.9
ColorContrastAnalyzer==1.1.2
ColorZilla==2.0
full-page-screen-capture==2.2
google-docs-hors-connexion==1.4
JSONFormatter==0.6.0
NoCoffee==0.4.9
PageLoadTime==1.2.4
page-ruler==2.0.9
tampermonkey==4.2.7
@hminnovation
hminnovation / Package control.sublime-settings
Created February 14, 2017 16:48
Packages in Sublime3
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"BracketFlasher",
"BracketHighlighter",
"Color Highlighter",
@hminnovation
hminnovation / console.js
Created January 17, 2017 17:48
check scope
s = angular.element($0).scope()
@hminnovation
hminnovation / trellis-start.md
Last active November 17, 2016 21:06
Bedrock / Trellis stuff
import pdb; pdb.set_trace()
# You can put it anywhere in a function
python -m pdb manage.py runserver
  • c = continue