Skip to content

Instantly share code, notes, and snippets.

View seanorama's full-sized avatar

Sean Roberts seanorama

  • Cloudera (formerly Hortonworks, Rackspace)
  • London, UK
  • X @seano
View GitHub Profile
@seanorama
seanorama / gist:f2f58bff2cd1ea292924
Last active August 29, 2015 14:14
Outlook for Mac 2015
- Ask Helpdesk (with an email or issue) for "Outlook for Mac 2015"
- They should give you a login for https://portal.office.com/
- From the portal:
- Click the 'Gear/Cog' in top right
- 'Office 365 Settings'
- 'Software'
- Then under 'Get Outlook for Mac', click 'Install'
- While it's downloading, uninstall Outlook 2011:
- Quit Outlook
- If it's still in your dock, drag it to Trash
#!/bin/sh
set -e
# script to install maven
# todo: add method for checking if latest or automatically grabbing latest
mvn_version=${mvn_version:-3.5.2}
url="http://www.mirrorservice.org/sites/ftp.apache.org/maven/maven-3/${mvn_version}/binaries/apache-maven-${mvn_version}-bin.tar.gz"
install_dir="/opt/maven"
Core Hadoop:
codename: Hadoops
ptl: Sean Roberts (seanorama)
url: https://hortonworks.com/
projects:
- repo: apache/hadoop-common
integrated-since: havana
incubated-since: grizzly
- repo: apache/hadoop-hdfs
- repo: apache/hadoop-mapreduce
From: Sean Roberts <[email protected]>
Date: Fri, 9 Jan 2015 18:04:32 +0000
Subject: [PATCH 1/1] public_hostname_script & fix java_home
- gave Ambari a public_hostname_script to detect the public IP of each instance. This will make links in the Ambari UI use the public IP rather than the private IP which would not be routable unless you are on the 10.x network
- changed JAVA_HOME to point directly to /etc/alternatives/java_sdk. The previous method was finding the exact JAVA_HOME meaning that upgrades of java would require many changes, and potentially be risking if the packages removed a version. Use of alternatives is much easier.
---
platforms/hdp/install_ambari.sh | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
@seanorama
seanorama / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@seanorama
seanorama / fix-things.md
Last active February 26, 2024 04:34
system notes
@seanorama
seanorama / chromium.md
Last active August 29, 2015 14:03
linux-tuning

Put Chromium/Chrome cache into memory

This method doesn't require messing with Chromium's startup parameters or any configuration outside of /home. I prefer to contain as much configuration as possible to /home such that I can easily move it between different systems/distributions.

mkdir -p ~/System/bin
echo 'export PATH="/home/sean/System/bin:$PATH"' >> ~/.zshrc
# change that to .bash_profile, .profile or whatever your shell uses

cat >~/System/bin/startup-x-chromium-cache.sh <<EOL

#!/bin/sh

@seanorama
seanorama / debian-dell-ultraboook.md
Last active August 29, 2015 14:03
Fixes for Debian & LMDE

Various fixes for Debian or LMDE (Linux Mint Debian Edition) running on Dell Ultrabooks (Latitude E7440 in my case) and possibly other systems.


  • Problem: Random, crazy/erratic mouse behavior. Pointer flies all over and crazy clicks which mess with or close applications.

    • Logs show things like:
    [ 9719.613110] psmouse serio1: GlidePoint at isa0060/serio1/input0 - driver resynced.
@seanorama
seanorama / notes-lmde-with-lvm-on-luks.txt
Last active December 5, 2023 17:38
Install LMDE (Linux Mint Debian Edition) with LVM on LUKS (encryption) & hibernation support
# Title: Install LMDE (Linux Mint Debian Edition) 17 with LVM on LUKS (encryption) & hibernation support
#
# Description: These are very rough notes for installing LMDE with
# encryption via LVM on top of LUKS.
# - This includes SWAP being within LUKS
# - Includes fixing hibernation (which will also apply to Debian Jessie or greater)
########
# 1. Boot from LMDE DVD/USB/...
@seanorama
seanorama / gist:5932261
Created July 5, 2013 06:00
localrc for devstack on rackspace cloud
ADMIN_PASSWORD=devstack
MYSQL_PASSWORD=devstack
RABBIT_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=devstack
FLAT_INTERFACE=br100
PUBLIC_INTERFACE=eth0
VOLUME_BACKING_FILE_SIZE=20480M