Skip to content

Instantly share code, notes, and snippets.

View Oliver-ke's full-sized avatar
💭
-code -eat -sleep -repeat

Azorji Kelechi Oliver Oliver-ke

💭
-code -eat -sleep -repeat
View GitHub Profile
@Oliver-ke
Oliver-ke / collaboration.md
Last active July 14, 2022 19:31
This gist containes common conventions such as PR naming, Commit messages, PR description that should be followed for a teams project

Branch Naming

Branches being created should have the following format:

<story type>/<story id>/<3-4 word story description>

#Example

chore/111504508/save-the-world

@Oliver-ke
Oliver-ke / EditorSettings.json
Created August 18, 2019 01:36
Vscode editor settings
{
"window.zoomLevel": 1,
"liveServer.settings.donotShowInfoMsg": true,
"workbench.iconTheme": "material-icon-theme",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
"editor.wordWrap": "bounded",
"editor.trimAutoWhitespace": true,
"editor.fontFamily": "Fira Code",
version: "3"
services:
app:
restart: always
build: .
container_name: wolfsbane-backend
links:
- postgres
environment:
DEV_DATABASE_URL: postgres://devuser:1234@postgres:5432/dev_db
@Oliver-ke
Oliver-ke / node_nginx_ssl.md
Created September 23, 2019 16:14 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to Digital Ocean 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

@Oliver-ke
Oliver-ke / vscode_shortcuts.md
Created April 16, 2020 04:09 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@Oliver-ke
Oliver-ke / FM-fullstack.md
Last active July 14, 2022 14:10
Note on Full Stack development at Frontend Masters

Note on Full Stack development at Frontendmasters.com

note: exclude the leading $ for commands, that just shows it a bash script and is meant to be run in a terminal

Full Stack => Knowing everything up from the front to the back

Frontend can be

  • Cars, -television, -browser, -etc

backend can be

  • API's, -platform, -Database -Security,

Login to PostgreSQL from command line

sudo -u postgres psql postgres

or

psql -u [username] -d [database name]
import React, { useState, useEffect } from 'react';
import { Link, useHistory, useLocation } from "react-router-dom";
import axios from '../../services/axios';
import { message as alert } from 'antd';
import Header from '../header/header.component';
import './update-resources.css';
import Spinner from '../spinner/spinner.component';
export default function updateResource(props) {
const [loading, setLoading] = useState(false);

Langage

  • Typescript

Frontend

  • Reactjs
  • Jest
  • Apollo Client
  • Auth0
  • Eslint and prettier
  • Travis

This gist contains useful code, packagesS, script, commands for computer networking and systems admins

Scripts

Type: (powershell)
Purpose: Provides users file access to admin on login
$user = "presidential\wheel"
$paths = @($env:userprofile)
$folders = @(