Skip to content

Instantly share code, notes, and snippets.

View hkorpi's full-sized avatar

Mika Haapakorpi hkorpi

  • Solita
  • Tampere
View GitHub Profile
set nocompatible
set backspace=2
@hkorpi
hkorpi / dev-install.sh
Last active March 21, 2017 17:20
Common development tools for ubuntu
#!/bin/bash
# this installs the common dev tools - this can be executed using curl:
# source <(curl -s https://gist.githubusercontent.com/hkorpi/1f443007e9d3a56ff7c85ce59f9bb6b8/raw/3391b179857e55afe64aa75dc00d43e225306130/dev-install.sh)
# install openssh
sudo apt-get install openssh-server
# install tmux
sudo apt-get install tmux
@hkorpi
hkorpi / git-config.sh
Last active February 21, 2017 11:40
git configuration
#!/bin/bash
# this configuration contains my personal git config - this can be executed using curl:
# source <(curl -s https://gist.githubusercontent.com/hkorpi/9d8aebd262eb9bcead62133cce1dff22/raw/7bce1670c14b58e5e64936f704cb17b5fd10a228/git-config.sh)
# use vi as default git editor
git config --global core.editor vi
# a better git log - https://coderwall.com/p/euwpig/a-better-git-log
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@hkorpi
hkorpi / vagrant-box.sh
Last active June 25, 2018 14:12
create vagrant box
#!/bin/bash
# Required linux packages for vagrant
sudo apt-get install linux-headers-generic build-essential dkms
# Install VBoxGuestAdditions
wget http://download.virtualbox.org/virtualbox/4.3.22/VBoxGuestAdditions_4.3.22.iso
sudo mkdir /media/VBoxGuestAdditions
sudo mount -o loop,ro VBoxGuestAdditions_4.3.22.iso /media/VBoxGuestAdditions
sudo sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run