Skip to content

Instantly share code, notes, and snippets.

#this will install OpenCV on window 10
@echo off
set OPENCV4NODEJS_DISABLE_AUTOBUILD=1
choco install OpenCV -y -version 4.1.0
cd c:\tools
@Deepankar1993
Deepankar1993 / MSSQL_DELETE_ALL_DATA.sql
Created January 17, 2021 19:49 — forked from rvegajr/MSSQL_DELETE_ALL_DATA.sql
MSSQL Delete all rows from every table and reseed
--Disable all check constraints on all tables
EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL'
GO
--Disable all triggers on all tables
EXEC sp_MSForEachTable 'DISABLE TRIGGER ALL ON ?'
GO
--Delete all data from all tables
EXEC sp_MSForEachTable 'SET QUOTED_IDENTIFIER ON; DELETE FROM ?'
@Deepankar1993
Deepankar1993 / readme.md
Created May 15, 2019 10:25 — forked from troyfontaine/readme.md
Resize root partition (or how to remove the default /home partition) on CentOS 7 online

Resize root partition (or how to remove the default /home partition) on CentOS 7 online

This requires you to be able to ssh into the instance using the root user account and that no services be running as users out of /home on the target machine.

The examples are from a default installation with no customation-you NEED to know what you're working with for volumes/partitions to not horribly break things.

By default, CentOS 7 uses XFS for the file system and Logical Volume Manager (LVM), creating 3 partitions: /,/home and

Step 1 - Copy /home Contents

To backup the contents of /home, do the following: