Skip to content

Instantly share code, notes, and snippets.

View zravi's full-sized avatar

RΛVI zravi

  • !
  • REPUBLIC OF INDIA
  • 02:43 (UTC +05:30)
  • X @_zrvi
View GitHub Profile
import React from 'react';
import './style.css';
class SignUpForm extends React.Component {
constructor() {
super();
this.state = {
fields: {},
errors: {}
@zravi
zravi / .NET WebApi structure
Last active May 28, 2023 12:53
how the .NET WebApi Boilerplate is structured.
Project Structure
Here is how the .NET WebApi Boilerplate is structured.
fullstackhero’s .NET WebApi Boilerplate is based on Clean Architecture. In other words, Onion / Hexagonal Architecture.
Read about the advantages and principles of Onion Architecture here →https://codewithmukesh.com/blog/onion-architecture-in-aspnet-core/
General Structure
This means that the entire solution is built in such a way that it can be scaled, maintained easily by teams of developers.
@zravi
zravi / html header footer
Created August 1, 2022 13:10
html header footer
@zravi
zravi / kmskeys10.txt
Created July 13, 2021 14:59 — forked from windoze/kmskeys10.txt
Windows 10 KMS Keys
Windows.10.and.Office.2016.gVLK
#####################################################################
# Install/Uninstall keys #
#####################################################################
1.) Uninstall the current product by entering the “uninstall product key” extension:
slmgr.vbs /upk
2.) Install the key that you obtained above for “Windows Srv 2012R2 DataCtr/Std KMS for Windows 10”
@zravi
zravi / wandows.md
Created June 27, 2021 17:23 — forked from Justasic/wandows.md
Installing Windows 8/8.1/10 without using the windows user-gudided setup on a UEFI system

Introduction

Windows has been a pain in everyone's ass since Microsoft decided to use UEFI and Safeboot with their operating system. Many people's solution to dual-booting (from my point of view) has been: "Format the entire physical disk, setup with GPT, let windows create too many partitions than it needs and monopolize the whole disk to itself."

So. In this gist, I will show you (with pictures too hopefully) how to "force" windows to be installed even though it refuses to. In this case I will be using my desktop which has a modern intel x86_64 CPU, 4 internal hard drives (no SSDs), and one single linux installation partitioned on the primary disk (which is where we will be installing windows as well).

Now the first issue I ran into was that my primary disk was originally not in the GPT partition format (since I partitioned the disk long before I had a UEFI capable bios). After using a linux bootable and gdisk, I was able to convert it from MBR to GPT and boot linux via GRUB EFI.

@zravi
zravi / format_disk_diskpart.bat
Created April 16, 2021 10:27 — forked from trevor229/format_disk_diskpart.bat
Diskpart Automation Script
:: Windows diskpart batchfile for easily formatting, creating a primary partition with a label, and attaching the disk to user defined values
:: https://github.com/trevor229
@echo off
net session >nul 2>&1
if %errorLevel% == 0 (
goto :drive_handler
) else (
@echo Failure: Script must be run as Administrator.
pause
@zravi
zravi / BITS_DN.CMD
Created April 6, 2021 17:58 — forked from WiVi71/BITS_DN.CMD
Simple batch file script to download file with progress bar using BITSAdmin
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
FOR /F %%A IN ('COPY /Z "%~DPF0" NUL') DO SET "CR=%%A"
FOR /F %%B IN ('ECHO PROMPT $H ^| CMD') DO SET "BS=%%B"
(SET \N=^
%=_Empty_Line_=%
)
:BITS_DN
IF NOT [%2] == [] IF [%3] == [] GOTO BITS_SET
@zravi
zravi / bcdedit.ps1
Created April 6, 2021 17:15 — forked from tugberkugurlu/bcdedit.ps1
bcdedit examples
##################################################
#resources
##################################################
#http://technet.microsoft.com/en-us/library/cc721886(v=ws.10).aspx
#http://technet.microsoft.com/en-us/library/cc709667(v=ws.10).aspx
##################################################
#resources
##################################################
####################################################################################
@zravi
zravi / uefi.cmd
Created March 14, 2021 17:57 — forked from garrydzeng/diskpart.txt
DiskPart Script: Recommended Configuration
rem == CreatePartitions-UEFI.txt ==
rem == These commands are used with DiskPart to
rem create five partitions
rem for a UEFI/GPT-based PC.
rem Adjust the partition sizes to fill the drive
rem as necessary. ==
select disk 0
clean
convert gpt
rem == 1. Windows RE tools partition ===============
@zravi
zravi / .. MediaCreationTool.bat .md
Created November 1, 2020 16:10 — forked from AveYo/.. MediaCreationTool.bat ..md
Universal MediaCreationTool wrapper for all MCT Windows 10 versions from 1507 to 20H2 with business (Enterprise) edition support

Preview1 Preview2

2018.10.10: reinstated 1809 [RS5]! using native xml patching for products.xml; fixed syntax bug with exit/b
2018.10.12: added data loss warning for RS5
2018.11.13: RS5 is officially back! + greatly improved choices dialog - feel free to use the small snippet in your own scripts
2019.05.22: 1903 [19H1]
2019.07.11: 1903 __release_svc_refresh__ and enable DynamicUpdate by default to grab latest CU
2019.09.29: UPDATED 19H1 build 18362.356 ; RS5 build 17763.379 and show build number