Skip to content

Instantly share code, notes, and snippets.

View alevin's full-sized avatar

Alex Levin alevin

View GitHub Profile
# just few fragments of isc dhcpd.conf
# default/unspecified host goes to default.ipxe
#
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.200;
option routers 192.168.0.1;
next-server 192.168.0.10 ;
#!ipxe
set websrv 192.168.X.Y
set smartos-build 20190131T012237Z
######## MAIN MENU ###################
:start
menu Welcome to iPXE's Boot Menu
item
item --gap -- ------------------------- Operating systems ------------------------------
@alevin
alevin / perl-one-liners
Created September 6, 2017 16:39
Perl One-Liners
Useful One-Line Scripts for Perl Dec 03 2013 | version 1.10
-------------------------------- ----------- ------------
Compiled by Peteris Krumins ([email protected], @pkrumins on Twitter)
http://www.catonmat.net -- good coders code, great reuse
Latest version of this file is always at:
http://www.catonmat.net/download/perl1line.txt
@alevin
alevin / README.md
Created September 24, 2015 04:35 — forked from justenwalker/README.md
Ansible Dynamic Inventory script for etcd

etcd dynamic inventory script

Generarates inventory for ansible from etcd using python-etcd library.

The script assumes etcd.ini to be present alongside it. To choose a different path, set the ETCD_INI_PATH environment variable:

export ETCD_INI_PATH=/path/to/etcd.ini
{
"template" : "logstash-*",
"settings" : {
"index.refresh_interval" : "5s",
"analysis" : {
"analyzer" : {
"default" : {
"type" : "standard",
"stopwords" : "_none_"
}