Skip to content

Instantly share code, notes, and snippets.

@ccy
ccy / disable-defender.ps1
Created January 20, 2024 01:52
Disable Windows Defender
# Disable Windows defender tasks in Normal mode
Get-ScheduledTask | Where-Object { $_.TaskName -like "Windows Defender*" } | Disable-ScheduledTask
# Reboot to safe mode (Boot option: Safe mode)
msconfig
# Disable these services in safe mode
foreach ($SVC in "Sense", "WdBoot", "WdFilter", "WdNisDrv", "WdNisSvc", "WinDefend") { Set-ItemProperty -Path ("HKLM:\SYSTEM\CurrentControlSet\Services\" + $SVC) -Name Start -Value 4 }
# Reboot to normal mode (Startup Selection: Normal startup)
@ccy
ccy / readme.adoc
Last active September 30, 2023 08:28
KVM installation

Prepare Installation Media on USB

Disk layout

Partition Disk 1 Disk 2 Type Device Mount Point
@ccy
ccy / linux-install.adoc
Last active June 15, 2023 04:36
Linux - Installation

Storage Layout

Production 1

@ccy
ccy / jompay.txt
Created February 11, 2023 02:27
jompay
2022-12-16T06:02:31+08:00
416446 ALPLUSSHINE
14548 ALPRO PHARMACY
355727 ALQARNI MEDITECH SDN BHD
884510 ALR SYNERGY LOGISTIC SDN BHD
509331 ALROHMAH TOURS AND SERVICES SB
45070 ALTAMIJ CAPITAL RESOURCES
7500 ALTEL COMM
22103 ALTER NATIF ENTERPRISE
604256 ALTIS HOLIDAYS SDN BHD
69.63.176.0/20
66.220.144.0/20
66.220.144.0/21
69.63.184.0/21
69.63.176.0/21
74.119.76.0/22
69.171.255.0/24
173.252.64.0/18
69.171.224.0/19
69.171.224.0/20
@ccy
ccy / preseed.cfg
Last active April 17, 2022 12:39
Debian preseed
#### Contents of the preconfiguration file (for stretch)
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
# The values can also be preseeded individually for greater flexibility.
#d-i debian-installer/language string en
#d-i debian-installer/country string NL
#d-i debian-installer/locale string en_GB.UTF-8
# Optionally specify additional locales to be generated.
@ccy
ccy / readme.adoc
Created September 5, 2021 02:17
Manage text file EOL with WSL to access git working tree clone form windows

Introduction

This is a dicussion to manage EOL (end of line) of text file store in GIT repository.

There are 2 EOL style:

  • LF (0x0A): Linux Style - Utilize in Linux text files and Git Repository

  • CRLF (0x0Dh 0x0A): Windows Style - Utilize in Windows text files.

@ccy
ccy / readme.adoc
Last active August 27, 2021 02:40
Debug Access Violation running `EMSDevServerCommand` in Debian on WSL2

Symptom

Access Violation occur when executing `EMSDevServerCommand``for RAD Server on Debian platform:

$ ./EMSDevServerCommand
@ccy
ccy / e1d68x64.inf
Last active August 26, 2021 14:28
Intel I219-V patched network driver for Windows Server
;******************************************************************************
;** **
;** Copyright 2009-2019 Intel Corporation. All Rights Reserved. **
;** **
;** The material contained or described herein and all documents related **
;** to such material ("Material") is owned by Intel Corporation or its **
;** suppliers or licensors, and title to such Material remains with Intel **
;** Corporation or its suppliers or licensors. The Material contains **
;** proprietary information of Intel or its suppliers and licensors. The **
;** Material is protected by worldwide copyright laws and treaty **