Skip to content

Instantly share code, notes, and snippets.

View ryanSN's full-sized avatar
🎧

Ryan Chatterton ryanSN

🎧
View GitHub Profile
Username/Password:
COPY #1
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
COPY #2
sudo apt update && sudo apt install apache2-utils docker.io docker-compose
COPY #3
@ryanSN
ryanSN / generate_github_release_notes.sh
Created July 16, 2019 18:08
Generate git release notes from last tagged version
git log --pretty="%h - %s (%an)" v1.2.4..HEAD
@ryanSN
ryanSN / gist:5794d8db9c916fe252bbe9c7b115e407
Created February 6, 2019 21:58
Kent Dodds Config export.
https://github.com/kentcdodds/ama/issues/406
@ryanSN
ryanSN / docker-compose.yml
Created December 7, 2018 21:43
rabbit simple docker file run
version: "3"
services:
rabbit:
image: "rabbitmq:3.7.8-management-alpine"
hostname: "rabbit"
environment:
RABBITMQ_DEFAULT_USER: "rabbitmq"
RABBITMQ_DEFAULT_PASS: "rabbitmq"
RABBITMQ_DEFAULT_VHOST: "/"
# gpg: signing failed: Inappropriate ioctl for device
export GPG_TTY=$(tty)
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO
@ryanSN
ryanSN / yarnlockconflict.bash
Created September 26, 2018 12:51
yarn lock conflicts
rm yarn.lock && yarn && git add yarn.lock && git rebase --continue
# code --list-extensions | xargs -L 1 echo code --install-extension
code --install-extension 2gua.rainbow-brackets
code --install-extension Kasik96.format-indent
code --install-extension alefragnani.project-manager
code --install-extension arcticicestudio.nord-visual-studio-code
code --install-extension asvetliakov.snapshot-tools
code --install-extension cmstead.jsrefactor
code --install-extension dbaeumer.vscode-eslint
code --install-extension eamodio.gitlens
code --install-extension emmanuelbeziat.vscode-great-icons

Folder Structure

Motivations

  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
@ryanSN
ryanSN / sh.txt
Created March 22, 2018 13:13
Generate self signed cert for development
cat > openssl.cnf <<-EOF
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
CN = *.dev
[v3_req]
keyUsage = keyEncipherment, dataEncipherment
extendedKeyUsage = serverAuth