(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
" NeoVim CONFIG | |
" Plugin Section | |
call plug#begin("~/.vim/plugged") | |
Plug 'terryma/vim-multiple-cursors' | |
Plug 'scrooloose/nerdtree' | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'junegunn/fzf.vim' " brew install the_silver_searcher ripgrep | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'jiangmiao/auto-pairs' |
" Specify a directory for plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'scrooloose/nerdtree' | |
"Plug 'tsony-tsonev/nerdtree-git-plugin' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'airblade/vim-gitgutter' |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>JS Module in Browser</title> | |
<script type="module" src="./js/main.js"></script> | |
</head> | |
<body></body> | |
</html> |
# Notification Center | |
alias ncstop="launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist" | |
alias ncstart="launchctl load -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist" |
#!/bin/bash | |
username="ubuntu" | |
ssh_pub_key="" | |
# Setup user | |
adduser $username | |
usermod -a -G sudo $username | |
sudo mkdir -p "/home/${username}/.ssh" | |
sudo echo "${ssh_pub_key}" > "/home/${username}/.ssh/authorized_keys" |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<key>PayloadDescription</key> | |
<string>Disables the home button.</string> | |
<key>PayloadDisplayName</key> |
web: /usr/local/sbin/nginx -p `pwd`/tmp/nginx/ -c ../../nginx.conf | |
fastcgi: /usr/local/sbin/php-fpm | |
db: /usr/local/bin/mysqld |
$em-base: 16px !default; | |
@function toEM($px) { | |
@return $px / $em-base * 1em; | |
} |
# http://www.niallflynn.com/seo-news/remove-file-extension-from-urls/ | |
<IfModule mod_rewrite.c> | |
AddType text/x-component .htc | |
RewriteEngine On | |
RewriteBase / | |
# remove .php; use THE_REQUEST to prevent infinite loops | |
RewriteCond %{THE_REQUEST} ^GET\ (.*)\.php\ HTTP | |
RewriteRule (.*)\.php$ $1 [R=301] | |
# remove index |