Skip to content

Instantly share code, notes, and snippets.

@hkbertoson
hkbertoson / ApiRequest.ts
Created May 31, 2023 15:22
Utility class for making API requests.
/**
* Utility class for making API requests.
*/
export default class ApiRequest {
static async sendRequest(method: string, action: object): Promise<any> {
const url = '/backend/web/api/v4/react/endpoint';
const response = await fetch(`${url}?method=${method}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@hkbertoson
hkbertoson / windows10activate.bat
Created July 14, 2022 16:00
Activate Windows 10
@echo off
title Activate Windows 10 ALL versions for FREE!&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products:&echo - Windows 10 Home&echo - Windows 10 Home N&echo - Windows 10 Home Single Language&echo - Windows 10 Home Country Specific&echo - Windows 10 Professional&echo - Windows 10 Professional N&echo - Windows 10 Education&echo - Windows 10 Education N&echo - Windows 10 Enterprise&echo - Windows 10 Enterprise N&echo - Windows 10 Enterprise LTSB&echo - Windows 10 Enterprise LTSB N&echo.&echo.&echo ============================================================================&echo Activating your Windows...&cscript //nologo slmgr.vbs /ckms >nul&cscript //nologo slmgr.vbs /upk >nul&cscript //nologo slmgr.vbs /cpky >nul&set i=1&wmic os | findstr /I "enterprise" >nul
if %errorlevel% EQU