-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac自用软件 #88
Comments
Oh my zsh安装 oh-my-zsh
zsh-autosuggestions 黏贴时反应慢问题解决c在 ~/.zshrc中添加以下代码,重启终端。
终止自动补全You could use ctrl+k to cancel the auto-completion. however i can not find any information from zsh guide either, but it does cancel auto-completion. |
ssh免密码登录lssh/lscp/lsftp,可以比sshpass更加方便地ssh,scp,sftpsshpass命令使用
# 直接远程连接某主机
$ sshpass -p {密码} ssh {用户名}@{主机IP}
# 远程连接指定ssh的端口
$ sshpass -p {密码} ssh -p ${端口} {用户名}@{主机IP}
# 从密码文件读取文件内容作为密码去远程连接主机
$ sshpass -f ${密码文本文件} ssh {用户名}@{主机IP}
# 从远程主机上拉取文件到本地
$ sshpass -p {密码} scp {用户名}@{主机IP}:${远程主机目录} ${本地主机目录}
# 将主机目录文件拷贝至远程主机目录
$ sshpass -p {密码} scp ${本地主机目录} {用户名}@{主机IP}:${远程主机目录}
# 远程连接主机并执行命令
$ sshpass -p {密码} ssh -o StrictHostKeyChecking=no {用户名}@{主机IP} 'rm -rf /tmp/test'
# -o StrictHostKeyChecking=no :忽略密码提示 |
IDEA 自用插件 |
SFTP on curl# Login using curl on SFTP
curl -k "sftp://83.46.38.23:22/" --user "testuser:testpassword"
# Upload using curl on SFTP
curl -k "sftp://83.46.38.23:22/CurlPutTest/" --user "testuser:testpassword" -T "C:\test\testfile.xml" --ftp-create-dirs
# Download using curl on SFTP
curl -k "sftp://83.46.38.23:22/CurlPutTest/testfile.xml" --user "testuser:testpassword" -o "C:\test\testfile.xml" --ftp-create-dirs
# Rename using curl on SFTP
curl -k "sftp://83.46.38.23:22/CurlPutTest/" --user "testuser:testpassword" -Q "-RENAME
‘/CurlPutTest/testfile.xml’ ‘/CurlPutTest/testfile.xml.tmp’" --ftp-create-dirs
# Delete using curl on SFTP
curl -k "sftp://83.46.38.23:22/CurlPutTest/ " --user "testuser:testpassword" -Q "–RM /CurlPutTest/testfile.xml" --ftp-create-dirs
# Make directory using curl on SFTP
curl -k "sftp://83.46.38.23:22/CurlPutTest/test " --user "testuser:testpassword" -Q "–MKDIR /CurlPutTest/Test" --ftp-create-dirs
# Remove directory using curl on SFTP
curl -k "sftp://83.46.38.23:22/CurlPutTest/test " --user "testuser:testpassword" -Q "–RMDIR /CurlPutTest/Test" --ftp-create-dirs |
显式隐藏文件
|
|
using
|
BurntSushi/ripgrep,出自Best Homebrew Packages for Mac $ rg 🔥
notify/qcloudvoice.go
41: "appName": gou.Decode(m.State, "🔥", "告警啦,", "告警解除啦,").(string) + m.AppName,
model/msg.go
23: State string `json:"state"` // 🔥/❄️
45: State: "🔥",
86: State: "🔥",
# bingoo @ 192 in ~/github/rig on git:master o [22:21:26]
$ rg ❄
model/state.go
83: msg.State = "❄️"
84: logrus.Infof("❄️,消息:%+v, 配置:%+v", msg, w)
model/msg.go
23: State string `json:"state"` // 🔥/❄️ |
Mac 环境下的Ruby
// 离线包
curl -sSL https://github.com/rvm/rvm/tarball/stable -o rvm-stable.tar.gz
// 创建文件夹
mkdir rvm && cd rvm
// 解包
tar --strip-components=1 -xzf ../rvm-stable.tar.gz
// 安装
./install --auto-dotfiles
// 加载
source ~/.rvm/scripts/rvm
// if --path was specified when instaling rvm, use the specified path rather than '~/.rvm'
// 查询 ruby的版本
rvm list known
// 下载指定的版本
rvm install 2.4.0
// 将系统的ruby切换为下载的版本
rvm use 2.4.0 --default
|
命令行翻墙 alias setproxy="export http_proxy=http://127.0.0.1:9999; export https_proxy=http://127.0.0.1:9999; export ALL_PROXY=socks5://127.0.0.1:10000"
alias unsetproxy="unset ALL_PROXY"
alias ip="curl -i http://ip.cn" wget curl 这类网络命令都会经过socks代理 端口9999,怎么看 到的?系统偏好设置->网络->高级->代理 |
Mac上往U盘拷贝,推出U盘命令 $ cp ~/go/bin/linux_amd64/mci /Volumes/Untitled
$ hdiutil eject /Volumes/Untitled
"disk2" ejected. $ diskutil info /Volumes/Untitled
Device Identifier: disk2s1
Device Node: /dev/disk2s1
Whole: No
Part of Whole: disk2
Volume Name:
Mounted: Yes
Mount Point: /Volumes/Untitled
Partition Type: Windows_FAT_32
File System Personality: MS-DOS FAT32
Type (Bundle): msdos
Name (User Visible): MS-DOS (FAT32)
OS Can Be Installed: No
Media Type: Generic
Protocol: USB
SMART Status: Not Supported
Partition Offset: 16384 Bytes (32 512-Byte-Device-Blocks)
Disk Size: 31.2 GB (31237062656 Bytes) (exactly 61009888 512-Byte-Units)
Device Block Size: 512 Bytes
Volume Total Space: 31.2 GB (31221792768 Bytes) (exactly 60980064 512-Byte-Units)
Volume Used Space: 14.9 GB (14892433408 Bytes) (exactly 29086784 512-Byte-Units) (47.7%)
Volume Free Space: 16.3 GB (16329359360 Bytes) (exactly 31893280 512-Byte-Units) (52.3%)
Allocation Block Size: 16384 Bytes
Read-Only Media: No
Read-Only Volume: No
Device Location: External
Removable Media: Removable
Media Removal: Software-Activated
Solid State: Info not available Thanks MAC挂载NTFS硬盘或U盘 |
Shortcuts to move faster in Bash command lineBasic moves
Moving faster
What is Cut and paste (‘Kill and yank’ for old schoolers)
Search the command history
How do I clear/delete the current line in terminal?
Just to summarise all the answers:
|
|
MAC版本TC Marta |
Fig Your terminal, reimagined |
ChameleonChameleon is web application (blog engine) that reflects content from markdown files from a git repository. Powers articles.orsinium.dev. Features:
UsageBuild: git clone https://github.com/life4/chameleon.git
cd chameleon
go build -o chameleon.bin . |
MAC 自用软件一览
The text was updated successfully, but these errors were encountered: