Skip to content

Instantly share code, notes, and snippets.

View onefoursix's full-sized avatar

Mark Brooks onefoursix

View GitHub Profile
@innovia
innovia / kubernetes_add_service_account_kubeconfig.sh
Last active January 29, 2024 23:00
Create a service account and generate a kubeconfig file for it - this will also set the default namespace for the user
#!/bin/bash
set -e
set -o pipefail
# Add user to k8s using service account, no RBAC (must create RBAC after this script)
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "usage: $0 <service_account_name> <namespace>"
exit 1
fi
@gwenshap
gwenshap / gist:9699072
Created March 22, 2014 00:03
Using Hive to Efficiently Merge Data
-- create temporary table for merging
CREATE external TABLE staging.ItemFulfillment_merged
(ItemFulfillment_b13aFilingOptionFedEx STRING,
ItemFulfillment_b13aStatementDataFedEx STRING,
ItemFulfillment_backupEmailAddressFedEx STRING,
ItemFulfillment_backupEmailAddressUps STRING,
ItemFulfillment_internalId STRING,
ItemFulfillment_itemList_item_item_internalId STRING,