Skip to content

Instantly share code, notes, and snippets.

@dvdbng
dvdbng / vim-heroku.sh
Last active April 22, 2024 22:42
Run vim in heroku updated 2017
mkdir ~/vim
cd ~/vim
# Staically linked vim version compiled from https://github.com/ericpruitt/static-vim
# Compiled on Jul 20 2017
curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz
export VIMRUNTIME="$HOME/vim/runtime"
export PATH="$HOME/vim:$PATH"
cd -
@parmentf
parmentf / GitCommitEmoji.md
Last active May 6, 2024 18:30
Git Commit message Emoji
@georgeyord
georgeyord / gist:9502606
Created March 12, 2014 07:53
Change the Primary Document Root in cPanel/WHM
For changing the main/primary domain, you will need to have root SSH access and be able to edit the following files (replacing your user & domain info):
/var/cpanel/userdata/USERNAME/DOMAIN.COM (replace USERNAME and DOMAIN.COM with actual info).
In that file, find these two lines:
documentroot: /home/USERNAME/public_html
path: /home/USERNAME/public_html/cgi-bin
And, edit them accordingly:
@willurd
willurd / web-servers.md
Last active May 6, 2024 13:43
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000