Skip to content

Instantly share code, notes, and snippets.

View selfup's full-sized avatar
💻
doing the most

Regis Boudinot selfup

💻
doing the most
View GitHub Profile
@selfup
selfup / react-notes.md
Last active December 16, 2015 17:14 — forked from biglovisa/react-notes.md
React in theory

Use this gist to write down notes and questions as you read through the lesson plan. https://github.com/turingschool/lesson_plans/blob/master/ruby_04-apis_and_scalability/react_in_theory.markdown

What does React do?

It interacts with the DOM in a more elgant way than jQuery. No more DOM traversal. We can use specific locations and not have to change our CSS or HTML based on new inherant logic.

How does React interact with the DOM?

It uses the Virtual DOM to communicate with the actual DOM and figure out what needs to be updated. We can setState() and effectively tell React what to change in the event loop if a change has been requested.

  echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
  echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
  echo 'eval "$(rbenv init -)"' >> ~/.bashrc
  echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
  exec $SHELL

  echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
  echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
  exec $SHELL
@selfup
selfup / ruby-on-rails-vagrant-scripts.md
Last active July 22, 2016 09:21
Use my open source scripts to set up a new vagrant/ruby on rails server!

For Ubuntu and/or Debian

SSH into a fresh Vagrant Box:

Here we set everything up to be ready for install

cd
sudo apt-get install git -y
git clone https://github.com/selfup/DevOpsOne.git

python ~/DevOpsOne/setup_1.py

@selfup
selfup / ruby-on-rails-vps-scripts.md
Last active July 7, 2016 17:23
Use my open source scripts to set up a Ubuntu VPS with Ruby, Rails, NodeJS, and Postgres. Also production ready!

For Ubuntu, Debian, and Raspbian

Here we set everything up to be ready for install

cd
sudo apt-get install git -y
git clone https://github.com/selfup/DevOpsOne.git
python ~/DevOpsOne/setup_1.py
. .bashrc

. .bash_profile

Clone my repo:

cd
git clone https://github.com/selfup/DevOpsOne.git

Clone your favorite app and go into the directory of your app:

cd favorite_app_directory

Run the ruby script that will take a command line argument after the .rb

FROM ubuntu:14.04
RUN chsh
RUN apt-get update && apt-get -y install python
RUN apt-get install git -y
RUN cd root/ && git clone https://github.com/selfup/DevOpsOne

CentOS and PHP

Download the latest Virtual Box for OSX/Darwin: LINK

Download Vagrant for OSX: LINK

Make a directory and do the folowwing

touch Vagrantfile

There are two paths

# Paste this in the touched file and save
* Make sure to scroll down and follow thest "rest" of the intructions
```
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for

CentOS and PHP on Windows VirtualBox and Vagrant

Download the latest Virtual Box for Windows: LINK

Download Vagrant for Windows: LINK

  • Once you have download and installed VB and Vagrant (for Windows) you might have to restart your computer for the path to be set.

  • Vagrant automagically sets the path up for you.

  • Here is a link explaining the process: LINK