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
#!/usr/bin/env bash | |
clear | |
ROOT_PATH="put/your/parent/folder/path/here" | |
# Function to prompt and remove | |
function prompt_and_remove() { | |
local folder_path="$1" | |
local folder_size=$(du -sh "$folder_path" | cut -f1) |
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
#!/usr/bin/env bash | |
clear | |
function prompt_and_clear() { | |
local folder_path=$1 | |
local folder_name=$2 | |
if [ -d "$folder_path" ]; then | |
local folder_size=$(du -sh $folder_path | cut -f1) |
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\Channels; | |
use Kreait\Firebase\Factory; | |
use Illuminate\Support\Facades\Log; | |
use Kreait\Firebase\Messaging\CloudMessage; | |
use Kreait\Firebase\Messaging\Notification as FcmNotification; | |
class FirebaseChannel |
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\Notifications; | |
use Illuminate\Bus\Queueable; | |
use App\Channels\FirebaseChannel; | |
use Illuminate\Notifications\Notification; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
class GenericFirebaseNotification extends Notification implements ShouldQueue |
OlderNewer