Skip to content

Instantly share code, notes, and snippets.

View admench's full-sized avatar
🔬
Testing

Adam Menczykowski admench

🔬
Testing
View GitHub Profile
@admench
admench / find files that don't contain string.sh
Created November 14, 2022 09:35
Look through files recursively and find ones that don't contain a particular string
// Look through vue files recursively and find ones that don't have a component name set:
grep -r -L "name:" ./**/*.vue
@admench
admench / clear-db.sh
Created December 2, 2023 10:50
Database clear script - Remove database entirely, create new one and import from sql file, then run laravel migration and seed
## ===================================================================
## Database clear script
## Remove database entirely, create new one and import from sql file
## then run laravel migration and seed
## ===================================================================
# check if user passes two parameters
if [ $# -ne 3 ]; then
echo "Usage: $0 <db-name> <sql-file> <db-password>"
exit 1
fi