Skip to content

Instantly share code, notes, and snippets.

Jacob Way JacobWay

Block or report user

Report or block JacobWay

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@JacobWay
JacobWay / git-overwrite-branch.sh
Created May 3, 2018 — forked from ummahusla/git-overwrite-branch.sh
Git overwrite branch with another branch
View git-overwrite-branch.sh
# overwrite master with contents of seotweaks branch (seotweaks > master)
git checkout seotweaks # source name
git merge -s ours master # target name
git checkout master # target name
git merge seotweaks # source name
@JacobWay
JacobWay / es6 develop environment
Created Mar 23, 2018
es6 develop environment
View es6 develop environment
install global babel-cli
`npm install --global babel-cli`
create .babelrc configuration file
run the babel command
@JacobWay
JacobWay / http_status_codes
Last active Sep 6, 2017
HTTP status codes
View http_status_codes
# HTTP Status Codes
* 1xx Informational responses
** 100 Continue
* 2xx Success
* 3xx Redirection
* 4xx Client errors
* 5xx Server errors
@JacobWay
JacobWay / moving git repository to a new repository.md
Created Apr 20, 2017
moving git repository to a new repository
View moving git repository to a new repository.md
  1. Add old remote server to the existing repository
git remote add <old-remote-server-name> <old-remote-server-address>
  1. Pull the branch of old remote server to the local
git pull <old-remote-server-name> <remote-branch-name>
  1. Push the branch to the new remote server
@JacobWay
JacobWay / multiple applications on front end project.md
Created Apr 9, 2017
multiple applications on one front end project, webpack, html-webpack-plugin
View multiple applications on front end project.md

webpack

module.exports = {
  entry: {
    'app1': 'path/to/app1',
    'app2': 'path/to/app2'
  },
  output: {
    path: 'your/local/file/path',
    filename: 'subdirectory/[name].js'
View iterm terminal.md

iterm

Adjusting font size in one tab, when open a new tab, get the new size

cmd-i and then click Copy Preferences to Profile.
reference link

@JacobWay
JacobWay / git.md
Last active Mar 26, 2017
about git
View git.md

Git

Git configuration

  • Change your editor git config --global core.editor vim

  • Change your merge tool git config --global merge.tool vimdiff git config --global merge.conflictstyle diff3

View ssh.md

SSH

Generate passphrase

dd if=/dev/urandom bs=16 count=1 2>/dev/null | base64 | sed 's/=//g'

@JacobWay
JacobWay / node version manager nvm.md
Last active Mar 25, 2017
node version manager nvm
View node version manager nvm.md

NVM

Installation

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash

The script clones the nvm repository to ~/.nvm and adds the source line to your profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).

export NVM_DIR="$HOME/.nvm"
@JacobWay
JacobWay / photoshop-design-basics.md
Last active Mar 28, 2017
photoshop design basics
View photoshop-design-basics.md

Photoshop design basics

Create your first design

Get to know layers

Layers are the building blocks of any photoshop design.

Combine images using layer masks

Layer masks are the most flexible way to combine images.

You can’t perform that action at this time.