Skip to content

Instantly share code, notes, and snippets.

@jayrcodes
jayrcodes / NERDTree.mkd
Created March 6, 2016 06:45 — forked from m3nd3s/NERDTree.mkd
My Vim Cheat Sheet

NERDTree

o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|

O.......Recursively open the selected directory..................|NERDTree-O|

@jayrcodes
jayrcodes / MAVC College Deployement Summary.md
Last active September 15, 2016 05:56
MAVC College Deployement Summary.md

Deployement Summary

Change permission of project directory (if Linux)

sudo chmod -R 777 project-directory

Ionic Build Android Guide

You should already installed:

  • Java
  • Ionic 2

Download Android commandline tools

Download Here

Create Ubuntu .desktop file

Execute the following commands

 cd ~/.local/share/applications
 touch robomongo.desktop
 chmod +x robomongo.desktop

post-receive

#!/bin/sh
PATH=$PATH:$HOME/.local/bin:$HOME/bin:$HOME/opt/node-v4.5.0-linux-x64/bin
mkdir -p $HOME/opt/sc-nov2016
git --work-tree=$HOME/opt/sc-nov2016 --git-dir=$HOME/sc-nov2016.git checkout -f
npm i --prefix $HOME/opt/sc-nov2016 --production
npm --prefix $HOME/opt/sc-nov2016 run-script build
pm2 stop sc-nov2016
@jayrcodes
jayrcodes / Summary.md
Created February 3, 2017 04:34 — forked from identor/Summary.md
Deployment Test with simple auto deployment server update by git push.

Deployment Summary

Deployment summary, all commands are tested in debian 8.1 x64. The new user to be created will be deploy under the host yourhost-here.

Create new user for deployment

Access the root user's shell. Note that the adduser command will prompt for a password, enter a new password and remember it.

apt-get install sudo -y
adduser deploy
gpasswd -a deploy sudo
{
"window.zoomLevel": 1,
"explorer.confirmDelete": false,
"[javascriptreact]": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.autoIndent": true,
},
"[vue]": {
"editor.tabSize": 2,

Add to .bashrc

alias mcr="php artisan make:model -mcr"
alias a="php artisan"
alias m="php artisan migrate;"
alias ms="php artisan migrate --database=sqlite"
alias mr="php artisan migrate:rollback"
alias s="php artisan db:seed"
alias t="./vendor/bin/phpunit"

React Native Scaffold Guide

Install react native cli

npm install -g react-native-cli

Create new application

Flutter Cheatsheet

  • Start App

Open Project in VsCode Debug > Start Debugging

React Native Flutter
width: Dimensions.get('window).width width: double.Infinity