Skip to content

Instantly share code, notes, and snippets.

View adetoola's full-sized avatar
😎

Adetola Onasanya adetoola

😎
View GitHub Profile
@adetoola
adetoola / nestjs-ai-prompt.md
Last active July 10, 2025 09:27
nestjs-ai-prompt

You are a seasoned software developer specializing in Typescript, JavaScript, Node.js, Prisma, GraphQL, PostgreSQL, TypeORM, and you occupy a senior position. Collaborating closely with Adetola, your mission is to independently and proactively develop a complete, functional application employing the CQRS pattern.

  1. You are inspired by the Gang of Four's design patterns, OWASP's security principles, the SOLID principles, clean code and prefer using 3rd-party applications when appropriate.
  2. While authoring NestJS code, you are committed to the domain architecture principle and are particular about creating unit tests. Whenever database queries are required, they should be made via an injectable service named PrismaService, which should be referred to as this.prismaService in the code.
  3. Your coding architecture flows as: Resolver/Controller → Service → Command/Command Handler or Query/Query Handler. In this structure:
  • The Resolver/Controller handles the request and forwards it to the appropriate s
# A quick script to concert a module name to another one.
# This script will change all the file name and it should be ran within the module root
# Then, the actual names can be replace using global search and replace within your favorite editor
# For the transition from facility to shop and facilities to shops:
# Search for: facilities
# Replace with: shops
# Perform this replacement first to ensure "facility" in "facilities" isn't mistakenly replaced.
# Search for: facility
@adetoola
adetoola / chatgpt.md
Created January 27, 2023 06:42 — forked from veekaybee/chatgpt.md
Everything I understand about chatgpt

ChatGPT Resources

Context

ChatGPT appeared like an explosion on all my social media timelines in early December 2022. While I keep up with machine learning as an industry, I wasn't focused so much on this particular corner, and all the screenshots seemed like they came out of nowehre. What was this model? How did the chat prompting work? What was the context of OpenAI doing this work and collecting my prompts for training data?

I decided to do a quick investigation. Here's all the information I've found so far. I'm aggregating and synthesizing it as I go, so it's currently changing pretty frequently.

Model Architecture

@adetoola
adetoola / unfollow-non-followers-twitter.js
Created January 17, 2022 08:22 — forked from jalbam/unfollow-non-followers-twitter.js
Code to stop following those ones who are not following you back on Twitter and keeping those you want or follow anyone you want, with certain filters (working in July 2019)
/*
Unfollow (stop following) those people who are not following you back on Twitter (or unfollow everyone if desired).
This will work for new Twitter web site code structure (it was changed from July 2019, causing other unfollow-scripts to stop working).
Instructions:
1) The code may need to be modified depending on the language of your Twitter web site:
* For English language web site, no modification needed.
* For Spanish language web site, remember to set the 'LANGUAGE' variable to "ES".
* For another language, remember to set the 'LANGUAGE' variable to that language and modify the 'WORDS' object to add the words in that language.
@adetoola
adetoola / twitter-unfollow-all.js
Created January 17, 2022 08:22 — forked from oatycreates/twitter-unfollow-all.js
Unfollow All for Twitter
/*
* Unfollow All for Twitter
*
* Go to https://twitter.com/<YourUserName>/following and run the
* below code in the console to gradually unfollow all accounts
* you are following, this should play nice with any rate limiting.
* Built on current Firefox (2021-08-26) though may work for others.
*
* Author: https://twitter.com/OatyCreates
* Copyright 2021-Present @oatycreates
@adetoola
adetoola / remove env file from git
Created November 20, 2020 16:51 — forked from gjerokrsteski/remove env file from git forever
remove env file from git history
echo '.env' >> .gitignore
git rm -r --cached .env
git add .gitignore
git commit -m 'untracking .env'
git push origin master
cd /Library/Preferences
sudo rm com.sophos.sav.plist

cd /Library/Application\ Support/Sophos/cloud/Installer.app/Contents/MacOS/tools/
sudo ./InstallationDeployer —force_remove
@adetoola
adetoola / editor.css
Created August 5, 2017 20:54 — forked from Hendrixer/editor.css
VS code custom CSS for theme
.composite-title, .composite-title, .vs-dark .monaco-workbench>.activitybar>.content {
background-color: rgba(40, 44, 52, 1) !important;
}
.tabs-container, .tab, .tab.active, .title-actions, .tablist, .tabs-container, .tabs, .composite.title {
background-color: rgba(40, 44, 52, 1) !important;
}
.tab.active, .tab {
border-right: 0px !important;
@adetoola
adetoola / Package Controls.sublime-settings
Last active July 28, 2016 08:21
Sublime Text 3 Preferences
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"AdvancedNewFile",
"Boxy Theme",
"Boxy Theme Addon - Font Face",