-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{-- | |
| Simple Example: | |
| <x-table-simple | |
| striped // default: false | |
| :columns='[ | |
| [ | |
| "name" => "Name", | |
| "field" => "name", | |
| "columnClasses" => "", // classes to style table th | |
| "rowClasses" => "" // classes to style table td |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| (function() { | |
| var frame = 0; | |
| var frames = [ | |
| "This", | |
| "is", | |
| "SPARTA!", | |
| " ", | |
| "SPARTA!", |
- Create ssh pair for login on a fresh DO droplet.
- ssh into the server
apt-get updateIt updates server's knowledgeable packages. Not technically updates any software.
apt-get install -y git tmux vim curl wget zip unzip htop-y flag to say yes to all prompts- Adding additional repositories so that we can get latest version of the softwares from this respective repositories of them:
- For NGINX:
add-apt-repository -y ppa:nginx/development(Development branch of nginx repo is actually what they consider stable because its stable + bug-fixes, its not exactly the dev branch) - For PHP:
add-apt-repository -y ppa:ondrej/php
A Pen by Naga Vinod Kumar on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Nova\Actions; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Queue\SerializesModels; | |
| use Illuminate\Support\Collection; | |
| use Laravel\Nova\Actions\Action; | |
| use Laravel\Nova\Fields\ActionFields; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Change to the project directory | |
| cd /home/forge/domain.com | |
| # Turn on maintenance mode | |
| php artisan down || true | |
| # Pull the latest changes from the git repository | |
| # git reset --hard | |
| # git clean -df | |
| git pull origin master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Traits; | |
| trait DisableNovaEntries | |
| { | |
| public static function authorizedToCreate(Request $request) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Traits; | |
| use Illuminate\Http\Request; | |
| trait DisableDBEntries | |
| { | |
Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font
To setup native Linux, see this gist


