Skip to content

Instantly share code, notes, and snippets.

View alphaolomi's full-sized avatar
🎯
Focusing

Alpha alphaolomi

🎯
Focusing
View GitHub Profile
@alphaolomi
alphaolomi / docker_cheat_sheet.md
Last active September 20, 2019 07:43
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@alphaolomi
alphaolomi / wordpress_docker.md
Created September 20, 2019 07:44
Wordpress & Docker

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

docker-compose up -d

# To Tear Down
docker-compose down --volumes
@alphaolomi
alphaolomi / sublime.json
Last active October 30, 2019 17:39
[Opinionated Sublime Settings] #sublime #setting
{
"added_words":
[
"Laravel"
],
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Mariana.sublime-color-scheme",
"ensure_newline_at_eof_on_save": true,
"findreplace_small": true,
"font_face": "Dank Mono",
@alphaolomi
alphaolomi / vscode_quick.md
Created September 20, 2019 07:45
VSCode Shortcuts

VSCode Shortcuts

List of helpful shortcuts for faster coding

  • For mac, replace "Ctrl" with "cmd" and "Alt" with "option"

Official List of all commands

@alphaolomi
alphaolomi / columns_cheat_sheet.md
Created September 25, 2019 15:31
Laravel Migration Cheat Sheet

Columns

Available Column Types

The schema builder contains a variety of column types that you may specify when building your tables:

The schema builder contains a variety of column types that you may specify when building your tables:

Command` Description
$table->bigIncrements('id'); Auto-incrementing UNSIGNED BIGINT (primary key) equivalent column.
$table->bigInteger('votes'); BIGINT equivalent column.
@alphaolomi
alphaolomi / awesome_laravel.md
Last active November 8, 2024 14:37
Curated List of Awesome Laravel
@alphaolomi
alphaolomi / setting_up_laravel_app.md
Last active October 6, 2019 18:11
How to clone and set up a laravel app

Setting up a Laravel

Using a git repository

  • Step 1: Clone repository

    git clone https://....
  • Step 2: Install required dependecies

@alphaolomi
alphaolomi / php_timer.php
Created October 29, 2019 19:09
PHP Timer
<?php
$start = microtime(true);
// Do stuff
dd(microtime(true) - $start);
@alphaolomi
alphaolomi / heroku_cheat_sheet.sh
Created October 30, 2019 17:24
HEROKU TOOLBELT COMPLETE GUIDE
# ##############################################################################
##### HEROKU TOOLBELT COMPLETE GUIDE ###########################################
################################################################################
# Installing Heroku toolbelt using command line
# For MacOS...
brew tap heroku/brew && brew install heroku
/* *******************************************************************************************
* GLOBAL CONFIG
* Vue.config is an object containing Vue’s global configurations.
* You can modify its properties listed below before bootstrapping your application.
* https://vuejs.org/v2/api/#Global-Config
* ******************************************************************************************* */
// Configure whether to allow vue-devtools inspection
Vue.config.devtools = true