Skip to content

Instantly share code, notes, and snippets.

View Warafux's full-sized avatar
⚔️
Learning

Alex Paredes Martinez Warafux

⚔️
Learning
  • Catalonia, Spain
View GitHub Profile
@jayminpanchal
jayminpanchal / AppResourceRegistrar.php
Last active January 8, 2021 10:36
Laravel Custom Resource Registrar
use Illuminate\Routing\ResourceRegistrar;
use Illuminate\Support\Str;
class AppResourceRegistrar extends ResourceRegistrar
{
// add data to the array
/**
* The default actions for a resourceful controller.
*
@TSMMark
TSMMark / delete_local_branches.sh
Last active February 20, 2023 05:41
Delete local branches that don't exist on remote/origin !USE AT YOUR OWN RISK!
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -r -n 1 git branch -D
@mnem
mnem / git_fetch_pull_all_subfolders.sh
Created December 6, 2011 14:35
Simple bash script for fetching and pulling all repos in the executed folder to the latest of the branch they are on
#!/bin/bash
################
# Uncomment if you want the script to always use the scripts
# directory as the folder to look through
#REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPOSITORIES=`pwd`
IFS=$'\n'