Skip to content

Instantly share code, notes, and snippets.

View sblack4's full-sized avatar
:shipit:
taking care of business

Steven B sblack4

:shipit:
taking care of business
View GitHub Profile
@sblack4
sblack4 / azure-pipelines.yml
Created October 7, 2019 15:40
Azure Pipelines Cheatsheet
name: name_of_your_pipeline
trigger:
- master
- other_branches
pool:
vmImage: 'ubuntu-latest'
variables: # variables: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables

Keybase proof

I hereby claim:

  • I am sblack4 on github.
  • I am sblack4 (https://keybase.io/sblack4) on keybase.
  • I have a public key ASAdIY3NKExxH70yjQ7BNZGVQjY4LW24JPnoNdF05ORLKgo

To claim this, I am signing this object:

@sblack4
sblack4 / README.md
Last active January 15, 2022 21:01
How to develop AMIs with Packer and Ansible

How to develop AMIs with Packer and Ansible

Things I wish they'd told me

Develop the Ansible role locally

When you try to debug something in packer by making a change in the Ansible role you want to see the effect immediately. To do that just symlink your project in ~/.ansible/roles with whatever name you are referencing it with. So, for example, a project refered to as rhythmic.jetty which is locally in ansible-role-jetty:

`ln -s $(pwd)/ansible-role-jetty ~/.ansible/roles/rhythmic.jetty`
@sblack4
sblack4 / init.sh
Created July 25, 2019 18:52
Get rid of Okta Creds and log into AWS CLI via Access Keys
#!/bin/bash
usage() {
echo 'run `source init.sh` to get environmental variables'
}
get_rid_of_okta_creds() {
echo 'getting rid of okta creds'
@sblack4
sblack4 / dump_and_restore.sh
Last active July 25, 2019 18:23
Simple Dump and Restore PG SQL
#!/bin/bash
OLD_HOST=""
OLD_DB_PWD=""
OLD_USERNAME=""
NEW_HOST=""
NEW_DB_PWD=""
NEW_USERNAME=""
@sblack4
sblack4 / gist:529a7eae93f4cc0b3cc3335db12c159c
Created July 23, 2019 18:41 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@sblack4
sblack4 / sparse-checkout.md
Created July 11, 2019 14:52
Sparse-Checkout

Sparse Checkout

Only clone part of a Git repo

I wanted to clone the charts/incubator/awx directory of a large git repo and all it's subdirectories. Here is the command line IO.

$ mkdir awx
$ cd awx 
$ git init 
@sblack4
sblack4 / create-databricks-workspace-in-azure.py
Last active January 14, 2019 19:02
Use requests to hit Azure REST API databricks/workspaces/createorupdate end-point.
#!/bin/bash python
import requests
#
# See https://docs.microsoft.com/en-us/rest/api/databricks/workspaces/createorupdate
# Just add the subscription ID and an auth token
# To get an auth token see https://docs.microsoft.com/en-us/rest/api/azure/
# URI Params
@sblack4
sblack4 / install-kafka-minimal.sh
Created January 2, 2019 17:24
Bash script to install the most minimal Kafka
#!/bin/bash
# this script installs and starts kafka
# the most minimal installation of kafka possible
KAFKA_URL=http://mirror.olnevhost.net/pub/apache/kafka/2.1.0/kafka_2.11-2.1.0.tgz
install_kafka() {
# Database settings for sqlite 3.x
#
# General information on database access can be found here:
# https://waikato.github.io/weka-wiki/databases
#
# url: http://www.sqlite.org/
# jdbc: http://www.zentus.com/sqlitejdbc/
# author: Fracpete (fracpete at waikato dot ac dot nz)
# version: $Revision: 5836 $