Weather program for macbook https://heat-meteo.sourceforge.io/
Charge your mac up to 80% only https://apple.stackexchange.com/questions/406957/can-i-tell-my-mac-to-charge-to-80-only
Mac open source https://opensource.apple.com/
The procedure to reinstall laptop
1) Join domain (optional) 2) Office install 3) Email + Signature 4) Printer setup 5) Copy profiles from backup over. 6) Set paging file.
My favourite commands
Take over the folder permission and grant access for everyone.
takeown /r /d y /f C:\Temp
icacls C:\Temp /t /grant Everyone:(OI)(CI)F
Sql commands
select * from [table]
select * from [table] where name=’name’
insert into [table] (Name1, name2, name3) values (‘Value1’,’Value2’,’Value3’)
update [table] set name=’new name’ where name=’current name’
Restart / stop SMTP service
start-service smtpsvc
stop-service smtpsvc
set-service smtpsvc -Startuptype Automatic
get-service smtpsvc
Check system boot time, up time.
systeminfo | find /i “Boot Time” |
Event ID 6009
systeminfo | find “System Up Time” |
systeminfo | find “System Boot Time” |
Cleanup windows
dism.exe /Online /cleanup-image /StartComponentCleanup
Kill active connections.
USE master;
GO
ALTER DATABASE [DATABASE]
SET SINGLE_USER
WITH ROLLBACK IMMEDIATE;
ALTER DATABASE [DATABASE]
SET MULTI_USER;
GO