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(
@4wk-
4wk- / README.md
Last active May 28, 2025 10:37
Clean uninstall then reinstall of WSL on Windows 10, with systemD support

Uninstall then reinstall WSL on Windows 10 (clean way)

Background

I've been using wsl (version 2) with genie mod for years without issue, but one day, Windows 10 finally catch up on wsl Windows 11 features and gives us a way to use systemD natively.

I wanted to use the new "right way" to enable systemD on Windows Subsystem for Linux (without genie), and I also had a (probably related) infinite Windows RemoteApp error poping in.

Fixing it

A - Uninstall wsl and related stuff

  1. In powershell (as admin)
@froemken
froemken / testEmailServer.php
Last active March 22, 2025 09:59
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 1, 2025 22:54
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