Skip to content

Instantly share code, notes, and snippets.

View armandolazarte's full-sized avatar

Armando Lazarte armandolazarte

View GitHub Profile
# generated by Git for Windows
test -f ~/.profile && . ~/.profile
test -f ~/.bashrc && . ~/.bashrc
@armandolazarte
armandolazarte / .bashrc
Last active March 5, 2025 13:19
Alias para el bash de git
alias php="php.bat"
alias herd="herd.bat"
alias laravel="laravel.bat"
alias composer="composer.bat"
# Laravel aliases
alias art="php artisan"
alias artisan="php artisan"
alias tinker="php artisan tinker"
@armandolazarte
armandolazarte / git-prompt.sh
Created March 5, 2025 13:07
Configuración del pront de bash de git
PS1='\[\033]0;\u@\w\007\]' # set window title
PS1="$PS1"'\[\033[31m\]' # change to red
PS1="$PS1"'❯❯ '
PS1="$PS1"'\[\033[33m\]' # change to yellow
PS1="$PS1"'\A '
PS1="$PS1"'\[\033[32m\]' # change to green
PS1="$PS1"'\w' # current basename working directory
if test -z "$WINELOADERNOEXEC"
then
GIT_EXEC_PATH="$(git --exec-path 2>/dev/null)"
@armandolazarte
armandolazarte / settings.json
Last active March 5, 2025 13:00
Configuracion de Terminal Windows
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions": [
{
"command": {
"action": "copy",
"singleLine": false
},
"id": "User.copy.644BA8F2",
@armandolazarte
armandolazarte / bill.html
Created January 15, 2025 15:11 — forked from AfipSDK/bill.html
Factura de ejemplo
<!DOCTYPE html>
<html>
<head>
<title>Factura</title>
<style type="text/css">
*{
box-sizing: border-box;
-webkit-user-select: none; /* Chrome, Opera, Safari */
-moz-user-select: none; /* Firefox 2+ */
-ms-user-select: none; /* IE 10+ */
@armandolazarte
armandolazarte / ticket.html
Created January 15, 2025 15:11 — forked from AfipSDK/ticket.html
Ticket de ejemplo
<!DOCTYPE html>
<html>
<head>
<title>Ticket</title>
<style type="text/css">
*{
box-sizing: border-box;
-webkit-user-select: none; /* Chrome, Opera, Safari */
-moz-user-select: none; /* Firefox 2+ */
-ms-user-select: none; /* IE 10+ */
@armandolazarte
armandolazarte / customize-GitBashPrompt.md
Created September 24, 2024 16:13 — forked from adojos/customize-GitBashPrompt.md
Git: Customizing GitBash Shell Prompt #gitbash

Customizing GitBash Shell Prompt and Theme


As an example, lets assume we want to change / customize the following :

  • Change the Title of the GitBash window from default [MINGW64:/directoryName] to [Tushars Gitbash (Win64)]
  • Change the default prompt () to a customized prompt e.g [GitBash (Win64):> ]

👉 Note ($HOME/.bash_profile vs $HOME/.bashrc vs $HOME/.config):

The below described method only focusses on customizing the 'GitBash' prompt and NOT about customizing default 'Bash' prompt on Linux terminals. Hence this method uses the '$HOME/.config' folder for storing 'GitBash' prompt customization as per XDG Directory Specs. If you are looking for customizing default 'Bash' prompt for your Linux terminal you should be using '$HOME/.bashrc' for storing your customization and hence advised not to continue with this method.

@armandolazarte
armandolazarte / README.md
Created September 24, 2024 16:11 — forked from ardhptr21/README.md
Customize Git Bash Terminal

Customize Git Bash Terminal 🐱‍💻

preview

Usefull Link:

@armandolazarte
armandolazarte / UserController.php
Created May 7, 2024 11:46 — forked from vdwalia/UserController.php
Laravel 10.x + Tailwind (Flowbite) + Datatables
app/Http/Controllers/UserController.php
<?php
namespace App\Http\Controllers;
use App\DataTables\UsersDataTable;
class UserController extends Controller
{
@armandolazarte
armandolazarte / pint.json
Created March 28, 2023 17:06 — forked from JustSteveKing/pint.json
Laravel Pint configuration
{
"preset": "psr12",
"rules": {
"align_multiline_comment": true,
"array_indentation": true,
"array_syntax": true,
"blank_line_after_namespace": true,
"blank_line_after_opening_tag": true,
"combine_consecutive_issets": true,
"combine_consecutive_unsets": true,