Skip to content

Instantly share code, notes, and snippets.

View shantanugadgil's full-sized avatar
🙂
🤔 😀 👋

Shantanu Gadgil shantanugadgil

🙂
🤔 😀 👋
  • Pune, Maharashtra, India
View GitHub Profile
@shantanugadgil
shantanugadgil / _INSTALL.md
Created August 12, 2026 18:11 — forked from robinsmidsrod/_INSTALL.md
Bootstrapping full iPXE native menu with customizable default option with timeout (also includes working Ubuntu 12.04 preseed install)

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

@shantanugadgil
shantanugadgil / important_links_for_consul_and_nomad.txt
Last active May 9, 2021 14:54
Important links for Consul and Nomad
@shantanugadgil
shantanugadgil / zk_starter.bash
Created January 2, 2020 07:12
Zookeeper started script with some boilerplate stuff
#!/bin/bash
set -u
set -e
trap _error_exit ERR
_error_exit()
{
echo "ERROR EXIT"
@shantanugadgil
shantanugadgil / generate_job_file.bash
Created January 2, 2020 07:10
generator to create the zookeeper job file
$ cat generate_job_file.bash
#!/bin/bash
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
set -u
job_file="zookeeper.nomad"
cat > ${job_file} <<EOF
#!/bin/bash
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
set -u
set -e
CONSUL_VERSION=${CONSUL_VERSION:-"1.9.4"}
NOMAD_VERSION=${NOMAD_VERSION:-"1.0.4"}
CNI_PLUGINS_VERSION=${CNI_PLUGINS_VERSION:-"0.9.1"}
gowebhello root page
https://github.com/udhos/gowebhello is a simple golang replacement for 'python -m SimpleHTTPServer'.
Welcome!
gowebhello version 0.7 runtime go1.12.5 os=linux arch=amd64
Keepalive: true
Application banner: Welcome to FOO
...
...
ID = 9f16354b
Eval ID = 075076bc
Name = bar_docker.gowebhello[1]
Node ID = 9bab72b1
Node Name = client1
Job ID = bar_docker
Job Version = 0
Client Status = running
Client Description = Tasks are running
Desired Status = run
==> Monitoring evaluation "075076bc"
Evaluation triggered by job "bar_docker"
Allocation "9f16354b" created: node "9bab72b1", group "gowebhello"
Allocation "b86d8946" created: node "37daf354", group "gowebhello"
Evaluation status changed: "pending" -> "complete"
==> Evaluation "075076bc" finished with status "complete"
ID = 7794b538
Eval ID = a994bbf0
Name = foo_docker.gowebhello[1]
Node ID = 9bab72b1
Node Name = client1
Job ID = foo_docker
Job Version = 1
Client Status = running
Client Description = Tasks are running
Desired Status = run
==> Monitoring evaluation "a994bbf0"
Evaluation triggered by job "foo_docker"
Allocation "7794b538" created: node "9bab72b1", group "gowebhello"
Allocation "eecceffc" modified: node "37daf354", group "gowebhello"
Evaluation status changed: "pending" -> "complete"
==> Evaluation "a994bbf0" finished with status "complete"