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
| # NodeProject | |
| NodeProject is a CLI that provides standardized and opinionated Bash-based command-line scripts for bootstrapping, building, testing, deploying, and installing (code in distinct targets within) Node.js-compatible projects | |
| Features | |
| - Unified toolset for monorepo development | |
| - Run commands directly from GitHub without local installation | |
| - Environment variable-based configuration for project behavior | |
| - Comprehensive logging and error handling |
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
| You said: | |
| Compare Nw.js vs Electron regarding the architecture (electron's preload seems complicated to bundle properly), integration with Node and NPM, support for code signing/notarization, etc, support for macOS, Windows, and Linux, built app package sizes and memory consumption, and general robustness | |
| ChatGPT said: | |
| Yes. If you care about Node/NPM integration, packaging complexity, signing/notarization, cross-platform distribution, footprint, and long-term robustness, the comparison is more nuanced than “Electron has a bigger ecosystem.” | |
| The key trade-off is: | |
| NW.js gives you a much more natural Node.js application model. Electron gives you a more deliberately separated, security-oriented architecture and a substantially better-developed distribution ecosystem. |
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
| # See https://docs.posit.co/resources/install-r-source/ | |
| sudo apt install -y \ | |
| gfortran g++ \ | |
| curl libcurl4-openssl-dev \ | |
| libicu-dev \ | |
| libbz2-dev \ | |
| liblzma-dev \ | |
| libpcre2-dev \ | |
| libpcre3-dev &&\ | |
| # libpango1.0-dev \ |
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
| #!/bin/bash | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[0;33m' | |
| NOCOLOR='\033[0m' | |
| sudo apt install -y swapspace build-essential | |
| if [ ! -x "$(command -v git)" ]; then |
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
| #!/usr/bin/env bash | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| NOCOLOR='\033[0m' | |
| # Install useful base packages | |
| echo -e "\n${GREEN}Installing base packages ...${NOCOLOR}" | |
| sudo apt update | |
| sudo apt install -y build-essential |
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
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "$id": "http://danfortsystems.com/schemas/appgen.json", | |
| "type": "object", | |
| "properties": { | |
| "name": { | |
| "type": "string", | |
| "description": "Name of app" | |
| }, | |
| "owner": { |
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
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "type": "object", | |
| "properties": { | |
| "name": { | |
| "type": "string", | |
| "description": "Name of code check" | |
| }, | |
| "description": { | |
| "type": "string", |
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
| #!/bin/bash | |
| set -euo pipefail | |
| ######################## | |
| ### SCRIPT VARIABLES ### | |
| ######################## | |
| # Name of the user to create and grant sudo privileges | |
| USERNAME=sammy |
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
| sudo -i | |
| apt install gcc make | |
| mkdir -p /media/cdrom | |
| mount /dev/cdrom /media/cdrom | |
| /media/cdrom/VBoxLinuxAdditions.run | |
| reboot | |
| # After reboot: | |
| sudo usermod --append --groups vboxsf $(whoami) |
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
| sudo apt update | |
| sudo apt install samba cifs-utils | |
| echo "" | sudo tee -a /etc/samba/smb.conf | |
| echo "[Code]" | sudo tee -a /etc/samba/smb.conf | |
| echo " comment = CODE FOLDER" | sudo tee -a /etc/samba/smb.conf | |
| echo " path = ~/code" | sudo tee -a /etc/samba/smb.conf | |
| echo " read only = no" | sudo tee -a /etc/samba/smb.conf | |
| # echo " guest ok = yes" | sudo tee -a /etc/samba/smb.conf |
NewerOlder