Skip to content

Instantly share code, notes, and snippets.

View sheldonldev's full-sized avatar
🎯
Focusing

李霞丹 sheldonldev

🎯
Focusing
View GitHub Profile
@sheldonldev
sheldonldev / wordpress_install_ubuntu-1604.sh
Created May 5, 2020 05:11 — forked from initcron/wordpress_install_ubuntu-1604.sh
Install wordpress on Ubuntu 16.04 LTS
#!/bin/bash
sudo apt-get update
sudo apt-get install apache2 apache2-utils -yq
sudo systemctl enable apache2
sudo systemctl start apache2
sudo apt-get install php libapache2-mod-php php-mysql -yq
sudo apt-get install php-curl php-gd php-mbstring php-xml php-xmlrpc -yq
sudo a2enmod rewrite
sudo systemctl restart apache2
cd /var/www
@sheldonldev
sheldonldev / .vimrc
Last active December 21, 2020 08:30
syntax on " let vim overrule your settings with default syntax
syntax enable " if you have $VIM_HOME/syntax/syntax.vim
filetype indent plugin on " To use $VIM_HOME/after/ftplugin
set nocompatible " no compatible with vi or other vim
set encoding=UTF-8 " the encoding displayed "
set fileencoding=UTF-8 " The encoding written to file "
set showcmd " Always show command line "
set cmdheight=2 " Command line height is 2 "
set laststatus=2 " Always display the status line "
@sheldonldev
sheldonldev / Zsh
Created July 26, 2020 05:40 — forked from sarthaksavvy/Zsh
Terminal Alias
export DEFAULT_USER="$(whoami)"
export PATH=~/.composer/vendor/bin:$PATH
# Alias for composer
alias cr=composer
alias cri="composer install"
alias crd="composer dump-autoload"
alias cru="composer update"
# Alias for artisan commands
@sheldonldev
sheldonldev / cloudSettings
Created July 26, 2020 07:21 — forked from sarthaksavvy/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-01-29T09:00:59.907Z","extensionVersion":"v3.4.3"}