Skip to content

Instantly share code, notes, and snippets.

View agyemanjp's full-sized avatar

James A. Prempeh agyemanjp

View GitHub Profile
@agyemanjp
agyemanjp / NodeProject-README.txt
Created November 2, 2026 18:54
README for the NodeProject CLI
# 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
@agyemanjp
agyemanjp / gist:0a1506239199aff9d3ac733c51b315b9
Last active September 13, 2026 16:31
Chat GPT conversation 69fc50fa-386c-83ea-9114-77ada56501e1
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.
# 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 \
@agyemanjp
agyemanjp / init-ci-ubuntu18.sh
Last active April 30, 2023 10:51
Initialize (or fix) CI Server for Hypothesize
#!/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
@agyemanjp
agyemanjp / hypothesize-ubuntu-20-setup.sh
Last active March 29, 2023 18:22
cd ~/ && wget -O hypothesize.sh http://bit.ly/40sm6hA && chmod +x hypothesize.sh && ./hypothesize.sh
#!/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
{
"$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": {
@agyemanjp
agyemanjp / code-check-general.schema.json
Last active July 31, 2020 12:04
Schema for standard CI code checks output
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of code check"
},
"description": {
"type": "string",
@agyemanjp
agyemanjp / initial-server-seup.ubuntu-18-04.sh
Created July 4, 2020 14:18
Initial basic server setup (users, SSH, UFW, etc.) script for Ubuntu 18.04
#!/bin/bash
set -euo pipefail
########################
### SCRIPT VARIABLES ###
########################
# Name of the user to create and grant sudo privileges
USERNAME=sammy
@agyemanjp
agyemanjp / virtualbox-additions-install-ubuntu.sh
Last active June 22, 2019 16:29
Install VirtualBox additions on Ubuntu 18 guest OS
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)
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