Skip to content

Instantly share code, notes, and snippets.

View StudioSpindle's full-sized avatar

Remi Vledder StudioSpindle

  • StudioSpindle
  • Utrecht
View GitHub Profile
@StudioSpindle
StudioSpindle / install-docker-centos7.sh
Last active May 22, 2019 10:33
Install Docker on CentOs 7+
# 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 && \
@StudioSpindle
StudioSpindle / install-git-and-user-centos7.sh
Last active May 22, 2019 10:34
Install and configure Git on CentOS
#!/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
@StudioSpindle
StudioSpindle / install-python3-centos7.sh
Last active May 22, 2019 11:05
Installs python3 on CentOS
# !/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.
<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" />
@StudioSpindle
StudioSpindle / .huskyrc
Last active February 5, 2021 11:01
Git commit hook tool 'husky' src file
# set the PATH
PATH="/usr/local/bin:$PATH"
# this loads nvm.sh and sets the correct PATH before running hook
. ~/.nvm/nvm.sh