Skip to content

Instantly share code, notes, and snippets.

View alphaolomi's full-sized avatar
🎯
Focusing

Alpha alphaolomi

🎯
Focusing
View GitHub Profile
/* *******************************************************************************************
* REACT.JS CHEATSHEET
* DOCUMENTATION: https://reactjs.org/docs/
* FILE STRUCTURE: https://reactjs.org/docs/faq-structure.html
* ******************************************************************************************* */
```
npm install --save react // declarative and flexible JavaScript library for building UI
npm install --save react-dom // serves as the entry point of the DOM-related rendering paths
@alphaolomi
alphaolomi / keybase.md
Created December 5, 2019 19:57
Keybase

Keybase proof

I hereby claim:

  • I am alphaolomi on github.
  • I am c0de1 (https://keybase.io/c0de1) on keybase.
  • I have a public key ASCJLZPlbe0uorpIcXDqQr5XH-48vrFXBruu0Q9PhQrOTQo

To claim this, I am signing this object:

@alphaolomi
alphaolomi / pgp.txt
Created December 5, 2019 20:03
My Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: https://keybase.io/download
Version: Keybase Go 5.0.0 (linux)
xsFNBF3pYmQBEACdCmGDus5GD3qDuZ4YvVDqUB7BQumhdm5xZdUVu6T/G5xgpT01
6JWTvD+oNLA9nW/lyfDVY83H/W52Ex579omlI9sbRJ8cB5WGgR0lj/zxHi+zEfFJ
Vy1Io6RPhhnGb6EoTpPFki3c5GLmFYvrDq7a/JBuD3WGCgg6ABPVsCbdD2MV+tSO
YbbVlU675NMiXbDVZs+arwaRKrb826tbeKdmXJ8ihb5HhRVUI6I/qC1U29MbO41G
f+4jkn9KdpxetY63J/EWxy3QqFzrjcOg4XVegrCiIBzN6ujOzQHcVbSscKn7vQAG
lCvl8Z3plaPVKQzvYuTMJ2VViAui5PQQ7ttr2vgIR/vxSayM5FbjSs5YN0Z1xuTe
@alphaolomi
alphaolomi / tsql_cheat.md
Created June 24, 2020 16:50
T-SQL for SQL Server Cheat Sheet

T-SQL for SQL Server Cheat Sheet

In short T-SQL is an extension of SQL language.

T-SQL(Transact-SQL) is a set of programming extensions from Sybase and Microsoft that add several features to the Structured Query Language (SQL), including transaction control, exception and error handling, row processing and declared variables

Databases

@alphaolomi
alphaolomi / sql_server.md
Last active December 21, 2025 15:03
SQL Server for Linux(Debian/Ubuntu)

SQL Server

Install the SQL Server command-line tools

  • Import the public repository GPG keys.
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

Kali Linux Meta Packages

sudo apt install kali-linux-core
@alphaolomi
alphaolomi / object_merge.js
Created August 6, 2020 09:07
Spread Operator in JS
const morning = {
breakfast: "oatmeal",
lunch: "peanut butter and jelly"
}
const dinner = "mac and cheese"
const backpackingMeals = {
...morning,
dinner
}
@alphaolomi
alphaolomi / users.test.ts
Created February 3, 2021 05:27
Axios Mocking with Typescript
// users.test.ts
import axios from 'axios';
import Users from '../src/users';
jest.mock('axios');
const mockedAxios = axios as jest.Mocked<typeof axios>;
let us: Users;
beforeAll(() => {
us = new Users();
@alphaolomi
alphaolomi / index.md
Last active June 23, 2025 20:10
Quote of the Day (QOTD) Protocol

Quote of the Day

from https://www.gkbrk.com/wiki/qotd_protocol/

Tags: networking protocol

Quote of the Day is a simple protocol that is used to deliver daily quotes. Although its usage is almost nonexistent these days, there are still a few public servers. The protocol is defined by RFC 865. According to the RFC, a QOTD server is run on port 17 for TCP and UDP connections.

The RFC recommends that;

@alphaolomi
alphaolomi / readme.md
Created July 4, 2021 07:14
Simple Readme

Title

a very long description

1. About

2. Purpose

3. What problems does it solve?

4. How does it work?