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
# set the PATH | |
PATH="/usr/local/bin:$PATH" | |
# this loads nvm.sh and sets the correct PATH before running hook | |
. ~/.nvm/nvm.sh |
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
<keymap version="1" name="Keyboard 60%" parent="Sublime Text (Mac OS X)"> | |
<action id="EditorCutLineBackward"> | |
<keyboard-shortcut first-keystroke="ctrl u" /> | |
</action> | |
<action id="EditorLeftWithSelection"> | |
<keyboard-shortcut first-keystroke="shift left" /> | |
<keyboard-shortcut first-keystroke="shift ctrl b" /> | |
</action> | |
<action id="EditorNextWord"> | |
<keyboard-shortcut first-keystroke="alt right" /> |
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 | |
# Problem: | |
# CentOS ships with Python as a critical part of the base system. | |
# Because it is a critical part it is not getting updated, other than to plug security vulnerabilities. | |
# CentOS 7 users are stuck with Python 2.7.5 released in May 2013. | |
# Utilities such as yum will break if the default Python interpreter is upgraded or replaced. | |
# The trick is to install new versions of Python in /usr/local (or some other non-standard location) so that | |
# they can live side-by-side with the system version. |
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 | |
# Important: This version has not been tested and used yet | |
# First check if you have root privileges | |
if [ id -u 0 ] | |
then echo "Please run as root" | |
exit | |
fi |
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
# Run this on a CentOS 7+ VM in a Google cloud instance | |
# Make sure it has >3 GB memory with disk size a disk size >20 GB | |
# --------------------------------------------------------------- | |
# Install needed distribution packages: | |
sudo yum install -y yum-utils device-mapper-persistent-data lvm2 && \ | |
# Configure repo: | |
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo && \ |