Skip to content

Instantly share code, notes, and snippets.

View daaimah123's full-sized avatar

Daaimah Tibrey daaimah123

View GitHub Profile
@daaimah123
daaimah123 / Design Architecture.md
Created March 26, 2025 21:34 — forked from Aerlinger/Design Architecture
Technical Specification

Design Architecture of Datamill

Core Requirements

#####High Level (user-facing) Design Requirements

  • Multi-Tenancy: Ability to service multiple users simultaneously
  • Low-Latency: Where possible, data should always be current with less than a 15-20 minute delay.
  • Reliability: Services should run with > 99.99% uptime. Data recovery should be possible in the event of service or hardware failure.
@daaimah123
daaimah123 / burnout-prevention-list.md
Last active February 5, 2025 23:19
Quarterly Life Audit: develop a personal mission statement, identify your core values goals and commitments, determine your time constraints for each, reflect and iterate.

Burnout Prevention Checklist

This list is curated to help you get started thinking of ways to implement burnout prevention or identify what you are actively working on. You can edit this list to fit your needs.

  • Implement clear boundaries between work and personal life

  • Set specific work hours and stick to them

    • Use separate devices or accounts for work and personal use
  • Practice daily mindfulness or meditation

@daaimah123
daaimah123 / personal-task-issue-template.md
Last active February 5, 2025 22:37
GitHub Issue Prompt for Personal Tasks
name about title labels assignees
Personal Task Issue Template
Prompt details of personal task issue
🌸-personal-task

Create a .github/ISSUE_TEMPLATE at the root of your repository

@daaimah123
daaimah123 / Quickly Delete & Archive Repos from GitHub via CLI in Terminal.md
Last active January 2, 2025 07:36
Organization script for quickly archiving and deleting batches of repos via CLI.

Manage Organization Repos: Delete & Archive

Deleting and archiving repos via command line interface in the terminal using a script (for organizations); accelerating the time spent on the task if you have a large supply of repos to manage. Note if you are doing this for an individual user profile, you will need to adjust the script slightly.

😩 Existing GitHub process for deleting a remote repository is arduous for large batches

delete stale repos

⚙️ Setting up the ./manage_repos.sh script

  • Generate a fine-grained Personal Access Token ID ($PAT_ID)
  • Request that the organization accept the token, review permissions
  • Test for org-repo permissions, run in the terminal: curl -H "Authorization: Bearer $PAT_ID" https://api.github.com/repos//
@daaimah123
daaimah123 / Deleting Multiple Repos from GitHub.md
Last active January 2, 2025 07:36
Org script for deleting multiple repos repos via CLI.

Multiple Remote Repository Deletion Script

Deleting multiple repos via command line interface in the terminal using a script (for organizations); saving hours of time if you have a large supply of repos to delete. Note if you are doing this for an individual user profile, you will need to adjust the script slightly.

😩 Existing GitHub process for deleting a remote repository is arduous for large batches

delete stale repos

⚙️ Setting up the ./manage_repos.sh script

  • Generate a fine-grained Personal Access Token ID ($PAT_ID)
  • Request that the organization accept the token, review permissions
  • Test for org-repo permissions, run in the terminal: curl -H "Authorization: Bearer $PAT_ID" https://api.github.com/repos/<Organization-Name>/<repo-name>
# All geos, all languages
language IN ["in", "en", "gb", "da", "nl", "fi", "fr", "de", "it", "ja", "ko", "no", "pt-br", "ru", "es", "sv",  "tr", "zh-tw"]

# Do NOT include Portuguese
language != "pt-br"

# English-only
language IN ["en", "gb"]

Find all merged branches

git branch --merged | grep -v \* | xargs

Delete all merged branches

git branch --merged | grep -v \* | xargs git branch -D

Delete all excluding main

@daaimah123
daaimah123 / Spread Operator, Rest Pattern, & Rest Parameters
Last active December 30, 2020 18:38
Notes for Jonas Schmedtmann's lecture on the spread operator, rest pattern, and rest parameters https://udemy.com/course/the-complete-javascript-course/learn/lecture/22648441#overview
const restaurant = {
name: 'Classico Italiano',
location: 'Via Angelo Tavanti 23, Firenze, Italy',
categories: ['Italian', 'Pizzeria', 'Vegetarian', 'Organic'],
starterMenu: ['Focaccia', 'Bruschetta', 'Garlic Bread', 'Caprese Salad'],
mainMenu: ['Pizza', 'Pasta', 'Risotto'],
openingHours: {
thu: {
open: 12,
close: 22,
================================================= Destructuring Arrays =================================================
Declare multiple variables at the same time on the left side > const arr = [1, 2, 3];
> const [a, b, c] = arr;
> console.log({a}, {b}, {c});
{a: 1} {b: 2} {c: 3}
const restaurant = {
name: 'Classico Italiano',
location: 'Via Angelo Tavanti 23, Firenze, Italy',
@daaimah123
daaimah123 / JavaScript: Behind the Scenes
Last active March 14, 2023 06:01
Notes for Behind the Scenes section of Jonas Schmedtmann's course lectures https://udemy.com/course/the-complete-javascript-course/learn/lecture/22648469#overview
==> Can use imperative or declarative paradigms and is very flexible.
==> First-class functions (treat functions as variables, passing a function into another function);
powerful; allows for functional programming.
==> Dyanmically-type language: no data type definitions, known at runtime and can be automatically changed
==> Concurrency model is JS handling multiple tasks at the same time.
==> Event Loops manage the Single-Thread (executed one task at a time) by taking long running tasks,
executing them in the background, then placing them back in the thread when finished. The Event Loop
prevent non-blocking behavior