Skip to content

Instantly share code, notes, and snippets.

View herisulistiyanto's full-sized avatar
:octocat:
Working from home

heri sulistiyanto herisulistiyanto

:octocat:
Working from home
View GitHub Profile
@herisulistiyanto
herisulistiyanto / node-modules-cleaner.sh
Created August 21, 2023 06:33
node-modules-cleaner.sh
#!/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)
@herisulistiyanto
herisulistiyanto / gradle-cleaner.sh
Created August 21, 2023 06:33
gradle-cleaner.sh
#!/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)
<?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
<?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