Hibernate сохраняется нормально. При включении видно Resume from ..., образ долго читается, но вместо старой сессии появляется обычный login screen.
sudo journalctl -b 0 -k --no-pager || %config InteractiveShell.ast_node_interactivity='last_expr_or_assign' |
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.
| set -g mouse on | |
| set -g status on | |
| set-window-option -g mode-keys vi | |
| set-option -g default-command "/usr/bin/bash" | |
| bind-key -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" | |
| bind-key -n WheelDownPane select-pane -t= \; send-keys -M | |
| unbind C-b |
| default: 01 | |
| 01: | |
| $(MAKE) -s ranking | tee ranking.md | |
| ranking: TARGET ?= _ranking | |
| ranking: | |
| $(MAKE) -s ${TARGET} | jqfpy -c 'd = get(); {"package": d["package"], **d["data"]}' | jqfpy --slurp 'sorted(get(), key=lambda x: x["last_month"] + (4 * x["last_week"]), reverse=True)' | dictknife cat -i json -o md | |
| _ranking: OPT ?= -f json |
| ### Kaggle Days SF: Hackathon submission (8th place) | |
| # I used the latest version of H2O (3.24.0.1) | |
| # Latest stable always here: http://h2o-release.s3.amazonaws.com/h2o/latest_stable.html | |
| # H2O 3.24.0.1: http://h2o-release.s3.amazonaws.com/h2o/rel-yates/1/index.html | |
| # If you are a Python user, you can use the demo Python code available on the H2O AutoML User Guide | |
| # instead: http://docs.h2o.ai/h2o/latest-stable/h2o-docs/automl.html | |
| # Unfortunately it was a private competition, so the data is not publicly available! |
This guide assumes that:
gcloud) is installed on your local machinegcloud auth login| #CODE | |
| #Generate root password | |
| import random, string | |
| password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20)) | |
| #Download ngrok | |
| ! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | |
| ! unzip -qq -n ngrok-stable-linux-amd64.zip | |
| #Setup sshd |
| tap "homebrew/bundle" | |
| tap "homebrew/cask" | |
| tap "homebrew/cask-versions" | |
| tap "homebrew/core" | |
| tap "homebrew/services" | |
| brew "docker" | |
| brew "docker-compose" | |
| brew "gist" | |
| brew "git" | |
| brew "hub" |
Add --allow-privileged=true to:
# kubelet config
sudo vim /var/snap/microk8s/current/args/kubelet
#kube-apiserver config
sudo vim /var/snap/microk8s/current/args/kube-apiserverRestart services: