This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#To use this script directly in the Hortonworks Sandbox I use this command | |
#wget https://gist.github.com/jdye64/76d4dc92018c3e613f66/download -O hwx_sand_krb.tar.gz && tar zxvf ./hwx_sand_krb.tar.gz -C ./. --strip-components=1 && chmod 777 ./HWXSandboxKerberos.sh && ./HWXSandboxKerberos.sh | |
#Case sensitive. This will bite you if not careful | |
#KDC Host - sandbox.hortonworks.com | |
#Realm Name - HORTONWORKS.COM | |
#Domains - .hortonworks.com,hortonworks.com | |
#kadmin host - sandbox.hortonworks.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
print "Converting all of the .dav files in this current directory into .mp4 files using ffmpeg" | |
import os | |
from subprocess import call | |
files = [f for f in os.listdir('.') if os.path.isfile(f)] | |
for f in files: | |
ext = f.split(".")[-1] | |
if ext == "dav" or ext == "DAV": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# These are examples for the stable V1. They will not be broken by any future V1 releases. | |
# Global Variables | |
USER="admin" | |
PASS="admin" | |
AMBARI_HOST="localhost" | |
AMBARI_PORT=8080 | |
# -------- BEGIN HDP Stack Admin Actions -------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat filename.p12 | openssl pkcs12 -nodes -nocerts -passin pass:notasecret | openssl rsa > secret.pem | |
chmod 600 secret.pem | |
ssh-keygen -y -f secret.pem > OpenSSHPublicKey.pub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Setting up Docker infrastructure for Service Discovery and DNS capabilities" | |
MANAGER_IP=$(docker-machine ip manager) | |
AGENT1_IP=$(docker-machine ip agent1) | |
AGENT2_IP=$(docker-machine ip agent2) | |
if [ ! $MANAGER_IP ]; then | |
echo "No 'manager' virtualbox VM available. Creating one now" | |
docker-machine create -d virtualbox manager | |
MANAGER_IP=$(docker-machine ip manager) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.5 | |
Build date: 2016-06-21 20:02:43 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://sourceforge.net/projects/nmon/files/nmon16e_x86_rhel72 | |
chmod +x nmon16e_x86_rhel72 | |
./nmon16e_x86_rhel72 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch <file/dir>' HEAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#### CHANGE DOCKER ROOT DIRECTORY #### | |
# For Azure VM edit vi /lib/systemd/system/docker.service to add the -g flag to the directory that you want be the Docker root directory | |
# systemctl daemon-reload | |
# systemctl restart docker | |
#### REDHAT 7 STOPPING FIREWALLD #### | |
# service firewalld stop | |
# systemctl disable firewalld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Enter the name of the file. | |
read -p "Enter file name: " filename | |
# Remove any spaces in the file name. | |
filename=$(echo "$filename" | sed 's/ /-/g') | |
# This is for metadata. It will show up in the media player playlist or after clicking Properties (in OS X Info) on the file context menu. | |
read -p "Enter a description: " details |
OlderNewer