Skip to content

Instantly share code, notes, and snippets.

@PatrickLang
PatrickLang / sd_drivers_ws2016.md
Last active November 14, 2023 08:20
Booting Windows Server 2016 core from eMMC

Booting Windows Server 2016 Core from eMMC devices

Comparing drivers between Desktop & Core editions

The Windows installation ISO contains multiple Windows image files (WIM):

  • boot.wim - this is used to boot the Windows Preinstallation Environment (WinPE) for a clean install
  • install.wim - this contains the image(s) that will be installed.

The Windows Server 2016 ISO contains multiple versions in this single install.wim file which is why the same media can be used to install Standard or Datacenter editions, with the desktop experience or without it (core).

@djoreilly
djoreilly / Vagrantfile
Last active September 28, 2021 17:30
Vagrant with extra disks
Vagrant.configure("2") do |config|
config.vm.box = "trusty"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.hostname = "devstack"
# forward ssh keys from main host - handy for gerrit and github
config.ssh.forward_agent = true
@shimarin
shimarin / bios-efi.txt
Last active February 13, 2024 03:40
BIOSとEFIの両方で起動出来るブートパーティションの作成
BIOSで起動できないディスク
2TBを超えるディスク
4096bytes/sectorなディスク
fdisk pコマンド
physicalが 4096bytesでも logicalが 512bytesならセーフ
Sector size (logical/physical): 512 bytes / 512 bytes
# 古典的なMS-DOSパーティションテーブルを作成
parted --script /dev/sdX 'mklabel msdos'
# 1MiB-513MiBを境界とする容量512MiBの起動パーティションを作成
@sawanoboly
sawanoboly / Vagrantfile
Last active January 20, 2021 23:52
VagrantでVM起動時に、追加ディスクを作成してアタッチ - VirtualBox Provider ref: http://qiita.com/sawanoboly/items/cbd056252a130a4b961e
# -- snip --
config.vm.define machine do |config|
config.vm.provider :virtualbox do |vb|
at_disk = 'tmp/name_of_file.vdi'
unless File.exists?(at_disk)
vb.customize ['createhd', '--filename', at_disk, '--size', 5 * 1024]
end
vb.customize ['storageattach', :id, '--storagectl', 'IDE Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', at_disk]
end
@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no