Skip to content

About

A collection of various scripts for different purposes. These scripts are not related to one another but are useful for various tasks and projects.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

ScriptCollection

A collection of utility scripts for different purposes. These scripts are not related to one another but serve various development and automation tasks.

Scripts Overview

Skip Labs Bootstrap Script

Located at skiplabs/bootstrap.sh, this script creates a complete TypeScript Node.js project with modern development tooling.

Requirements: Bun and git must be installed. Run it in an empty directory; it refuses to run where a package.json already exists.

Quick Start

mkdir my-project && cd my-project
curl -sSL https://raw.githubusercontent.com/hubyrod/ScriptCollection/main/skiplabs/bootstrap.sh | bash

What Gets Created

Project Structure:

  • TypeScript Node.js project with src/ directory
  • Git repository with a .gitignore and an initial commit
  • package.json and committed bun.lock

Development Stack:

  • TypeScript 6 - ES2022 target, NodeNext modules, strict mode (pinned to 6.x until typescript-eslint supports TypeScript 7)
  • Fastify - Fast web server with async/await patterns
  • Skip Labs - Integration with @skiplabs/skip package
  • ESLint 10 - Flat config (eslint.config.js) with typescript-eslint and Prettier integration
  • Prettier - Code formatting
  • Bun - Package management, TypeScript execution and bundling
  • Native Hot-reloading - Built-in with bun --watch

Available Commands:

bun run dev        # Start development server with hot reload
bun run build      # Bundle src/index.ts to dist/ with bun build
bun run start      # Start production server (node dist/index.js)
bun run lint       # Run ESLint
bun run typecheck  # Type-check with tsc --noEmit
bun run format     # Format code with Prettier
bun run clean      # Remove dist/ and node_modules/

Use bun run <script> rather than bun <script>: a bare bun build invokes Bun's bundler instead of the package script.

General Development Environment

Located at general/, this directory contains Docker-based development environment tools.

Docker Development Environment

The dockerize script builds a dev-env image from general/Dockerfile and starts a throwaway container with the current directory mounted.

Quick Start:

# Run from any project directory. When piped, the Dockerfile is fetched
# from this repository automatically.
curl -sSL https://raw.githubusercontent.com/hubyrod/ScriptCollection/main/general/dockerize | bash

Or from a local checkout:

/path/to/ScriptCollection/general/dockerize

Features:

  • Ubuntu 24.04 base with essential development tools
  • Languages & Runtimes: Python 3, Node.js 24.x (LTS), npm, Bun
  • Development Tools: git, vim, nano, htop, tree, jq, curl, wget
  • Shell: zsh with Oh My Zsh and basic configuration
  • Claude CLI pre-installed for AI-assisted development (installed as the dev user so it can self-update)
  • Port Mapping: Automatically exposes ports 3000, 8080 (configurable)

Usage Options:

# Basic usage (mounts current directory)
dockerize

# Rebuild Docker image
dockerize --rebuild

# Custom port mapping
dockerize --ports "3000:3000,8000:8000,9000:9000"

# Show help
dockerize --help

# Make globally available
echo 'alias dockerize="/path/to/ScriptCollection/general/dockerize"' >> ~/.zshrc

What You Get:

  • Current directory mounted at /home/dev/workspace
  • Non-root user dev with passwordless sudo
  • Git configured with sensible defaults
  • All common development ports exposed
  • Clean, isolated development environment (removed on exit)

About

A collection of various scripts for different purposes. These scripts are not related to one another but are useful for various tasks and projects.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages