Skip to content

Instantly share code, notes, and snippets.

View BertMueller18's full-sized avatar

Bert Mueller BertMueller18

  • Leipzig, Germany
View GitHub Profile

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
    filename "undionly.kpxe";
}

(or see https://gist.github.com/4008017 for a more elaborate setup

#!ipxe
#
# This file gets compiled into undionly.kpxe
################################################################
:vars
set next-server 192.168.2.121
cpuid --ext 29 && set arch amd64 || set arch x86
:netconfig
dhcp net0 || goto ipxeshell
:prompt
@BertMueller18
BertMueller18 / dhcpd.conf
Created June 22, 2016 08:04 — forked from robinsmidsrod/dhcpd.conf
Simple chainloading config loading iPXE for ISC dhcpd which supports both legacy BIOS and UEFI
option client-arch code 93 = unsigned integer 16;
subnet 10.8.8.0 netmask 255.255.255.0 {
range 10.8.8.100 10.8.8.199;
option routers 10.8.8.1;
option domain-name-servers 10.8.8.1;
next-server 10.8.8.1;
if exists user-class and option user-class = "iPXE" {
filename "http://10.8.8.11/ipxeroot/bootstrap.ipxe";
} elsif option client-arch != 0 {
filename "ipxe.efi";
@BertMueller18
BertMueller18 / nic-menu.ipxe
Created June 22, 2016 08:04 — forked from robinsmidsrod/nic-menu.ipxe
iPXE embedded menu that tries to boot each network adapter in turn
#!ipxe
set timeout 1000
:menu
menu Network boot options for ${uuid}
item --key a default Try to boot (a)ll network adapters in turn
item
item --gap -- --- Detected network adapters ---
set i:int8 0
@BertMueller18
BertMueller18 / github-pages-bookmarklet.js
Created November 22, 2016 05:57 — forked from thomasjbradley/github-pages-bookmarklet.js
GitHub Pages Switcher Bookmarklet
/**
* Detects the GitHub URL and redirects:
* - From Repo to Pages
* - or from Pages to Repo
*/
javascript:(function () {
var url = document.location.href,
username,
repo,
@BertMueller18
BertMueller18 / reclaimWindows10.ps1
Created January 7, 2017 23:23 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
{
"title": "IORM",
"services": {
"query": {
"list": {
"0": {
"id": 0,
"type": "topN",
"query": "iorm_datastore:(netapp)",
"alias": "",
Function Format-XMLIndent
{
[Cmdletbinding()]
[Alias("IndentXML")]
param
(
[xml]$Content,
[int]$Indent
)
@BertMueller18
BertMueller18 / Get-MP3MetaData.ps1
Created March 26, 2017 07:55 — forked from PrateekKumarSingh/Get-MP3MetaData.ps1
Get MetaData from a .MP3 or .MP4 file
Function Get-MP3MetaData
{
[CmdletBinding()]
[Alias()]
[OutputType([Psobject])]
Param
(
[String] [Parameter(Mandatory=$true, ValueFromPipeline=$true)] $Directory
)
@BertMueller18
BertMueller18 / Get-LatestUpdate.ps1
Created June 8, 2017 22:35 — forked from keithga/Get-LatestUpdate.ps1
script to get latest build.
<#
.SYNOPSIS
Get the latest Cumulative update for Windows
.DESCRIPTION
This script will return the list of Cumulative updates for Windows 10 and Windows Server 2016 from the Microsoft Update Catalog.
.NOTES
Copyright Keith Garner (KeithGa@DeploymentLive.com), All rights reserved.