:tabnew
- new blank tab:tabedit [file]
- open file in tab
gt
(:tabn
) - next tab
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B) | |
set -g prefix C-space | |
unbind-key C-b | |
bind-key C-space send-prefix | |
# Set new panes to open in current directory | |
bind c new-window -c "#{pane_current_path}" | |
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" |
import boto3 | |
import pandas as pd | |
from io import BytesIO | |
bucket, filename = "bucket_name", "filename.csv" | |
s3 = boto3.resource('s3') | |
obj = s3.Object(bucket, filename) | |
with BytesIO(obj.get()['Body'].read()) as bio: | |
df = pd.read_csv(bio) |
WSL 2 uses a Hyper-V Virtual Network adapter. Network connectivity works without any issue when a VPN is not in use. However when a Cisco AnyConnect VPN session is established Firewall Rules and Routes are added which breaks connectivity within the WSL 2 VM. This issue is tracked WSL/issues/4277
Below outline steps to automatically configure the Interface metric on VPN connect and update DNS settings (/etc/resolv.conf) on connect/disconnect.