Skip to content

Instantly share code, notes, and snippets.

View kriipke's full-sized avatar

||||||||||||||||||||||||||||||||||||||||||| kriipke

View GitHub Profile
@kriipke
kriipke / keybase.md
Last active February 20, 2020 16:04
Keybase verification

Keybase proof

I hereby claim:

  • I am l0xy on github.
  • I am l0xy (https://keybase.io/l0xy) on keybase.
  • I have a public key ASCJ27HdqepojxVS0QHjDK_GIYCrHZHbzoeT-PYJH8Si7go

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am kriipke on github.
  • I am kriipke (https://keybase.io/kriipke) on keybase.
  • I have a public key ASBUSPw82wGD0HyRmcG-pCA_KrpFLoQqXgbFw84iyMggdwo

To claim this, I am signing this object:

allow booting;
allow bootp;
subnet 192.168.144.0 netmask 255.255.255.0 {
range 192.168.144.20 192.168.144.250;
option domain-name "example.com";
option domain-name-servers 192.168.144.1;
option broadcast-address 192.168.144.255;
option routers 192.168.144.1;
next-server 192.168.144.1;
@kriipke
kriipke / random_mac_address.sh
Last active October 26, 2022 19:22
shell function to genarate a "random" MAC address, optional 1st argument will be used as prefix, e.g. "genmac 4455" would produce something like "44:55:0a:b3:55:ce:de:04"
#!/bin/sh
#
# [[ genamc ]] ~ generatre random MAC with optional prefix
#
# Spencer Smolen, Nov. 2021
# <[email protected]>
#
#
# Usage: genmac [PREFIX]
@kriipke
kriipke / ansible_control_node_bootstrap.sh
Last active October 20, 2022 16:32
Ansible Control Node bootstrapper
#!/bin/bash
# Spencer Smolen <[email protected]>, 2021
#
# Bootstraps a fresh EL8 installation to act as an Ansible control host.
# Modify the variables below to specify the versions of Python
# and Ansible you wish to set up the host with.
#
# Installs pyenv, which is used to install Python 3,
# which is used to install Ansible.
@kriipke
kriipke / molecule-collection-bootstrapper.sh
Last active November 30, 2021 12:48
Bootstraps a skeleton of an Ansible Collection with a molecule folder fully supplied with the relevant tools for testing your Ansible Collections with Molecule
#!/bin/sh
#
# [[ BOOTSTRAPS ANSIBLE COLLECTION SKELETON ]]
# [[ WITH MOLECULE ENVIRONMENT FOR TESTING ]]
#
# Spencer Smolen, December 2021
# <[email protected]>
#
#
#
# B O O T S T R A P P E R
#
# [[ Visual Studio 2022 ]]
# <[email protected]>
#
$install_path = "C:\minVS"
$installer_dest = (join-path -path $env:temp -childpath "vs2022.exe")
@kriipke
kriipke / cfg_iscsi.ps1
Last active October 18, 2022 00:02
PowerShell script to configure a host as an iSCSI host
#
# [ bs-iscsi-target.ps1 ]
# ---------------------
# <[email protected]>, 03/22
#
# Configures iSCSI targets on remote machines to
# be mounted as if they were local drives
#
# $ Initialize-Service('MSiSCSI')
# $ Connect-IscsiHost('10.2.0.64')
@kriipke
kriipke / fetch-js-poc.js
Last active April 18, 2022 13:34
fetch() JS xamples
//
// fetch JSON
//
fetch('./api/some.json')
.then(
function(response) {
if (response.status !== 200) {
console.log('Looks like there was a problem. Status Code: ' +
@kriipke
kriipke / cfwin_logsplicer.sh
Last active October 18, 2022 00:00
I believe this is for Citrix Files for Windows logs
#!/bin/sh
LOG_PATH="${1:?}"
# awk -F\| '{ gsub(/^[ \t]+|[ \t]+$/, "", $6); gsub(/^[ \t]+|[ \t]+$/, "", $5);printf("%15s\033[90m%20s:%-10d\033[33m[%-30s] \033[90m\t~ %-20s\033[36m\t\t\"%25s\"\033[0m\n", $3, FILENAME, NR, $5, $4, $6)}' DebugLogFile.log
awk -F\| '{
gsub(/^[ \t]+|[ \t]+$/, "", $6);
gsub(/^[ \t]+|[ \t]+$/, "", $5);
printf("%15s\033[90m%20s:%-10d\033[33m[%-30s] \033[90m\t~ %-20s\033[36m\t\t\"%25s\"\033[0m\n", $3, FILENAME, NR, $5, $4, $6)
}' `find "${LOG_PATH}"`