Skip to content

Instantly share code, notes, and snippets.

Avatar

Remi Vledder StudioSpindle

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