Skip to content

Instantly share code, notes, and snippets.

View igoralves1's full-sized avatar

Igor Alves igoralves1

View GitHub Profile
Route::get('/sql',function(){
$sql=<<<EOF
-- -----------------------------------------------------
-- Table `migrations`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `migrations` (
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`migration` VARCHAR(191) COLLATE 'utf8mb4_unicode_ci' NOT NULL,
@igoralves1
igoralves1 / datepicker.js
Last active February 5, 2018 16:01
Setup a bootstrap datepicker Synchronized dt_start and dt_end
#http://makitweb.com/how-to-add-datepicker-in-bootstrap/
#https://uxsolutions.github.io/bootstrap-datepicker/?markup=input&format=&weekStart=&startDate=&endDate=&startView=0&minViewMode=0&maxViewMode=4&todayBtn=false&clearBtn=false&language=en&orientation=auto&multidate=&multidateSeparator=&keyboardNavigation=on&forceParse=on#sandbox
#https://github.com/uxsolutions/bootstrap-datepicker/blob/master/docs/options.rst
#https://bootstrap-datepicker.readthedocs.io/en/latest/options.html#startdate
#Sync dt_start with dt_end
<div class="form-group">
<label class="form-check-label">Date Range<br>
<div>
@igoralves1
igoralves1 / git.migrate
Created January 14, 2018 14:19 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@igoralves1
igoralves1 / sysInit.sh
Last active October 8, 2018 22:09
BASH -> Setting Up for Ubuntu16.04 PHP7.1, NGINX, NodeJs, NPM, GIT, VHOST [ (DEV) Laravel 5.5, Laravel/Lumen API 5.4, XDEBUG, VsCode, Chrome, Gitkraken, JAVA, WorkBench, NetBeans, CloneFromBitbucket, MariaDB, REDIS, NODE_RED, BRACKETS ]
#!/bin/bash
## Note: please edit with your ubuntu root user name. The follow example is expecting to have the user "ila" as a Root privileges.
UBT_USER='ila'
HOME_PATH=/home/$UBT_USER
PRJ_DOMAIN='firemap'
PRJ_API="${PRJ_DOMAIN}_api"
PRJ_WEB="${PRJ_DOMAIN}.com"
#Alias to the URL, edit at your convinience
#VHOST="${PRJ_DOMAIN}"
https://mega.nz/#F!dd0lyTwb!7HtzHbm-jkUyuA9jwJzvIQ
https://askubuntu.com/questions/756181/installing-php-5-6-on-xenial-16-04?rq=1
https://hub.docker.com/r/yarsoniy/php5.6/~/dockerfile/
https://github.com/oerdnj/deb.sury.org/issues/56
FROM ubuntu:16.04
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
ENV DEBIAN_FRONTEND noninteractive
#https://github.com/tianon/docker-brew-ubuntu-core/issues/48
#
# NOTE: THIS DOCKERFILE IS GENERATED VIA "update.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#
FROM debian:jessie
# persistent / runtime deps
ENV PHPIZE_DEPS \
@igoralves1
igoralves1 / gist:6c73ec7ea5921eba148217d29c4ac701
Last active August 31, 2017 12:39
NetBeans users ask the following question about IntelliJ IDEA most frequently:
https://www.imore.com/how-use-stickies-mac
https://www.jetbrains.com/help/idea/netbeans.html
//VSUAL STUDIO CODE - Key Bindings ==> https://code.visualstudio.com/docs/getstarted/keybindings
https://www.shortcutfoo.com/app/dojos/intellij-idea-win
https://shortcutworld.com/en/IntelliJ-IDEA/win/all
NetBeans
https://github.com/robbyrussell/oh-my-zsh/wiki/themes
https://github.com/robbyrussell/oh-my-zsh
https://github.com/robbyrussell/oh-my-zsh/wiki/Plugin:git
https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins
https://github.com/robbyrussell/oh-my-zsh
https://apple.stackexchange.com/questions/88278/change-default-shell-from-bash-to-zsh
https://apple.stackexchange.com/questions/115013/completion-for-git-commands
https://stackoverflow.com/questions/33992353/docker-create-images-ubuntu-14-04-with-docker-file
https://github.com/tianon/docker-brew-ubuntu-core/blob/a2573609340194bf33712c1fa2dc4de8f9b70ca2/trusty/Dockerfile