Skip to content

Instantly share code, notes, and snippets.

@slachterman
slachterman / setup_hdf_blueprint.sh
Created February 15, 2018 02:46 — forked from abajwa-hw/setup_hdf_blueprint.sh
Setup HDF via blueprints
# Sample script to deploy HDF via blueprint
# - Installs Ambari server/agents
# - Installs HDF mpack
# - Uses ambari-bootstrap to generate blueprint based on stack advisor recommendation and starts cluster install
# - Optionally: installs KDC, sets up postgres for Ranger, allows customizations of config properties and number of Nifi nodes
#
# Usage: su as root and run below to invoke this script on a host where CentOS/RHEL has been freshly installed (do NOT run this on HDP sandbox!). You can customize the functionality by setting env vars e.g.
# export host_count=3; export install_nifi_on_all_nodes=true; curl -sSL https://gist.github.com/abajwa-hw/ae4125c5154deac6713cdd25d2b83620/raw | sudo -E sh ;
# Note for multi-node install, you will need to install/register agents on other nodes first using below (replace <AMBARI_SERVER_HOSTNAME>)
@slachterman
slachterman / topology.xml
Created September 11, 2017 20:09
Knox sample config
<topology>
<gateway>
<provider>
<role>authentication</role>
<name>ShiroProvider</name>
<enabled>true</enabled>
<param>
<name>sessionTimeout</name>
@slachterman
slachterman / tickets.py
Created March 31, 2017 00:48 — forked from randerzander/tickets.py
SalesForce open cases list
# See https://pip.pypa.io/en/latest/installing.html for how to install pip, then:
# pip install simple-salesforce
from simple_salesforce import Salesforce
import string
# To get your SFDC token, see https://help.salesforce.com/apex/HTViewHelpDoc?id=user_security_token.htm
# salesforce_login.txt should contain the following, one per line:
# Your Name
# your_email@sfdc_account.com
# your_password

Keybase proof

I hereby claim:

  • I am slachterman on github.
  • I am slachterman (https://keybase.io/slachterman) on keybase.
  • I have a public key whose fingerprint is EC3F 63CE 47A2 BB2F 48D1 0414 E39E A7D0 1E7A D309

To claim this, I am signing this object: