Skip to content

Instantly share code, notes, and snippets.

View joparara's full-sized avatar
👋
hello world!

Joe Palala joparara

👋
hello world!
View GitHub Profile
@joparara
joparara / deploy-laravel-app.sh
Created May 12, 2024 03:36 — forked from ChrisHardie/deploy-laravel-app.sh
Simple Bash script to deploy a Laravel App
#!/bin/bash
version=`php artisan --version`
if [[ ${version} != *"Laravel Framework"* ]]; then
echo "Not a Laravel app, exiting."
exit;
fi
# Turn on maintenance mode
@joparara
joparara / setup_v.md
Created May 10, 2024 01:22
what is v

depends on fzf-tmux and nvim being installed

alias v='fd --type f --hidden --exclude .git | fzf-tmux -p --reverse | xargs nvim'
@joparara
joparara / git-aliases.md
Created April 28, 2024 21:54 — forked from mwhite/git-aliases.md
The Ultimate Git Alias Setup

The Ultimate Git Alias Setup

If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.

Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.

The simplest way to add an alias for a specific git command is to use a standard bash alias.

# .bashrc
@joparara
joparara / laravel-aliases.sh
Created April 27, 2024 08:55
aliases for running laravel related commands
alias pa=’php artisan’
alias pas=’php artisan serve’
alias pam=’php artisan migrate’
alias pamf=’php artisan migrate:fresh’
alias pamm=’php artisan make:migration’
alias model=’php artisan make:model’
alias cntrl=’php artisan make:controller’
alias policy=’php artisan make:policy’
alias middleware=’php artisan make:middleware’
alias routes=’php artisan route:list’
@joparara
joparara / how-to-use-concat.sql.md
Created April 17, 2024 03:50
how to concat sql

Concat to column new data (append) (instead of getting the data then appending to it)

UPDATE `table_name` SET =concat(, 'newData')

@joparara
joparara / apply_now.md
Last active August 23, 2024 14:39
[PH, Makati] Engineering Lead opening at Gappify, a cloud-based software provider of accrual automation solutions

Please be sure to read all the qualifications and requirements before applying

Open only to people from METRO MANILA who are willing to report to our MAKATI OFFICE 2x a week!


Role Description:

We are seeking a Lead Developer. Please open https://laravelphilippines.org/jobs/opening.html for the details

@joparara
joparara / .php_cs
Created March 8, 2024 03:00 — forked from jannejava/.php_cs
PHPCS Fixer for VSCode and Laravel
<?php
return PhpCsFixer\Config::create()
->setRules(array(
'@PSR2' => true,
'binary_operator_spaces' => true,
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'blank_line_before_return' => true,
'braces' => true,
@joparara
joparara / gotta.go
Created March 7, 2024 22:13
gotta go - a simple readme markdown output to an html page
package main
import (
"fmt"
"io/ioutil"
"os"
"github.com/microcosm-cc/bluemonday"
"github.com/russross/blackfriday/v2"
)
@joparara
joparara / .env.local.php
Created February 19, 2024 10:50 — forked from petehouston/.env.local.php
[Laravel 4.2] The environment dotfile configuration
<?php
//file: /.env.local.php
// return the configuration for the 'local' environment
return array(
'db_host' => '127.0.0.1',
'db_name' => 'DB_NAME', // specify database name
'db_user' => 'DB_USER', // specify database username
'db_pass' => 'DB_PASS', // specify database password
);
@joparara
joparara / gitnah.sh
Last active February 15, 2024 22:50
git-nah function
# Bash function ⬇️
nah () {
git reset --hard
git clean -df
if [ -d ".git/rebase-apply" ] || [ -d ".git/rebase-merge" ]; then
git rebase --abort
fi
}