Skip to content

Instantly share code, notes, and snippets.

View RoboCOVA's full-sized avatar

Tesfaye Mengesha RoboCOVA

  • United States
View GitHub Profile
@RoboCOVA
RoboCOVA / microgpt.py
Created February 12, 2026 19:07 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@RoboCOVA
RoboCOVA / sendsqs.js
Created January 24, 2022 18:59 — forked from johntdyer/sendsqs.js
AWS Lambda sample: Send received events to SQS as Message
// PUT YOUR AWS ACCOUNT NUMBER HERE
var AWS_ACCOUNT_ID= '12345';
// PUT YOUR SQS QUEUE NAME HERE
var AWS_SQS_QUEUE_NAME='catch-dlr-dyer-testing';
var QUEUE_URL = 'https://sqs.us-east-1.amazonaws.com/' + AWS_ACCOUNT_ID + '/' + AWS_SQS_QUEUE_NAME;
var AWS = require('aws-sdk');
var sqs = new AWS.SQS({region : 'us-east-1'});
@RoboCOVA
RoboCOVA / index.js
Created September 18, 2021 20:22 — forked from zerbfra/index.js
node-postgres connection and query with async/await
const pg = require('pg')
// create a config to configure both pooling behavior
// and client options
// note: all config is optional and the environment variables
// will be read if the config is not present
var config = {
user: '', // env var: PGUSER
database: '', // env var: PGDATABASE
password: '', // env var: PGPASSWORD
@RoboCOVA
RoboCOVA / node_nginx_ssl.md
Created March 12, 2021 03:04 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@RoboCOVA
RoboCOVA / Dockerfile
Created October 2, 2020 16:06 — forked from SHAGGYER/Dockerfile
Docker - Node JS - React - DigitalOcean Deployment
# Setup and build the client
FROM node:10 as client
WORKDIR /usr/app/client/
COPY client/package*.json ./
RUN yarn install
COPY client/ ./
RUN yarn run build