Author: jpuyy
-
VSCode Notes
https://code.visualstudio.com/docs/setup/mac # 尽量用快捷键 command + shift + E 浏览打开的代码及文件目录 反复按可切换 # Are you using a screen reader to operate VS Code? (word wrap is disabled when using a screen reader) # Golang env: Go to View menu; select **Command Palette** command + shift + p, type Go: install/update tools => select all Tools environment: GOPATH=/Users/yang.yang/go…
-
microsoft desktop client
For mac user Install Microsoft Remote Desktop. https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-clients beta version https://install.appcenter.ms/orgs/rdmacios-k2vy/apps/microsoft-remote-desktop-for-mac/distribution_groups/all-users-of-microsoft-remote-desktop-for-mac
-
macOS 路由管理
osx添加与删除静态路由 sudo route -n add -net 10.10.1.0/24 10.10.1.2 sudo route -n delete -net 10.10.1.0/24 10.10.1.2 清除路由 You need to flush the routes . Use route -n flush several times . Afterwards add your routes with route add. restart network print routes netstat -rn
-
gcp stackdriver
gcp stackdriver https://cloud.google.com/logging/docs/routing/overview Can’t delete the _Default bucket. filter cheet sheet You can’t using > < to compare value in string, even they are numbers, using regex instead. ``` jsonPayload.duration=~".*[0-9][0-9][0-9][0-9]" ```
-
sftp chroot
# cat /etc/ssh/sshd_config | grep -vE ‘^#|^$’ AuthorizedKeysCommand /usr/bin/google_authorized_keys AuthorizedKeysCommandUser root HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_ecdsa_key HostKey /etc/ssh/ssh_host_ed25519_key SyslogFacility AUTHPRIV PermitRootLogin no AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication no ChallengeResponseAuthentication no GSSAPIAuthentication yes GSSAPICleanupCredentials no UsePAM yes X11Forwarding yes ClientAliveInterval 420 UseDNS no AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT AcceptEnv LC_IDENTIFICATION…