Skip to content

Instantly share code, notes, and snippets.

View Tchilly's full-sized avatar

Magnus Vike Tchilly

View GitHub Profile
<laravel-boost-guidelines>
=== foundation rules ===
# Laravel Boost Guidelines
The Laravel Boost guidelines are specifically curated by Laravel maintainers for this application. These guidelines should be followed closely to enhance the user's satisfaction building Laravel applications.
## Foundational Context
This application is a Laravel application and its main Laravel ecosystems package & versions are below. You are an expert with them all. Ensure you abide by these specific packages & versions.
@Tchilly
Tchilly / random.php
Last active December 14, 2021 13:50
<?
public function fetchGift(Request $request)
{
// todo: make it more secure
return getGiftType($request->giftType);
}
private function getGiftType (String $giftType)
{
/**
* Slug generator
*
*/
const name = document.getElementById('name');
const slug = document.getElementById('slug');
if (name && slug) {
// Init a timeout variable to be used below
@Tchilly
Tchilly / aliases
Created May 8, 2018 07:59
Aliases
# ----------------------
# Aliases
# ----------------------
alias clr=“clear” # Clear your terminal screen
alias flush=“sudo discoveryutil udnsflushcaches” # Flush DNS (Yosemite)
alias flush=“killall -HUP mDNSResponder” # Flush DNS (Mavericks, Mountain Lion, Lion)
alias flush=“dscacheutil -flushcache” # Flush DNS (Snow Leopard, Leopard)
alias ip=“dig +short myip.opendns.com @resolver1.opendns.com” # Your public IP address
alias ll=“ls -al” # List all files in current directory in long list format
alias ldir=“ls -al | grep ^d” # List all directories in current directory in long list format