Skip to content

Instantly share code, notes, and snippets.

View walosha's full-sized avatar
💭
Available for Hire

Olawale Afuye walosha

💭
Available for Hire
View GitHub Profile
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@walosha
walosha / backend-architectures.md
Created February 14, 2021 02:18 — forked from ngocphamm/backend-architectures.md
Backend Architectures
@walosha
walosha / deploy-mern.md
Created November 21, 2022 17:51 — forked from rmiyazaki6499/deploy-mern.md
Deploying a Production ready React-Express app on AWS EC2 with CI/CD

Deploying a Production ready React-Express app on AWS

In this tutorial, I will be going over to how to deploy a Javascript app from start to finish using AWS and EC2. Recently, my partner Tu and I launched our app AlgoAcademy (a resource for reviewing algorithms and data structures) and we wanted to share with other developers some of the lessons we learned along the way.

Following this tutorial, you will have an application that has:

  • A React frontend, Express backend
  • An AWS EC2 server configured to host your application
  • SSL-certification with Certbot
  • A custom domain name
@walosha
walosha / gist:31cd6ab71f2b639421ac2b1291d162d7
Last active October 2, 2023 22:15
Hosting backend on EC2 with Github actions

Create AWS EC2 Instance

  • Go to the AWS Management Console. Launch a new EC2 instance.

  • Set security rules:

    • Click on "Security" in the EC2 dashboard.
    • Click "Security Groups."
    • Select your security group and click "Edit Inbound Rules."
@walosha
walosha / django_deploy.md
Last active December 28, 2022 02:12 — forked from bradtraversy/django_deploy.md
Django Deployment - Digital Ocean
@walosha
walosha / ssh.md
Created December 28, 2022 02:03 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh [email protected]

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

Firebase Setup For House Marketplace

  1. Create Firebase Project
  2. Create "web" app within firebase to get config values"
  3. Install firebase in your project "npm i firebase
  4. Create a config file in your project
  5. Add authentication for email/password and Google
  6. Create a user from Firebase
  7. Enable Firestore
  8. Add rules for firestore
@walosha
walosha / accounting.sql
Created October 14, 2023 22:56 — forked from NYKevin/accounting.sql
Basic double-entry bookkeeping system, for PostgreSQL.
CREATE TABLE accounts(
id serial PRIMARY KEY,
name VARCHAR(256) NOT NULL
);
CREATE TABLE entries(
id serial PRIMARY KEY,
description VARCHAR(1024) NOT NULL,
amount NUMERIC(20, 2) NOT NULL CHECK (amount > 0.0),
-- Every entry is a credit to one account...
{
billResponse: {
status: '00',
message: 'Successfull',
wallet_balance: 14411.77,
order: 'GOtv Lite N1,400 to 8059920770. ',
ref: '231117928264',
response_hash: '9fff70a3d8ab1ba1b3464c2556645b54aa3098c1'
}
}
import { HttpException, HttpStatus, Logger } from "@nestjs/common";
import axios from "./client";
import {
handleErrorResponse,
handleSuccessResponse,
} from "@/utils/handleError";
import { Wallet } from "@/modules/wallet/entity/wallet.entity";
import { InjectRepository } from "@nestjs/typeorm";
import { Repository } from "typeorm";
import { UserInfo } from "@/modules/user/entity/user.entity";