Skip to content

Instantly share code, notes, and snippets.

View aheadley's full-sized avatar

Alex Headley aheadley

View GitHub Profile
attrs==18.2.0
certifi==2018.11.29
chardet==3.0.4
Click==7.0
idna==2.8
pysubs2==0.2.3
requests==2.21.0
urllib3==1.24.1
Whoosh==2.7.4

Quick Installation Howto

  1. 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.
  2. Get yourself a NTFS-formatted USB stick.
  3. Copy contents of installation DVD into mentioned USB stick.
  4. Get a copy of wimboot and load it into your TFTP server.
  5. Copy boot/bcd, boot/boot.sdi, sources/boot.wim and bootmgr into TFTP root as well.
  6. Create the bootstrap script (included bootstrap.ipxe file) and boot your
#!/bin/bash
# The author of the original script is unknown to me. The first entry I can
# find was posted at 2010-03-21 09:50:09 on Arch Linux Forums (doesn't mean the
# poster is the author at all):
#
# https://bbs.archlinux.org/viewtopic.php?pid=728932#p728932
#
# I, Yu-Jie Lin, made a few changes and additions:
#
# -p, -R, and -C
Test (in-process): 46044 [ms]
Test (single thread): 44425 [ms]
Test (2 threads): 27837 [ms]
Test (4 threads): 49647 [ms]
Test (8 threads): 43913 [ms]
Test (16 threads): 56567 [ms]
Test (single proc): 49173 [ms]
Test (2 procs): 25880 [ms]
Test (4 procs): 13424 [ms]
Test (8 procs): 11163 [ms]
@aheadley
aheadley / warm-cache.sh
Created December 4, 2012 18:56 — forked from fbrnc/gist:3418992
Magento Cache Warming
#!/bin/bash
BASE_URL=http://example.com
SITEMAP_PATH=/sitemap.xml
TMP_URL_FILE=sitemap-urls.txt
curl -s "${BASE_URL}${SITEMAP_PATH}" | \
xpath /dev/stdin '/urlset/url/loc/text()' 2>/dev/null | \
sed 's~http:~\nhttp:~g' > "$TMP_URL_FILE"
@aheadley
aheadley / 0800271375c4.pxe
Created October 5, 2012 00:01 — forked from robinsmidsrod/_INSTALL.md
Trying out the native iPXE menu feature with Ubuntu 12.04 preseed install working (and also pxe-dispatcher menu default set)
#!ipxe
echo
echo Booting UbuntuVM
set menu-default ubuntu
chain --replace --autofree default.pxe
@aheadley
aheadley / timeclock.py
Created January 6, 2012 00:21 — forked from gmr/timespent_ranking.py
Reads in a minecraft server log ranking users by time spent
#!/usr/bin/env python
import datetime
import re
class LogParser(object):
"""
"""
def __init__(self):
self._data = {
@aheadley
aheadley / terminal-snowfall.sh
Created December 21, 2011 22:41 — forked from sontek/snowjob.sh
Make your terminal snow
#!/bin/bash
LINES=$(tput lines)
COLUMNS=$(tput cols)
#SNOWFLAKE_CHAR='*'
SNOWFLAKE_CHAR='❄'
declare -A snowflakes
declare -A lastflakes