Skip to content

Instantly share code, notes, and snippets.

View jesraygarciano's full-sized avatar
💬
Be codesistent

Codetinerant jesraygarciano

💬
Be codesistent
View GitHub Profile
Commands
Access monitor: mysql -u [username] -p; (will prompt for password)
Show all databases: show databases;
Access database: mysql -u [username] -p [database] (will prompt for password)
Create new database: create database [database];
Select database: use [database];
@jesraygarciano
jesraygarciano / Visual Studio Code - Extensions
Created May 17, 2018 07:51
Visual studio code extentions
Prettier
Material Theme
Git lens -- Git suercharged
Bracket Pair Colorizer
Beautify
Javascript Standard Style
Javasript (ES6) code snippets
@jesraygarciano
jesraygarciano / Git tips and shortcuts
Created May 17, 2018 08:01
Git tips and shortcuts
Most used commands are: init, clone, status, log, add, commit, reset, rm, branch, checkout, merge, stash
## -- Initializing a new git repository
$$ git init
## -- Useful git log commands
$$ git log --oneline ## print short sha in one line
$$ git log -3 ## show only first 3 commit
$$ git log --author="John" ## show commits only by this author
@jesraygarciano
jesraygarciano / Vue JS sheet
Created June 14, 2018 03:10
VUE ESSENTIALS CHEAT SHEET
EXPRESSIONS
<div id="app">
<p>I have a {{ product }}</p>
<p>{{ product + 's' }}</p>
<p>{{ isWorking ? 'YES' : 'NO' }}</p>
<p>{{ product.getSalePrice() }}</p>
</div>
DIRECTIVES
@jesraygarciano
jesraygarciano / Running Webpack+LaravelMix+VueJs
Created June 27, 2018 03:34
10% building modules 6/12 modules 6 active …resources\assets\js\components\index.jsTypeError: dep.getResourceIdentifier is not a function
10% building modules 6/12 modules 6 active …resources\assets\js\components\index.jsTypeError: dep.getResourceIdentifier is not a function
****
* npm i webpack@3.11.0 (degrade to @3.11.0)
* NPM install
* npm run dev/watch
****
* npm i webpack
* NPM install
@jesraygarciano
jesraygarciano / AWS Functions
Last active June 27, 2018 03:35
AWS Functions
S3
require 'aws-autoloader.php';
use Aws\S3\S3Client;
use Aws\S3\Exception\S3Exception;
Create Bucket
<?php
@jesraygarciano
jesraygarciano / Vue CLI Problems and Solutions
Last active July 3, 2018 02:16
Vue CLI Errors and Fixes
Problem:
./src/pages/Component.vue
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config
Solution:
Degrade webpack: npm i webpack@3.11.0
npm install
then > add Vue loader to Webpack.mix.js
@jesraygarciano
jesraygarciano / xampp-error
Created September 25, 2018 02:46
Fixing XAMPP won't run when Skype is opened
A conflict on port 80; since XAMPP used port80 as well as skype. You can use either of these two options:
1:
ServerName localhost:80
Listen 80
to
ServerName localhost:8080
Listen 8080
2:
@jesraygarciano
jesraygarciano / gist:b5b4ef15fa5c9dd54b68c6eb6ff9418e
Created September 26, 2018 08:54 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@jesraygarciano
jesraygarciano / sqlcheatsheet
Created October 10, 2018 07:37
SQL Cheatsheet by enochtangg
1. Finding Data Queries
SELECT: used to select data from a database
SELECT * FROM table_name;
DISTINCT: filters away duplicate values and returns rows of specified column
SELECT DISTINCT column_name;
WHERE: used to filter records/rows