Tmux Setup
Tmux cheat sheet
Ctrl-b c
Ctrl-b n
Ctrl-b p
iTerm2 Tmux Copy and Paste
Option - Select with Mouse
Paste should then work as normal
Tmux config
# mouse
set -g mouse on
# sane scrolling:
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"
set-option -g status-interval 5
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
# theme
tmux_conf_theme_left_separator_main='\uE0B0'
tmux_conf_theme_left_separator_sub='\uE0B1'
tmux_conf_theme_right_separator_main='\uE0B2'
tmux_conf_theme_right_separator_sub='\uE0B3'
# icons
set -g @tmux_power_date_icon ' ' # set it to a blank will disable the icon
set -g @tmux_power_time_icon '🕘' # emoji can be used if your terminal supports
set -g @tmux_power_user_icon ' '
set -g @tmux_power_session_icon 'S'
set -g @tmux_power_upload_speed_icon '↑'
set -g @tmux_power_download_speed_icon '↓'
set -g @tmux_power_left_arrow_icon ''
set -g @tmux_power_right_arrow_icon ''
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'wfxr/tmux-power'
set -g @tmux_power_theme 'snow'
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @colors-solarized 'dark'
# Resurrect
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
Install plugins
Ctrl-b then quickly Shift and press I for Install This should say reloaded environment
Google Takeout Map
Use this script to transform places to visit from semantic location history.
- https://takeout.google.com
- Select Maps data
- Once the exported data is available download the zip.
- Extract the zip and provide the path to the json for the time range of choice.
|
|
Once you have Geojson that this script above will provide you can provide that to Leaflet.
Unicode and Character Sets
Overview
- History of Unicode spans multiple versions, but the latest and most popular is UTF-8.
- UTF-16 is the only web-encoding incompatible with ASCII, and never gained popularity on the web, where it is used by under 0.005% (less than 1 hundredth of 1 percent) of web pages. UTF-8, by comparison, is used by 97% of all web pages.
- UTF-8 is compatible with ASCII so it’s the same for the first 128 characters. Therefore representing a ASCII compatible character in UTF-8 the byte’s first bit would always be 0, leaving remaining 7 for use. If outside ASCII representable characters multiple bytes would be required.
Example with multiple bytes required.
Web/Mobile Tracking
Introduction
Only listing a few common ways of tracking users on the web. The article linked at the bottom behind the one way mirror from the electronic frontier foundation lists many more.
General tracking.
Approach:
- cookies
- ip address based
- url parameters
- html5 localstorage, session storage
- flash
- silver light
- etags
Mitigation: Incognito mode in your browser, will not store these after closing incognito mode.
Third party cookies
Approach: A third party cookie is any cookie being used on a website that are not from the current domain.
Certificate Transparency
Overview
Certificate Transparency (CT) is an open framework of logs, monitors, and auditors created to help domain owners oversee digital certificates issued for their brands. CT logs help domain owners protect their brand by providing a way to find misissued or rogue certificates more easily. Certificate-issuing entities, like CAs, log certificates to comply with standards.
Or more simply certificate transparency logs are kept by CAs and the public can use these logs to detect a rogue actor trying to register a certificate for a domain they do not own.