Skip to content

Instantly share code, notes, and snippets.

@xbns
xbns / as_code.md
Created February 24, 2020 14:03
#as_code

Diagram As Code

Plant UML

Infrastructure As Code

@xbns
xbns / README.MD
Last active May 1, 2020 20:11
#katex #maths #visual studio code extensions # markdown

Question: $45\space is\space 18%$ of what number?

$\therefore {part \over whole} = \frac{45}{x} = \frac{18}{100}$

$18\cdot x = 45\cdot100$

$\sout{18}\cdot x = 45\cdot100\swarrow$ Divide by 18 on both sides of equation

@xbns
xbns / sw-to-install-after-arch-install.md
Last active July 23, 2020 11:39
After Arch Linux Installation #arch-linux
@xbns
xbns / arch-linux-installation-on-uefi-gpt-system.md
Last active April 3, 2025 08:07
Installing Arch Linux for UEFI/GPT System #arch-linux

Installing Arch Linux for UEFI/GPT System

For BIOS/MBR Legacy system refer to here

Installation process over a Wi-Fi

Download the .iso file from Arch Linux Official Site.

Step 1: Make a Live USB Disk and boot from it.

@xbns
xbns / arch-linux-installation-on-mbr-system.md
Last active February 6, 2025 04:59
Arch Linux Installation Process for a Legacy/BIOS/MBR System #arch-linux

Arch Linux Installation Process for a Legacy/BIOS/MBR System

We will tackle this process in 10 steps listed below.

I didn't want to repeat some sections well explained in the UEFI Process. You can refer there and follow due process.

Namely;

  • Connecting to WiFi.
@xbns
xbns / why-this-partitioning-scheme.md
Last active August 4, 2024 12:09
Why this partitioning scheme #arch-linux

Why this partitioning scheme

Laptop 1: hp-4540s-i5 (BIOS/MBR)

$ sudo dmidecode | grep -A3 '^System Information'
System Information
@xbns
xbns / pandoc-docx-md.bat
Created December 10, 2020 23:03
[Pandoc Conversion] convert form markdown to docx format #script #batch
:: pandoc-docx-md.bat
::
:: Don't show these commands to the user
@ECHO off
:: Set the title of the window
TITLE Convert docx to markdown with Pandoc
:: Select file marker
:selectfile
:: Clear any preexisting filename variables
SET filename=
@xbns
xbns / simple-test.py
Created December 11, 2020 10:34
[simple test] example test using pytest_server,unittest and requests libraries
import requests
import unittest
from pytest_httpserver import HTTPServer
import json
class APITest(unittest.TestCase):
def test_my_client(self):
with HTTPServer() as httpserver:
# set up the server to serve "/" with the json
httpserver.expect_request('/content').respond_with_json({'result': 30})
@xbns
xbns / README.md
Last active December 12, 2020 12:12
[Address Book SQL Schema] #sql #schema

Learn SQL

Exercise 1 - Design an Address Book Database

Create a set of tables to store data for an address book(contact) application Bare in mind the following design criteria

  1. The application will be used by multiple people so the database should also store a list of users

  2. The people(contacts) in the database will be owned by only one user - 1 to 1 relationship

@xbns
xbns / README.md
Created December 12, 2020 10:27
[Fly For Less SQL Schema] Airport Database Schema #sql #schema

Exercise 3 - Select Practise

Create SQL queries to accomplish the following tasks using the fly for less database

  1. Select all the records from the price table.

  2. Select just the names of all the cities

  3. Select the IATA code and details of all the terminals