Skip to content

Instantly share code, notes, and snippets.

View ricardoaugusto's full-sized avatar
🥽
Focusing

Ricardo Augusto ricardoaugusto

🥽
Focusing
View GitHub Profile
<?php
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'homestead' == gethostname() ? 'localhost' : '127.0.0.1'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'homestead'),
'password' => env('DB_PASSWORD', 'secret'),
'port' => env('DB_PORT', 'homestead' == gethostname() ? null : 33060),
'charset' => 'utf8mb4',
@ricardoaugusto
ricardoaugusto / gist:74c3f841a3c263593cecc5c063a89ebb
Created July 28, 2020 02:20 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@ricardoaugusto
ricardoaugusto / typescript-crash.ts
Created July 31, 2022 17:29 — forked from bradtraversy/typescript-crash.ts
Basic intro to TypeScript (From YouTube Crash Course)
// Basic Types
let id: number = 5
let company: string = 'Traversy Media'
let isPublished: boolean = true
let x: any = 'Hello'
let ids: number[] = [1, 2, 3, 4, 5]
let arr: any[] = [1, true, 'Hello']
// Tuple