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
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 |
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
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 |
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
# 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 |
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
devices: ( | |
{ | |
name: "Wireless Mouse MX Master 2S"; | |
# Enable SmartShift (auto‐switch scrolling modes) | |
smartshift: { | |
on: true; | |
threshold: 20; # Switch threshold speed | |
}; |
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
// ---------------------------------------------------------------- | |
// If Conditions | |
// ---------------------------------------------------------------- | |
if ($status == 'in review') ProductStatusEmailNotification::dispatch($product, Auth::user()); | |
if ($expr) { | |
$statement; | |
} else { | |
$statement; |
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 | |
$a = null; | |
// Old Way | |
if(!$a){ | |
echo "Hello World"; | |
} | |
else{ | |
echo $a; | |
} |
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
{ | |
"dart.flutterSdkPath": "C:\\flutter", | |
"extensions.autoUpdate": false, | |
"editor.suggestSelection": "first", | |
"files.exclude": { | |
"**/.classpath": true, | |
"**/.project": true, | |
"**/.settings": true, | |
"**/.factorypath": true | |
}, |
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
{"lastUpload":"2020-05-07T14:58:40.106Z","extensionVersion":"v3.4.3"} |
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
### 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: |