Git Reference

Commands Used: 
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 reflog

Reference:
https://marklodato.github.io/visual-git-guide/index-en.html
https://git-scm.com/book/en/v2
https://www.youtube.com/watch?v=uR6G2v_WsRA
https://ncona.com/2011/07/how-to-delete-a-commit-in-git-local-and-remote/
https://stackoverflow.com/questions/14836696/delete-last-commit-in-bitbucket
https://mirrors.edge.kernel.org/pub/software/scm/git/docs/git-revert.html
http://christoph.ruegg.name/blog/git-howto-revert-a-commit-already-pushed-to-a-remote-reposit.html
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~!




Posted in Technologies | Leave a comment

How to Install Multiple Versions of Node.js and Manage it Using NVM Node Version Manager node package manager (NPM)

Windows
Go to  https://github.com/coreybutler/nvm-windows/releases 
download and install the latest nvm-setup.zip
VIDEO:  https://www.youtube.com/watch?v=ZQZ47n9llOQ

Mac or Unix
1. #Install command line developer tools. 
$ xcode-select --install

2. Install the latest version of NVM 
https://github.com/creationix/nvm#git... 

-- 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 
login: 

export NVM_DIR="$HOME/.nvm" 
source ~/.nvm/nvm.sh
[ -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

6. Uninstall
cd ~/.nvm/versions/node 
sudo rm -rf v4.2.3/
//Try clearing cash nvm cache clear 

7. List the installable node versions with nvm
nvm ls-remote

8. List the local node versions with nvm
nvm ls
References 
https://github.com/nvm-sh/nvm
https://github.com/tj/n
https://www.sitepoint.com/quick-tip-multiple-versions-node-nvm/
https://docs.npmjs.com/misc/removing-npm

Posted in Technologies | Leave a comment

React 16 features

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 :-

  1. 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

  2. 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

  3. 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.

  4. Portals : Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component.

  5. 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/reactasyncrenderingdemodevelopment by creating an account on GitHub. https://github.com/ivan-ha/react-async-rendering-demo ; https://ivan-ha.github.io/react-async-rendering-demo/

Posted in React 16 | Leave a comment

How to install Jenkins 2.150.1 on Ubuntu 14.04

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
update-java-alternatives -l
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
echo “$JAVA_HOME”

— How to install Jenkins on Ubuntu 14.04–

1.

 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
HTTP_PORT=8081
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

troubleshooting
$ sudo netstat -peanut | grep ":8000"
$ lsof -i :8000
sudo mount -o bind /var/tmp /tmp   
Posted in Technologies | Leave a comment

Sketch plugins

RENAME IT: https://github.com/rodi01/RenameIt

SKETCH STYLES GENERATOR: https://github.com/lucaorio/sketch-styles-generator

SKETCH STYLE LIBRARIES: https://github.com/sigtm/sketch-style-libraries

SKETCH ICONS: https://github.com/AMoreaux/Sketch-Icons

MOVE TO LIBRARY: https://github.com/ahmedmigo/Move-to-library-sketchplugin

LIBRARY SOMBOL REPLACER: https://github.com/zeroheight/library-symbol-replacer

PADDY PLUGIN: https://github.com/DWilliames/paddy-sketch-plugin

SOURCE FILE: https://www.dropbox.com/s/j4u1dqjx2et…

Stacks and Auto-Layout Sketch Plugin Just like Flex Box in CSS, UIStackView in iOS, and FlexboxLayout in Android – Auto-Layout’s with its new Stacks feature is, once again, changing the game: https://animaapp.github.io/Auto-Layout/ ; https://www.youtube.com/watch?v=DiCXg17CwIY

 

 

 


 

Posted in Technologies | Leave a comment

WEB Security

owasp top 10 security standards

https://info.veracode.com/datasheet-thank-you-2.1.html?aliId=121948011

https://www.youtube.com/channel/UCt4woZmZYtNQ6Ulhfralesg

http://www.veracode.com/blog?_ga=1.4329651.1093907670.1491920388

https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project#tab=Main

 

SWAT checklist security standards

https://software-security.sans.org/resources/swat

https://securingthehuman.sans.org/media/resources/planning/STH-poster-winter-2013.pdf

Posted in Technologies | Leave a comment

JavaScript Resources

Online web-based IDE.

  1. Sencha Fiddle: https://fiddle.sencha.com.
  2. Fiddle Meta: https://jsfiddle.net/.
  3. JS Bin: https://jsbin.com/?html,output.
  4. ShiftEdit is a new web-based IDE for editing HTML/ CSS/ JS and PHP.
    It uses ExtJS and the excellent extensions: FileTreePanel and DDTabPanel. https://shiftedit.net/.

Link

Description

tympanus.net/codrops/css_reference/

CSS Reference
An extensive CSS reference with all the important properties and info to learn CSS from the basics

unicode-table.com

Unicode Character Table

jsonprettyprint.com

A simple JSON pretty printer. Put JSON in the text area below, click the "Pretty Print JSON" button, and see pretty printed JSON.

regexr.com

 

Regular expression tester with syntax highlighting, contextual help, video tutorial, reference, and searchable community patterns
caniuse.com

Select browsers to compare CSS, HTML5 functions

plnkr.co

plnkr.co/edit/?p=catalogue

embed.plnkr.co/nVCmukG5abpi1Y4ZHkrq

Plunker is an online community for creating, collaborating on and sharing your web development ideas

jsbin.com

A live pastebin for HTML, CSS & JavaScript and a range of processors, including SCSS, CoffeeScript, Jade and more..

www.javascripting.com

blog.javascripting.com

A collection of the world's best client-side JavaScript libraries.

modernizr.com

Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.

github.com/intuit/xhr-xdr-adapter

xhr-xdr-adapter enables, to the extent possible, support for Cross Origin Resource Sharing (CORS) on Internet Explorer versions 8 and 9 using standard JavaScript libraries.

gedcom-parse.sourceforge.net/doc/encoding.html

Character encoding

css-tricks.com

Tips, Tricks, and Techniques on using Cascading Style Sheets.

momentjs.com

Full featured date library for parsing, validating, manipulating, and formatting dates.

cdnjs.com

An open source CDN for JavaScript and CSS sponsored by CloudFlare.

www.getcreditcardnumbers.com

Visa, Mastercard, Discover, American Express

www.theonegenerator.com/en

fakena.me/fake-social-security-number

SSN, Payment Cards generators

Posted in Front End Development | Leave a comment

UI/UX Resources

Guidelines:

  • Web Content Accessibility Guidlines (WCAG)
  • Section 508 (US federal standard)
  • The UX HandBook

Acronyms:

  • UXPA – The UX Professionals Association 
  • IxDA – The Interaction Design Association 
  • IAI – The Information Architecture Institute
Posted in Technologies | Leave a comment

BJJ Reference

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.

https://gracieuniversity.com/

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.

Posted in MMA | Leave a comment

FAQ: QuickBooks

Custom Fields in QuickBooks

http://www.sleeter.com/blog/2013/11/custom-fields-in-quickbooks/

http://qbblog.ccrsoftware.info/2008/07/custom-fields-in-quickbooks/

Posted in ERP/MRP Solutions | Leave a comment