(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:
| so dope...even tmux has the dracula color schemes. |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="/Users/adrianvalenz/.oh-my-zsh" | |
| # Path to MacVim script to open mvim in terminal | |
| export PATH=/Applications/MacVim.app/Contents/bin/:$PATH | |
| # Use PHP |
| "colorscheme zenburn | |
| "dracula theme | |
| "packadd! dracula | |
| "colorscheme dracula | |
| "let g:dracula_italic = 0 | |
| " material theme | |
| "let g:material_theme_style = 'ocean' | |
| "let g:material_terminal_italics = 1 | |
| "colorscheme material |
| require 'rails_helper' | |
| RSpec.describe "User creates dispatches" do | |
| before(:each) do | |
| user = FactoryBot.create(:user) | |
| login_as(user, scope: :user) | |
| end | |
| it "user visits dashboard dispatches" do | |
| visit dashboard_path |
| # Tmux prefix...most people use Control-A | |
| set-option -g prefix C-f | |
| #No delay when hitting escape key | |
| set -sg escape-time 0 | |
| #No or little delay in repeat time | |
| set-option -g repeat-time 500 | |
| set -g mouse on |
| "ActivateAddons vim-snippets snipmate | |
| autocmd BufReadPost,FileReadPost,BufNewFile,BufEnter * call system("tmux rename-window ':vim => \"" . expand("%:t") . "\"'") | |
| "autocmd VimLeave * call system("tmux rename-window 'tmux'") | |
| autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 | |
| color dracula | |
| let g:airline_theme='dracula' |
| Date (Year, Month, Day): | |
| %Y - Year with century (can be negative, 4 digits at least) | |
| -0001, 0000, 1995, 2009, 14292, etc. | |
| %C - year / 100 (round down. 20 in 2009) | |
| %y - year % 100 (00..99) | |
| %m - Month of the year, zero-padded (01..12) | |
| %_m blank-padded ( 1..12) | |
| %-m no-padded (1..12) | |
| %B - The full month name (``January'') |
| You might also find it useful to know generally what these data types are used for: | |
| :string - is for small data types such as a title. (Should you choose string or text?) | |
| :text - is for longer pieces of textual data, such as a paragraph of information | |
| :binary - is for storing data such as images, audio, or movies. | |
| :boolean - is for storing true or false values. | |
| :date - store only the date | |
| :datetime - store the date and time into a column. | |
| :time - is for time only | |
| :timestamp - for storing date and time into a column.(What's the difference between datetime and timestamp?) |
| lsof -wni tcp:3000 | |
| kill -9 PID | |
| $ ps aux | grep spring | |
| returned: | |
| ubuntu 3271 0.0 0.0 569224 16672 pts/6 Sl 01:11 0:00 spring server | mh03_sample_app | started 3 hours ago | |
| ubuntu 9265 94.3 0.1 468460 73160 ? Rsl 04:20 0:02 spring app | mh03_sample_app | started 2 secs ago | test mode | |
| Killing the spring server: | |
| $ kill -15 3271 |