Skip to content

Instantly share code, notes, and snippets.

View Yunnie-pin's full-sized avatar
💀
Overworked

Arifin Yunianta Yunnie-pin

💀
Overworked
View GitHub Profile
@Yunnie-pin
Yunnie-pin / GitHub-action-laravel-envoy.md
Created June 23, 2023 11:34
contoh konfigurasi ci/cd GitHub action untuk deploy aplikasi Laravel menggunakan Laravel envoy

guide

  1. create new folder .github/workflows in laravel app root dir
  2. create new file deploy.yml in workflows folder
  3. open repo settings secrets menu
  4. add new secret SSH_PRIVATE_KEY
  5. add new secret SSH_HOST
  6. add deploy keys with your ssh pubkey (optional)
  7. add this configuration template in deploy.yml file:
const printErrorShouldLoginBefore = () => {
console.log(
'%cError, script failed to parse your data',
'font-size: 18px; color: #f00; background: #000;'
);
throw new Error('NOT_LOGGED_IN');
};
const printGenericError = (err) => {
console.log(
@froemken
froemken / testEmailServer.php
Last active January 8, 2024 01:20
Very simple PHP Script to test SMTP email server
<?php
// For port 24 host without scheme is just fine
// Add scheme, if using secure connection. Port 465 or 587
$host = 'ssl://smtp.strato.de';
//$host = 'tls://smtp.strato.de';
$port = 465;
//$port = 25;
$errorNumber;
$error;
$timeout = 10;
@WebSofter
WebSofter / ecosystem.config.json
Created October 28, 2019 13:47
Run laravel artisian serve script via pm2
{
"apps": [{
"name": "laravel-app",
"script": "artisan",
"args": ["serve", "--host=0.0.0.0", "--port=3333"],
"instances": "1",
"wait_ready": true,
"autorestart": false,
"max_restarts": 1,
"interpreter" : "php",
@chranderson
chranderson / nvmCommands.js
Last active June 25, 2024 15:12
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node