Skip to content

Instantly share code, notes, and snippets.

View Tinyu01's full-sized avatar

MASINGITA OTTIS MALULEKE Tinyu01

View GitHub Profile
@Tinyu01
Tinyu01 / graphql-queries-mutations.md
Created September 5, 2024 04:44 — forked from bradtraversy/graphql-queries-mutations.md
GraphQL Queries & Mutations

GraphQL Queries & Mutations

These are the GraphQL queries and mutations for the YouTube course.

Get names of all clients

{
  clients {
    name
 }
@Tinyu01
Tinyu01 / gist_to_github_repo.md
Created August 18, 2024 09:14 — forked from bitsnaps/gist_to_github_repo.md
Transfer a gist to a GitHub repository

Transfer a gist to a GitHub repository

clone the gist

git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9

rename the directory

mv 6fb35afd237e42ef25f9 ConvertTo-Markdown

change the working directory to the newly renamed directory

cd ConvertTo-Markdown

@Tinyu01
Tinyu01 / bootstrap5.md
Created August 18, 2024 08:57 — forked from bitsnaps/bootstrap5.md
A cheat sheet for Bootstrap 5

Bootstrap v5 Cheat Sheet:

This cheat sheet provides a comprehensive overview of the Bootstrap v5 CSS framework, including its layout system, typography, colors, components, utilities, JavaScript plugins, customization options, accessibility considerations, responsive utilities, and RTL support.

It also demonstrates with some code usage examples how to use various features in your HTML and CSS code.

1. Layout

  • Container: .container, .container-fluid, .container-{breakpoint}
  • Grid system: .row, .col, .col-{breakpoint}-{size}
  • Responsive breakpoints: sm, md, lg, xl, xxl

Tools for Network Monitoring

The purpose of this document is to show utilities that are available in the Linux world to monitor network traffic (so we're not reinventing the wheel).

Here are some good resources to read, but this file contains my favorite utilities:

@Tinyu01
Tinyu01 / getting-started-mysql.md
Created August 18, 2024 08:38 — forked from davydany/getting-started-mysql.md
Getting Started with MySQL

Getting Started with MySQL

I swap between databases all the time for various projects, and end up Googling on how to do the inital setup all the time, so the purpose of this document is to list a set of commands that anyone would end up using in getting started.

Getting Started with the MySQL Client Console

Login to the MySQL console as the root user, with your password for the root user.

@Tinyu01
Tinyu01 / npm-cheat-sheet.md
Created August 18, 2024 08:34 — forked from AvnerCohen/npm-cheat-sheet.md
Node.js - npm Cheat Sheet

Node.js - npm Cheat Sheet

(Full description and list of commands at - https://npmjs.org/doc/index.html)

List of less common (however useful) NPM commands

Prepand ./bin to your $PATH

Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:

@Tinyu01
Tinyu01 / node-js-cheatsheet.md
Created August 18, 2024 08:29 — forked from matejhocevar/node-js-cheatsheet.md
Node.js Cheatsheet
@Tinyu01
Tinyu01 / postgres.md
Created August 18, 2024 08:08 — forked from awkale/postgres.md
#cheatsheet #postgres

start

pg_ctl -D /usr/local/var/postgres start

stop

pg_ctl -D /usr/local/var/postgres stop

Start automatically

brew services start postgresql

check if postgress is running

@Tinyu01
Tinyu01 / postgresql-cheatsheet.md
Created August 18, 2024 08:07 — forked from davydany/postgresql-cheatsheet.md
PostgreSQL Cheat Sheet

PostgreSQL Cheat Sheet

My personal Cheatsheet for PostgreSQL

Quick Commands

Creating a DB and Setting its Ownership

To create a database, you need to first ensure that the database's role exists first. Role and User are synonymous in PostgreSQL. Once you create the ROLE, you can create the Database and set the OWNER as the ROLE.

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH