This file contains hidden or 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
# get the current HUE credential password for CM | |
cat /proc/`ps -ef| grep hue |\ | |
grep runcherrypyserver |\ | |
awk '{print $2}'`/environ |\ | |
sed 's/.*\(HADOOP_CREDSTORE_PASSWORD=.*\)/\1/' | |
export HUE_CONF_DIR="/var/run/cloudera-scm-agent/process/`ls -alrt /var/run/cloudera-scm-agent/process | grep HUE | tail -1 | awk '{print $9}'`" | |
export JAVA_HOME=/usr/java/default | |
export HADOOP_CREDSTORE_PASSWORD=xxxxxxxxxxxxxxx | |
build/env/bin/hue useradmin_sync_with_unix |
This file contains hidden or 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 /proc/cpuinfo | grep aes | |
openssl speed aes-128-cbc | |
openssl speed -evp aes-128-cbc |
This file contains hidden or 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
# create a directory for you Python Virtual Environments | |
mkdir -p ~/pyenvs | |
# create one for the AWS cli then install the CLI | |
virtualenv ~/pyenvs/aws | |
~/pyenvs/aws/bin/pip install awscli | |
~/pyenvs/aws/bin/pip install boto |
This file contains hidden or 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
# install epel | |
yum -y install epel-release | |
# install rpms | |
yum -y install python-pip python-virtualenv | |
# setup a virtual environment | |
virtualenv pyenv | |
source pyenv/bin/activate |
This file contains hidden or 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
# partition a single msdos partition and make it active: | |
$ cat /tmp/sdb.save | |
# partition table of /dev/sdb | |
unit: sectors | |
/dev/sdb1 : start= 2048, size= 30272704, Id= c, bootable | |
/dev/sdb2 : start= 0, size= 0, Id= 0 | |
/dev/sdb3 : start= 0, size= 0, Id= 0 | |
/dev/sdb4 : start= 0, size= 0, Id= 0 |
This file contains hidden or 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
# pre-req packages | |
yum -y groupinstall "Development Tools" | |
yum -y install yum-utils | |
yum -y install epel-release | |
yum -y install mock rpm-build | |
yum -y install wget | |
yum -y install createrepo |
This file contains hidden or 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
# OSX | |
# find the USB device | |
diskutil list | |
diskutil unmountDisk /dev/disk2 | |
# dd the ISO onto the raw device | |
sudo dd if=/Users/sjj/Software/ISOs/Linux/Fedora/20/Fedora-20-x86_64-netinst.iso of=/dev/disk2 bs=1m |