Skip to content

Instantly share code, notes, and snippets.

View misheska's full-sized avatar

Mischa Taylor misheska

View GitHub Profile
# Example creating a "noprompt" ISO from c:\iso with ocsdimg
oscdimg -m -o -u2 -udfver102 -bootdata:2#p0,e,b"c:\iso\boot\etfsboot.com"#pEF,e,b"c:\iso\efi\microsoft\boot\efisys.bin" "c:\iso" "%USERPROFILE%\Desktop\windows_noprompt.iso"
# -m Ignore the maximum size limit of the image
# -o Optimize by removing duplicate files
# -u2 UDF file system ISO image
# -udfver102 UDF version will be 1.02
# -bootdata:2 Specifies there will be two boot catalog entires, delimited by #
# p0,e,b<Path>
# p - Specifies value to use for platform ID in the El Torito catalog. 0x00 represents a BIOS system
Rename-Item -Path c:\iso\efi\microsoft\boot\cdboot.efi -NewName cdboot-prompt.efi
Rename-Item -Path c:\iso\efi\microsoft\boot\cdboot_noprompt.efi -NewName cdboot.efi
Rename-Item -Path c:\iso\efi\microsoft\boot\efisys.bin -NewName efisys_prompt.bin
Rename-Item -Path c:\iso\efi\microsoft\boot\efisys_noprompt.bin -NewName efisys.bin
@misheska
misheska / CopyWindowsISO.ps1
Created December 13, 2018 23:20
Copy the Windows install ISO to c:\iso
# Remove any previously-existing c:\iso directory
Remove-Item -Recurse -Force c:\iso
# Create c:\iso directory
New-Item -ItemType Directory -Force -Path c:\iso
# Copy exact contents of Windows ISO mounted on drive E:\ recurisvely
robocopy e:\ c:\iso /MIR
# Mirror cygwin
#!/bin/bash -eux
rsync --archive --verbose --delete cygwin.com::cygwin-ftp/ /Volumes/Archive/mirror/cygwin
@misheska
misheska / gist:11247105
Created April 24, 2014 08:53
Table of Contents for Learning Chef
- [X] Preface
- [X] From Zero to Basic Chef
- [X] Installing Chef Client
- [X] Installing Chef Client on Linux
- [X] Installing Chef Client on Mac OS X
- [X] Installing Chef Client on Windows
- [X] Installing a programmer's editor
- [X] Creating a directory structure for your code
- [X] Writing your first Chef recipe
- [X] Chef Client Modes
@misheska
misheska / Vagrantfile
Last active December 14, 2015 09:09
Revised Vagrantfile for sensu-chef/examples
#require 'berkshelf/vagrant'
Vagrant::Config.run do |config|
config.vm.box = "ubuntu-1204-i386"
config.vm.box_url = "http://vagrant.sensuapp.org/ubuntu-1204-i386.box"
config.vm.customize [
"modifyvm", :id,
"--name", "Sensu Stack",
"--memory", "1024"
@misheska
misheska / vagrant.log
Created January 8, 2013 20:21
Vagrant output from chef-sensu/examples run
$ vagrant up
[default] Importing base box 'ubuntu-1204-i386'...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
Guest Additions Version: 4.1.12
VirtualBox Version: 4.1.23
@misheska
misheska / install-r15b03.sh
Created December 9, 2012 10:08 — forked from bryanhunter/install-r14b03.sh
Script to install Erlang 15B03-1 (tested on a fresh Ubuntu 12.10 install)
# You will need to make this file executable (chmod u+x) and run it with sudo
apt-get -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk
wget http://www.erlang.org/download/otp_src_R15B03-1.tar.gz
tar xzvf otp_src_R15B03-1.tar.gz
cd otp_src_R15B03
./configure
make
make install