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
The highlighting on Atom is pretty bad and hard to see when using find replace. Change it by 'Atom -> Styleshee' and adding: | |
atom-text-editor::shadow .highlight { | |
&.find-result .region, | |
&.current-result .region, | |
&.current-result ~ .highlight.selection .region { | |
z-index: -1; | |
} | |
&.find-result .region { | |
background: yellow; |
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
rvm docs generate |
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
Spelling: | |
]s — move to the next mispelled word | |
[s — move to the previous mispelled word | |
zg — add a word to the dictionary | |
zug — undo the addition of a word to the dictionary | |
z= — view spelling suggestions for a mispelled word |
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 | |
HOSTS="host1 host2 host3 host4" | |
RETENTION_TIME=14 | |
echo "$(date) - Log Cleaner - $RETENTION_TIME days - $HOSTS" >> /var/log/hadoop_log_cleaner.log | |
for host in $HOSTS | |
do | |
ssh root@$host << ENDSSH |
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/sh - | |
if [ "$(id -ru)" != 0 ]; then | |
printf >&2 'Error: this installer needs the ability to run commands as root.\n' | |
printf >&2 'Install as root or with sudo\n' | |
exit 1 | |
fi | |
my_disable_thp() { | |
( cat > /usr/local/sbin/ambari-thp-disable.sh <<-'EOF' |
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
HW13195:receipts2_ok scarroll$ open -a Preview DSC_0310_converted.JPG | |
The application /Applications/Preview.app cannot be opened because its executable is missing. | |
HW13195:receipts2_ok scarroll$ /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f /Applications/Preview.app | |
HW13195:receipts2_ok scarroll$ open -a Preview DSC_0310_converted.JPG | |
## Ok now |
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
# Install Git | |
# sudo yum -y install git | |
# Git | |
git config --global user.name "Sebastian Carroll" | |
git config --global user.email "[email protected]" | |
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ci commit | |
git config --global alias.st status |