Skip to content

Instantly share code, notes, and snippets.

View jwadolowski's full-sized avatar

Jakub Wądołowski jwadolowski

View GitHub Profile
@seguidor777
seguidor777 / kind_static_ips.sh
Last active September 10, 2024 09:32
This script assign static IP to all nodes of a kind cluster
#!/bin/bash
set -e
# Workaround for https://github.com/kubernetes-sigs/kind/issues/2045
all_nodes=$(kind get nodes --name "${CLUSTER_NAME}" | tr "\n" " ")
declare -A nodes_table
ip_template="{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}"
echo "Saving original IPs from nodes"
@trekawek
trekawek / cq_password.rb
Last active December 22, 2015 18:50
CQ password comparator
#!/usr/bin/ruby
require 'openssl'
if ARGV.length != 2
puts "Usage:"
puts "./cq_password.rb HASHED_PASSWORD PLAIN_PASSWORD"
abort
end
@jtimberman
jtimberman / rename-node.rb
Created March 2, 2012 07:47 — forked from mpasternacki/rename-node.rb
A knife exec script to change Chef node's name.
#!./bin/knife exec
# A knife exec script to change chef node's name, preserving all the attributes.
#
# Usage: knife exec rename-node.rb old-name new-name
#
# Script retrieves the Node object, changes its 'name' attribute,
# creates new Node object with updated name and rest of attributes
# untouched. Then it deletes old Node and Client objects from
# database, and logs into the server to update it: