git log = git history
git log --all --decorate --oneline --graph = commit history graph
git branch (branch-name) = create a branch
git checkout (branch-name) = checkout a branch/move head pointer
git commit -a -m "commit message" = commit all modified and tracked files in on command (bypass separate 'git add' command)
git commit -n -m "commit message" = commit all modified withour code validation
git commit --amend -m "<new message>"
git diff master..SDN = diff between 2 branches
git merge (branch-name) = merge branches (fast-forward and 3-way merges)
git branch --merged = see branches merged into the current branch
git branch -d (branch-name) = delete a branch, only if already merged
git branch -D (branch-name) = delete a branch, including if not already merged (exercise caution here)
git merge --abort = abort a merge during a merge conflict situation
git checkout (commit-hash) = checkout a commit directly, not through a branch, results in a detached HEAD state
git stash = create a stash point
git stash list = list stash points
git stash list -p = list stash points and show diffs per stash
git stash apply = apply most recent stash
git stash pop = apply most recent stash, and remove it from saved stashes
git stash apply (stash reference) = apply a specific stash point
git stash save "(description)" = create a stash point, be more descriptive
How do you roll back (reset) a Git repository to a particular commit?
git log --stat
git log --pretty=oneline --abbrev-commit
git reset --hard <tag/branch/commit id>
git show HEAD
git reset HEAD^
git push -u origin staging --force
Clean all untrack files
git clean -df
Get history of GIT activities:
Git Tutorial: Fixing Common Mistakes and Undoing Bad Commits: https://www.youtube.com/watch?v=FdZecVxzJbk
git reset --hard HEAD~1
git diff <commit 1 id> <commit 2 id>
git difftool HEAD HEAD~!
Go to https://github.com/coreybutler/nvm-windows/releases
download and install the latest nvm-setup.zip
Mac or Unix
1. #Install command line developer tools.
$ xcode-select --install
2. Install the latest version of NVM
-- Clone NVM
$ cd ~/
$ git clone https://github.com/creationix/nvm.git .nvm
-- Checkout latest version of nvm
$ cd ~/.nvm
$ git checkout v0.34.0
-- Activate NVM
$ . nvm.sh
-- Now add these lines to your ~/.bashrc, ~/.profile,
or ~/.zshrc file to have it automatically sourced upon
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
# This loads nvm bash_completion
3. List your installed node versions:
$ nvm list
4. List the available node versions in the cloud:
$ nvm ls-remote
$ nvm ls-remote | tail -n9
$ nvm ls-remote --lts
5. Install node of version 10.16.0
$ nvm install 10.16.0
$ nvm use 10.16.0
$ nvm alias default1 10.16.0
$ nvm list
$ nvm unalias default1
nvm install v9.0.0 --reinstall-packages-from=8.9
sudo rm -rf v4.2.3/
//Try clearing cash nvm cache clear
7. List the installable node versions with nvm
8. List the local node versions with nvm
React Fiber https://github.com/acdlite/react-fiber-architecture is a virtual stack frame, with React Fiber being a reimplementation of a stack frame specialized for React components. Each fiber can be thought of as a virtual stack frame where information from the frame is preserved in memory on the heap, and because the info is saved on the heap, you can control and play with the data structures and process the relevant information as needed.
You can find an excellent explanation from Lin Clark in this video.
For more details please check the following links ,
1. What is React Fiber?
2. React Fiber Architecture
3. What Does React 16 Mean for You?
React Fiber is an ongoing reimplementation of React's core algorithm. The main difference between react and react fiber are these new features :-
Incremental Rendering :- React v16.0 includes a completely rewritten server renderer. It’s really fast. It supports streaming, so you can start sending bytes to the client faster
Handle errors in the render API : To make class component an error boundary we define a new lifecycle method called componentDidCatch(error, info). Error Boundaries – React https://reactjs.org/docs/error-boundaries.html
Return multiple elements from render : With this new feature in React v16.0 now we can also return an array of elements, and string from component’s render method.
Portals : Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component.
Fragments : A common pattern in React is for a component to return multiple elements. Fragments let you group a list of children without adding extra nodes to the DOM.
react fiber is using: https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback
React Async Rendering Demo. Contribute to ivan-ha/react–async–rendering–demodevelopment by creating an account on GitHub. https://github.com/ivan-ha/react-async-rendering-demo ; https://ivan-ha.github.io/react-async-rendering-demo/
0. sudo -s
— How to Install Oracle Java 8 on Ubuntu 14.04 LTS —
1. sudo apt-add-repository ppa:webupd8team/java
2. sudo apt-get update
3. sudo apt-get install oracle-java8-installer
— Check the installed Java —-
sudo update-alternatives –config java
sudo update-alternatives –config javac
— How to install Jenkins on Ubuntu 14.04–
sudo curl -O http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key
apt-key add jenkins-ci.org.key
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update && apt-get upgrade -y
sudo apt-get install jenkins
—— Jenkins start on port 8080 ——
—-> nano /etc/default/jenkins
5. sudo service jenkins restart
6. copy the password from cat /var/lib/jenkins/secrets/initialAdminPassword
7. Install Plugins in Jenkins
–> Login to Jenkins dashboard and navigate to Manage Jenkins >> Manage Plugins >> Available Tab and select the plugins to install
$ sudo netstat -peanut | grep ":8000"
$ lsof -i :8000
sudo mount -o bind /var/tmp /tmp
Brasilian Jiu Jitsu Reference
http://www.grapplearts.com/ – download the free book.
You’ll have to provide your e-mail address and he will be sending you some really interesting newsletters .
You can unsubscribe at any moment if you wish. There are some very good articles on the site as well.
Be mindful, that in addition to the tons of free articles and videos, he is selling (naturally) apps and DVDs which you really don’t need or obligated to buy. Especially at this point of your journey.
This is the source of the Gracie Jiu Jitsu.
Here you need to sign-up for free membership. You’ll get access to the 6 free lessons and videos with conceptual explanation of their philosophy and mindset. Not all historical facts presented here are 100% truth (they are not Oracles or saints, some information is contested and controversial), but everything related to technique and fighting philosophy is rock solid and tested in real life.