- Make sure you have successfuly set up iPXE, iSCSI target (iSCSI Enterprise Target on Debian works fine for me), TFTP server and some time to spend.
- Get yourself a NTFS-formatted USB stick.
- Copy contents of installation DVD into mentioned USB stick.
- Get a copy of wimboot and load it into your TFTP server.
- Copy boot/bcd, boot/boot.sdi, sources/boot.wim and bootmgr into TFTP root as well.
- Create the bootstrap script (included bootstrap.ipxe file) and boot your
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
matti@acrux ~/reject $ RUBYLIB=. cat - | puppet apply | |
$a = { 'abc' => 123, 'def' => 456} | |
$b = { 'abc' => 123, 'def' => 999} | |
notice dump(merge($a, $b)) | |
notice dump(merge($b, $a)) | |
notice: Scope(Class[main]): {"abc"=>"123", "def"=>"999"} | |
notice: Scope(Class[main]): {"abc"=>"123", "def"=>"456"} | |
notice: Finished catalog run in 0.07 seconds | |
matti@acrux ~/reject $ RUBYLIB=. cat - | puppet apply |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!#/usr/bin/env ruby | |
PROC_NET_TCP = '/proc/net/tcp' # This should always be the same ... | |
TCP_STATES = { '00' => 'UNKNOWN', # Bad state ... Impossible to achieve ... | |
'FF' => 'UNKNOWN', # Bad state ... Impossible to achieve ... | |
'01' => 'ESTABLISHED', | |
'02' => 'SYN_SENT', | |
'03' => 'SYN_RECV', | |
'04' => 'FIN_WAIT1', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<settings pass="windowsPE"> | |
<component xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<SetupUILanguage> | |
<UILanguage>en-US</UILanguage> | |
</SetupUILanguage> | |
<InputLocale>en-US</InputLocale> | |
<SystemLocale>en-US</SystemLocale> | |
<UILanguage>en-US</UILanguage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/rsyslog.conf Configuration file for rsyslog. | |
# | |
# For more information see | |
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html | |
# | |
# Default logging rules can be found in /etc/rsyslog.d/50-default.conf | |
# | |
# WARNING: This config has been converted to RainerScript format which could | |
# affect config files provided by other software in /etc/rsyslog.d/ | |
# It should behave the same as the legacy-format config file that ships |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
databases => { | |
'default' => | |
{ | |
'ENGINE' => 'postgresql_psycopg2', | |
'NAME' => 'defaultdb', | |
'HOST' => '2.2.2.2.2', | |
'USER' => 'username', | |
'PASSWORD' => 'secretinfo', | |
'OPTIONS' => | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'chatterbot/dsl' | |
require 'speedtest' | |
# debug_mode | |
# remove this to get less output when running your bot | |
verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# giftube – Generates an animated gif from a YouTube url. | |
# | |
# Usage: | |
# | |
# giftube [youtube url] [minute:second] [duration] | |
# | |
# ex. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#simple class | |
class Person | |
end | |
#inheritance | |
class Sarah < Person | |
end | |
#class with constructor arguments | |
class Jet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node "default" { | |
stage { 'first': | |
before => Stage['main'], | |
} | |
class { 'apt_update': | |
stage => first, | |
} | |
class { 'apt': } |