Skip to content

Instantly share code, notes, and snippets.

View nobu-sh's full-sized avatar
🏓
Pong! 20ms

Nobu nobu-sh

🏓
Pong! 20ms
  • East Moline, Illinois
  • 04:35 (UTC -05:00)
View GitHub Profile
@nobu-sh
nobu-sh / is_installed.sh
Created June 22, 2021 16:01 — forked from JamieMason/is_installed.sh
Check if a program exists from a bash script.Thanks to twitter.com/joshnesbitt and twitter.com/mheap for the help with detecting npm packages.
#!/bin/bash
# Functions ==============================================
# return 1 if global command line program installed, else 0
# example
# echo "node: $(program_is_installed node)"
function program_is_installed {
# set to 1 initially
local return_=1
@nobu-sh
nobu-sh / ecosystem.config.json
Created September 22, 2021 23:17 — forked from WebSofter/ecosystem.config.json
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",