Skip to content

Instantly share code, notes, and snippets.

View rdp77's full-sized avatar
✏️
Think of something

Moh Ravi Dwi Putra rdp77

✏️
Think of something
View GitHub Profile
@rdp77
rdp77 / deploy.sh
Created May 16, 2025 14:37
Webhook script for deploy Laravel in aaPanel
echo "Starting............"
# Navigate to the Laravel project directory
echo "Navigating to the Laravel project directory"
cd /www/wwwroot/website|| { echo "Failed to cd into project directory"; exit 1; }
if [ ! -d .git ]; then
echo "Not a git repository!"
exit 1
fi
@rdp77
rdp77 / laravel-deploy.yml
Last active May 14, 2025 08:57
Laravel Deployment Github Actions
name: Deploy Laravel App to Production Server
on:
push:
branches:
- main # Trigger deployment only when pushing to the main branch
jobs:
deploy:
runs-on: ubuntu-latest
@rdp77
rdp77 / laravel-deploy.sh
Last active May 14, 2025 08:55
Laravel Deployment for Linux Server (aaPanel)
# Go to project directory
cd /www/wwwroot/website
# Fetch latest changes from remote
git fetch origin
# Forcefully reset local files to match the remote main branch
git reset --hard origin/main
# Install production dependencies only
@rdp77
rdp77 / logid.cfg
Created May 9, 2025 17:29
This is your Logiops configuration file MX Master 2S
devices: (
{
name: "Wireless Mouse MX Master 2S";
# Enable SmartShift (auto‐switch scrolling modes)
smartshift: {
on: true;
threshold: 20; # Switch threshold speed
};
@rdp77
rdp77 / conditions_and_branching.php
Last active August 11, 2022 04:25
short code if conditions with ternary operator
// ----------------------------------------------------------------
// If Conditions
// ----------------------------------------------------------------
if ($status == 'in review') ProductStatusEmailNotification::dispatch($product, Auth::user());
if ($expr) {
$statement;
} else {
$statement;
@rdp77
rdp77 / nullSafety.php
Last active August 11, 2022 03:39
Null Safety Handle
<?php
$a = null;
// Old Way
if(!$a){
echo "Hello World";
}
else{
echo $a;
}
{
"dart.flutterSdkPath": "C:\\flutter",
"extensions.autoUpdate": false,
"editor.suggestSelection": "first",
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
@rdp77
rdp77 / cloudSettings
Last active May 7, 2020 14:58
VSCode
{"lastUpload":"2020-05-07T14:58:40.106Z","extensionVersion":"v3.4.3"}
### Keybase proof
I hereby claim:
* I am rdp77 on github.
* I am rdp77 (https://keybase.io/rdp77) on keybase.
* I have a public key ASDGyI8suzBUTGOhDv7XDsd0-kc9SSpVGZxvE4Ve8axiUQo
To claim this, I am signing this object: