Skip to content

Instantly share code, notes, and snippets.

View bbarman4u's full-sized avatar

bbarman4u

View GitHub Profile
@bbarman4u
bbarman4u / install NVM and nodeJS.yml
Created September 5, 2022 03:23 — forked from komuw/install NVM and nodeJS.yml
Ansible task to install nvm and nodeJS
#first seen here: http://www.snip2code.com/Snippet/63701/Ansible-task-to-install-nvm-and-node
# Here is how to install nvm and node in an Ansible task.
# I tried a bunch of different things, and as usual it's simple, but you have to get it right.
# The important part is that you have to shell with /bin/bash -c and source nvm.sh
---
- name: Install nvm
shell: >
curl https://raw.githubusercontent.com/creationix/nvm/v0.7.0/install.sh | sh
creates=/home/{{ ansible_user_id }}/.nvm/nvm.sh
@bbarman4u
bbarman4u / iac.sh
Created December 6, 2021 20:57
Using the Prisma Cloud IaC Scan REST API for Terraform 0.12 to Support GCP
#!/bin/bash
# shellcheck disable=SC2181
# INSTALLATION:
#
# Copy this script to ~/pc_iac_scan.sh
# Edit ~/pc_iac_scan.sh (API, USERNAME, PASSWORD) below
# Make ~/pc_iac_scan.sh executable
@bbarman4u
bbarman4u / southwest_auto_checkin.user.js
Created November 14, 2021 13:21 — forked from medinm0/southwest_auto_checkin.user.js
Auto Check-In to Southwest Flights
// ==UserScript==
// @name Auto Check-In to Southwest Flights
// @namespace https://gist.github.com/ryanizzo/058829a5fafe733bd876410db7a1e699
// @version 1.91
// @author Nicholas Buroojy (http://userscripts.org/users/83813)
// @contributor Ryan Izzo (http://www.ryanizzo.com)
// @contributor JR Hehnly (http://www.okstorms.com @stormchasing)
// @contributor Trevor McClellan (github.com/trevormcclellan)
// @contributor Martin Medina (github.com/medinm0)
// @description Automatically check in to Southwest Airline flights at the appropriate time.
# Maintainer: Jakub Hajek, jakub.hajek@cometari.com
#
# docker stack deploy -c stack-elastic.yml elastic
#
# The stack creates Elasticsearch cluster consiting of
# - 3 dedicated master nodes in order to keep quorum
# - 4 dedicated data nodes to manage CRUD,
#
# Docker compose file to easily deploy Elasticsearch cluster 7.x on Docker Swarm cluster.
@bbarman4u
bbarman4u / cje-001.md
Last active August 11, 2019 18:30
Certified Jenkins Engineer 2019 Preparation