Skip to content

Instantly share code, notes, and snippets.

View nayan2's full-sized avatar

Hossain, Md. Amjad nayan2

View GitHub Profile
@nayan2
nayan2 / xlsx_to_csv_ps1
Created March 13, 2021 17:10
Convert xlsx file multiple sheet data to csv
$a=gci Data*
$xls=new-object -comobject excel.application
$sheets=$xls.workbooks.open($a.fullname).worksheets
$xls.displayalerts=$false
foreach($sheet in $sheets){$sheet.saveas($a.directoryname + "\" + $sheet.name + ".csv",6)}
import-csv(gci *.csv)|export-csv all.csv
@nayan2
nayan2 / Desktime.Hack.ps1
Last active August 23, 2020 17:44
This is a script that will help you to hack your Desktime activity by moving mouse continuously
# Clear the host
Clear-Host
# Write/Log the starting date and time
Write-Host "Desktime Hack Started At" (Get-Date -Format G) -ForegroundColor Red
# Load assembly to manipulate mouse funationality
Add-Type -AssemblyName System.Windows.Forms
Add-Type @"
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals": {
"alwaysShowTabs": true,
"defaultProfile": "{79285a8e-036c-446f-8a9c-78994e34cf85}",
"initialCols": 120,
"initialRows": 30,
"requestedTheme": "dark",
"keybindings": [
{