(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:
| # Software Engineer CV Review Prompt | |
| You are a senior Engineering Manager, experienced technical recruiter, and senior Software Engineer who has reviewed hundreds of CVs for software engineering positions. | |
| Your task is to review a candidate’s CV from the perspective of a real hiring manager deciding whether to invite the candidate to an interview. | |
| Be **polite, direct, practical, and firm**. Do not give generic encouragement or vague advice. Prioritize the changes that would have the greatest effect on the candidate’s chances of receiving an interview. | |
| ## Inputs |
| a | |
| a- | |
| aa | |
| aaji | |
| aal | |
| aau | |
| aaui | |
| ab | |
| ab- | |
| aba |
| use std::io; | |
| use std::str; | |
| use std::convert::TryFrom; | |
| use std::collections::HashMap; | |
| use std::str::SplitAsciiWhitespace; | |
| pub struct UnsafeScanner<R> { reader: R, buf_str: Vec<u8>, buf_iter: str::SplitAsciiWhitespace<'static>, } | |
| impl<R: io::BufRead> UnsafeScanner<R> { | |
| pub fn new(reader: R) -> Self { Self { reader, buf_str: vec![], buf_iter: "".split_ascii_whitespace(), } } | |
| pub fn trim_newline(s: &mut String) { if s.ends_with('\n') { s.pop(); if s.ends_with('\r') { s.pop(); } } } |
| set-option -g prefix C-a | |
| setw -g mode-keys vi | |
| set -g default-terminal "screen-256color" | |
| # status bar config | |
| set -g status-left "#h:[#S]" | |
| set -g status-left-length 50 | |
| set -g status-right-length 50 |
| contents = File.read('raw_rapbd.txt') | |
| EXCEPTIONS = [/^Urusan Pemerintahan :/, /^Organisasi :/, /^Jumlah/, /^$/, /^Surplus\/\(Defisit\)/, /^Pembiayaan Netto/] | |
| contents.each_line do |l| | |
| l = l.strip | |
| unless /^\d\.\d\d/.match(l) | |
| if EXCEPTIONS.none? {|e| e.match(l)} | |
| print(" #{l}") | |
| else | |
| print("\n#{l}") |
| leader: , | |
| - ctrl + w + direction: move to selected window | |
| - ctrl + w + ctrl + w: move to another window | |
| - ctrl + w + =: male all window equals | |
| - ctrl + w + _: maximize current window | |
| - :hide: close current window | |
| - :only: close other windows | |
| - u: undo | |
| - ctrl + r: redo | |
| - G: go to last line |
| $ sudo docker run ubuntu:14.04 /bin/echo 'Hello world' | |
| # The -t flag assigns a pseudo-tty or terminal inside our new container and the -i flag allows us to make an interactive connection by grabbing the standard in (STDIN) of the container. | |
| $ sudo docker run -t -i ubuntu:14.04 /bin/bash | |
| # A Daemonized Hello world | |
| $ sudo docker run -d ubuntu:14.04 /bin/sh -c "while true; do echo hello world; sleep 1; done" | |
| 1e5535038e285177d5214659a068137486f96ee5c2e85a4ac52dc83f2ebe4147 | |
| $ sudo docker ps |
| #Start server | |
| php artisan serve | |
| php artisan migrate:make create_users_table | |
| php artisan migrate | |
| php artisan db:seed |