Skip to content

Instantly share code, notes, and snippets.

@relbns
relbns / prd.md
Created April 15, 2025 23:23 — forked from burkeholland/prd.md
TheUrlist PRD

Project Requirements Document: The Urlist Website

The following table outlines the detailed functional requirements of The Urlist website.

Requirement ID Description User Story Expected Behavior/Outcome
FR001 Creating a New URL List As a user, I want to be able to start a new, empty list so I can begin adding URLs. The system should provide a clear way for the user to initiate the creation of a new list, potentially presenting an empty list view or an "add new list" button.
FR002 A
@relbns
relbns / gitdown.js
Created November 3, 2024 21:22 — forked from jabed-web-dev/gitdown.js
Download directory and files from github repository
require('dotenv').config();
const { Octokit } = require("@octokit/rest");
const download = require('download');
const { resolve } = require('path')
const octokit = new Octokit({
auth: process.env.GITHUB_ACCESS_TOKEN
})
function fileData(file, obj = {}) {
@relbns
relbns / gist:5ed1766c2d8fcc261d7cecdff654996c
Created June 29, 2023 20:48 — forked from zenoyu/gist:f63799a9079a5df376d5daf3cea27be4
AWS Lambda (Node) - Using Insight API to Query your Cloudwatch Log for Daily Error Report
/**
* AWS Lambda (Node) - Using Insight API to Query your Cloudwatch Log for Daily Error Report
* @author Zeno Yu <zeno.yu@gmail.com>
*/
const AWS = require('aws-sdk');
var cloudwatchlogs = new AWS.CloudWatchLogs();
exports.handler = async (event) => {
// Cloudwatch Log Group name
@relbns
relbns / mern-server-setup.md
Created June 25, 2022 22:41 — forked from bradtraversy/mern-server-setup.md
Setup Ubuntu & Deploy MERN app

Linux Server Setup & MERN App Deployment

These are the steps to setup an Ubuntu server from scratch and deploy a MERN app with the PM2 process manager and Nginx. We are using Linode, but you could just as well use a different cloud provider or your own machine or VM.

Create an account at Linode

Click on Create Linode

Choose your server options (OS, region, etc)

SSH Keys

@relbns
relbns / setup.sh
Created April 24, 2022 22:06 — forked from bradp/setup.sh
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
@relbns
relbns / ecosystem.json
Created January 9, 2022 23:53 — forked from wirwolf/ecosystem.json
pm2 ecosystem.json config example
{
"apps": [
{
/* General */
"name": "my-api", /* (string) application name (default to script filename without extension) */
"script": "index.js", /* (string) script path relative to pm2 start */
"cwd": "/var/www/", /* (string) the directory from which your app will be launched */
"args": "-a 13 -b 12", /* (string) string containing all arguments passed via CLI to script */
"interpreter": "/usr/bin/python", /* (string) interpreter absolute path (default to node) */
"interpreter_args": "--harmony", /* (string) option to pass to the interpreter */