Skip to content

Instantly share code, notes, and snippets.

0:000> .symopt+ bffff
Symbol options are 0xBFFFF:
0x00000001 - SYMOPT_CASE_INSENSITIVE
0x00000002 - SYMOPT_UNDNAME
0x00000004 - SYMOPT_DEFERRED_LOADS
0x00000008 - SYMOPT_NO_CPP
0x00000010 - SYMOPT_LOAD_LINES
0x00000020 - SYMOPT_OMAP_FIND_NEAREST
0x00000040 - SYMOPT_LOAD_ANYTHING
0x00000080 - SYMOPT_IGNORE_CVREC
@alastorid
alastorid / NtBuildNumber.pl
Created March 6, 2025 19:30
Perl Get Windows Build Number
print unpack("L", unpack("P4", pack("J", 0x7FFE0260))), "\n";
@alastorid
alastorid / gist:ecbcc3c0b6ea5d12c529393194765d7b
Created February 27, 2025 13:02
請不吝點贊 訂閱 轉發 打賞支持明鏡與點點欄目
請不吝點贊 訂閱 轉發 打賞支持明鏡與點點欄目
請不吝點贊 訂閱 轉發 打賞支持明鏡與點欄目
字幕:李宗盛
錄音:吳宗盛
文字幕:李宗盛
搜尋中文字幕:蘇曉雅
中文字幕:周傑
中文字幕:宇宙
演唱 李宗盛
李宗盛
@alastorid
alastorid / aaa.md
Created December 10, 2024 19:06
api-ms-win-core-file-l1-2-2.dll is not found... WTF?

What is api-ms-XXX

A stub dll acts as a pointer to the actual dll that does the work.

Without the stub:
  Your program: I need ReadConsoleW from kernel32.dll
  kernel32.dll: I'm here.
Your program works.
-------
With the stub:
# Enable all components
Set-VMProcessor MyVMName -Perfmon @("ipt", "pmu", "lbr", "pebs")
Set-VMProcessor bla -Perfmon @("pmu")
Set-MlnxPCIDeviceSriovSetting -Name "HCA 0" -SriovPortMode 2 -SriovPort1NumVFs 0 -SriovPort2NumVFs 64 -Confirm:$false
Get-VM|Set-VMNetworkAdapter -IovWeight 100 -IovQueuePairsRequested 8
@alastorid
alastorid / gist:3efcc0177c7e48228d0ac498009fdce9
Created July 14, 2024 01:37
one fix to socket 10106 error
mklink /J C:\Windows\^%SystemRoot^% C:\Windows
rem should work for mt4099 too
rem some server may failed to boot, be careful
mlxconfig -d mt4103_pci_cr0 set LOG_BAR_SIZE=2
mlxconfig -d mt4103_pci_cr0 set SRIOV_EN=1 LINK_TYPE_P1=2 LINK_TYPE_P2=2 NUM_OF_VFS=64
mlxconfig -d mt4099_pci_cr0 set LOG_BAR_SIZE=2
mlxconfig -d mt4099_pci_cr0 set SRIOV_EN=1 LINK_TYPE_P1=2 LINK_TYPE_P2=2 NUM_OF_VFS=64
:: ----------------
what i got
MD1200 at Port 4E : Box 4
Physical Drive (2 TB SAS HDD) 4E:4:Unknown
Enclosure SEP (DELL MD1200)
Enclosure Expander
Enclosure Expander
@alastorid
alastorid / gist:4e8633454ed109024f8837e907205241
Created June 27, 2024 22:48
In search of ibm_fw_uefi_tce106l-1.11_anyos_32-64.uxz
# Finding x3650 m5 fw... Unfortunately lnvgy_fw_uefi_tce106l-1.11_anyos_32-64.uxz is gone.
https://www.ibm.com/support/pages/critical-update-uefi-firmware-v111-lenovo-system-x3650-m5-5462
# ...
ftp://download2.boulder.ibm.com/ecc/sar/CMA/XSA/lnvgy_fw_uefi_tce106l-1.11_anyos_32-64.uxz
ftp://download2.boulder.ibm.com/ecc/sar/CMA/XSA/lnvgy_fw_uefi_tce106k-1.10_anyos_32-64.uxz
# finding in 2015- folders
https://delivery04.dhe.ibm.com/sar/CMA/XSA/02otz/2/ibm_fw_sraidmr_10ie-11.0.1-0042_linux_32-64.bin
https://delivery04.dhe.ibm.com/sar/CMA/XSA/02otz/2/ibm_fw_sraidmr_10ie-11.0.1-0042_linux_32-64.chg
https://delivery04.dhe.ibm.com/sar/CMA/XSA/02otz/2/ibm_fw_sraidmr_10ie-11.0.1-0042_linux_32-64.txt