Skip to content

Instantly share code, notes, and snippets.

@xbns
xbns / README.md
Last active April 6, 2026 09:42
[Convert Word doc to HTML then to Markdown] The best way to convert a styled word document table to a clean html with css, then to a markdown grid table #markdown #pandoc #docx #html

Convert word document to mardown, via html with internal css

Using Google Docs

> copied from AI

Google Docs provide a clean way to export documents as a zipped HTML package.

Am assuming you are using Windows

@xbns
xbns / api-testing.md
Created March 30, 2026 07:44
[API Testing] test cases for API Testing #ai #api #testing

API test cases can be broadly categorized into functional, performance, and security testing. A comprehensive approach involves testing both positive scenarios (valid inputs and expected outcomes) and negative scenarios (invalid inputs and error handling) across various aspects of the API.

Functional Test Cases

Functional testing ensures that the API behaves as expected according to its specifications.

  • Status Code Validation: Verify the API returns the correct HTTP status code for every request.
@xbns
xbns / zsh_antigen_oh-my-zsh_powerlevel10k.md
Created June 9, 2022 21:17
{Installation of zsh in wsl2] Install Zsh, Antigen plugin manager, Oh My Zsh extensions & powerlevel10k Theme in wsl1 #zsh #wsl2 #antigen #oh-my-zsh

1. How to install zsh package on ubuntu 20.04

$ sudo apt install zsh

*Launch Zsh

$ zsh
@xbns
xbns / refind.conf
Last active November 13, 2025 08:35
How to install rEFInd Boot Manager & bootloader
timeout 20
use_graphics_for linux
scanfor internal,external,optical,manual,firmware
dont_scan_files grubx64.efi
#include manual.conf
@xbns
xbns / merge.md
Last active August 9, 2021 11:00
#ghostscript #pdf
@xbns
xbns / pandoc-docx-docx.bat
Created May 24, 2021 06:37
#batch convert from docx to docx using pandoc
:: 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 / pretty-powershell.md
Last active May 20, 2021 05:54
#powershell #windows Pretty Powershell Prompt

Make a pretty powershell prompt using delugia nerd font, oh-my-posh and jandedobbeleer theme

Delugia Nerd Font has support for gylphs

1. Install Git

winget install Git

2. Install oh-my-posh module

@xbns
xbns / arch-install-gpt-synopsis.md
Last active December 30, 2020 01:13
Simple way to Install Arch Linux on UEFI system

Step 1 Connect to internet from install disk or usb

Start iwd.service and connect your wifi

# systemctl start iwd.service
# systemctl status iwd.service
# iwctl --passphrase <you_wifi_password> station <name_of_station> connect <wifi_name>
# timeout 2 ping google.com
@xbns
xbns / cloudSettings
Last active December 19, 2020 00:25
VS Code Setting #settings
{"lastUpload":"2020-12-18T21:25:40.250Z","extensionVersion":"v3.4.3"}
@xbns
xbns / world-schema.sql
Created December 16, 2020 20:30
World Schema #database #schema
-- MySQL dump 10.13 Distrib 5.1.51, for pc-linux-gnu (i686)
--
-- Host: 127.0.0.1 Database: world
-- ------------------------------------------------------
-- Server version 5.1.51-debug-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES latin1 */;