Skip to content

Instantly share code, notes, and snippets.

View RhysLees's full-sized avatar
🏠
Working from home

Rhys Lees RhysLees

🏠
Working from home
View GitHub Profile
@ainsofs
ainsofs / gist:2b80771a5582b7528d9e
Created April 16, 2015 01:50
Clear .gitignore cache
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@emsifa
emsifa / AssetsScannerCommand.php
Last active December 5, 2023 23:57
Laravel Command for Scan Used/Unused Asset Files
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class AssetsScannerCommand extends Command {
/**
* The console command name.