TL;DR
Install Postgres 9.6, and then:
sudo pg_dropcluster 9.6 main --stop
sudo pg_upgradecluster 9.5 main
sudo pg_dropcluster 9.5 main
wget http://mirrors.ibiblio.org/gnu/ftp/gnu/emacs/emacs-25.1.tar.xz | |
tar xJvfp emacs-25.1.tar.xz | |
cd emacs-25.1/ | |
sudo yum -y install libXpm-devel libjpeg-turbo-devel openjpeg-devel openjpeg2-devel turbojpeg-devel giflib-devel libtiff-devel gnutls-devel libxml2-devel GConf2-devel dbus-devel wxGTK-devel gtk3-devel libselinux-devel gpm-devel librsvg2-devel ImageMagick-devel | |
./configure | |
make | |
sudo make install |
TL;DR
Install Postgres 9.6, and then:
sudo pg_dropcluster 9.6 main --stop
sudo pg_upgradecluster 9.5 main
sudo pg_dropcluster 9.5 main
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz | |
tar xzf Python-3.7.3.tgz | |
cd Python-3.7.3 | |
./configure --enable-optimizations --prefix=/opt/mount1/python37 # path where python3.7 will be installed | |
make altinstall | |
# enable python37 command | |
vi ~/.bashrc | |
alias python37='/opt/mount1/python37/bin/python3.7' # add this line to ~/.bashrc |
git reset --soft HEAD~n && git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})" | |
* n is the number of commits you want to squash from HEAD |
This document details some tips and tricks for creating redux containers. Specifically, this document is looking at the mapDispatchToProps
argument of the connect
function from [react-redux][react-redux]. There are many ways to write the same thing in redux. This gist covers the various forms that mapDispatchToProps
can take.
rm -rf /opt/homebrew/var/postgres/postmaster.pid | |
Ref: https://stackoverflow.com/questions/39710384/cannot-connect-to-postgres-server-running-through-brew-services |
brew install postgresql | |
/opt/homebrew/bin/createuser -s postgres | |
su - postgres |
require 'active_support/inflector' | |
require 'benchmark' | |
class James | |
end | |
class John | |
end | |
class Jimmy |