Skip to content

Instantly share code, notes, and snippets.

View rondefreitas's full-sized avatar
❇️
I may be slow to respond.

Ron DeFreitas rondefreitas

❇️
I may be slow to respond.
View GitHub Profile
@rondefreitas
rondefreitas / DBENV.user.js
Last active December 14, 2023 21:05
Databricks Environment Banner User Script
// ==UserScript==
// @name Databricks Environment Banner
// @source https://gist.githubusercontent.com/rondefreitas/05ae8c35bac3e429ec9624255fd88a2f
// @namespace https://gist.githubusercontent.com/rondefreitas/05ae8c35bac3e429ec9624255fd88a2f
// @updateURL https://gist.githubusercontent.com/rondefreitas/05ae8c35bac3e429ec9624255fd88a2f/raw/DBENV.user.js
// @downloadURL https://gist.githubusercontent.com/rondefreitas/05ae8c35bac3e429ec9624255fd88a2f/raw/DBENV.user.js
// @supportURL https://gist.githubusercontent.com/rondefreitas/05ae8c35bac3e429ec9624255fd88a2f#new_comment_field
// @version 0.50
// @description Display Colored Banners for Databricks AWS Workspaces based on Subdomain
// @author Ron DeFreitas

Keybase proof

I hereby claim:

  • I am rdefreitas on github.
  • I am rondefreitas (https://keybase.io/rondefreitas) on keybase.
  • I have a public key ASDSqOsxWXTIzriENV5zDmfhY8JIKtzAZnf9ToDiItep4go

To claim this, I am signing this object:

@rondefreitas
rondefreitas / changepassword.sh
Created December 11, 2019 18:22
HDInsight Change SSH Password
#! /bin/bash
USER=$1
PASS=$2
usermod --password $(echo $PASS | openssl passwd -1 -stdin) $USER
@rondefreitas
rondefreitas / ClassLibrary\GoogleApiRequest.cs
Last active May 11, 2016 18:36
Example on how to use a POCO Settings class in ASP.NET Core
public interface IGoogleApiRequest
{
string ShowMyKey();
}
public class GoogleApiRequest : IGoogleApiRequest
{
private readonly IGoogleApiSettings _settings;
public GoogleApiRequest(IGoogleApiSettings settings) {