Ryan Shang

生死看淡,不服就干

0%

个人使用的开发Mac,很早就用别人给的教程配置好了Zsh,使用一直很舒服,这次在自己的deepin上配置一次,这里做个简单记录。

安装清单

名称 备注 链接
zsh shell的一种 https://www.zsh.org/
oh-my-zsh zsh的配置工具 https://ohmyz.sh/
zsh-autosuggestions 命令自动补全插件 https://github.com/zsh-users/zsh-autosuggestions
zsh-syntax-highlighting 命令高亮插件 https://github.com/zsh-users/zsh-syntax-highlighting
Powerline 个人用主题的字体(不用会乱码) https://github.com/powerline/fonts
iTerm2 Mac下一个推荐的终端 http://iterm2.com/

安装过程

1. 安装zsh

阅读全文 »

今天圣诞节,在工作时侯,出现了一个有意思的意外情况,这里做下记录。

事情经过

一个比较大的需求,每天都保持了一次个人开发分支提交。今天发现有4次提交没有合并到主开发分支,于是动手合并,合并记如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
10262  gco dev
10263 git pull
10264 git log
10265 gco feature/my-dev-branch
10266 git rebase dev
10267 git rebase -i HEAD~4
10268 git log
10269 git rebase -i HEAD~1
10270 git log
10271 git push -f
10272 gco dev
10273 git merge feature/my-dev-branch
10274 git push
10275 git log

我们部门合并到主开发分支前,要求合并下commit记录,按照以往的流程是没有问题的。

阅读全文 »

这几周在研究安卓手机的Linux Deploy和FRP内网穿透,每次启动关闭重启都要手动执行一些命令,于是想到用shell脚本去控制,稍稍研究了下,写了几个脚本,这里做下记录,以Frpc进程为例,假设Frp编译后的文件夹路径为/home/user/frp

start.sh

1
2
3
4
5
6
7
8
9
10
11
NAME=frpc
NAME_OUT="${NAME^}"
DIR=/home/user/frp
PID=$(ps -e | grep $NAME | awk {'print $1'})
if [[ $PID == "" ]]
then
nohup $DIR/$NAME -c $DIR/$NAME.ini > $DIR/nohup.out 2>&1 &
echo "Start $NAME_OUT Success"
else
echo "$NAME_OUT is already running!"
fi

stop.sh

1
2
3
4
5
6
7
8
9
10
11
NAME=frpc
NAME_OUT="${NAME^}"
DIR=/home/user/frp
PID=$(ps -e | grep $NAME | awk {'print $1'})
if [[ $PID == "" ]]
then
echo "$NAME_OUT is not running!"
else
sudo kill -9 $PID
echo "Stop $NAME_OUT Success!"
fi
阅读全文 »

整理记录下个人常用的各平台的应用软件:

1. 日常工具类

名称 备注 网址 Windows Mac Linux
Motrix 下载工具 https://motrix.app/zh-CN/
Xmind 思维导图 https://www.xmind.net/
draw.io 流程图工具 https://www.draw.io/
Gas Mask host管理工具 https://github.com/2ndalpha/gasmask
New File Menu Free 新建文件工具 App Store
Go2Shell 在访达当前路径打开终端 https://zipzapmac.com/Go2Shell
Hyper 终端 https://hyper.is/
oh-my-zsh 终端配置工具 https://ohmyz.sh/
Windows Terminal 终端 https://github.com/microsoft/terminal
Listary 快捷启动工具 https://www.listary.com/
Alfred 快捷键效率工具 https://www.alfredapp.com/
Typora Markdown编辑器 https://www.typora.io/

2. 影音娱乐类

名称 备注 网址 Windows Mac Linux
listen1 吃饭工具0.0 https://listen1.github.io/listen1/
HandBrake 视频转码编辑软件 https://handbrake.fr/
Potplayer 视频播放器 https://potplayer.daum.net/
IINA 视频播放器 https://iina.io/
VLC Media Player 视频播放器 https://www.videolan.org/vlc/index.zh.html
阅读全文 »

突然之间,就想写点东西。

有人问过我,为什么选择北漂?

当时自己嘴上的回答很简单:自己的行业在西安找一份高工资的工作不容易,尤其是自己还处于处起步阶段,是个前端界的小学生。

其实,说心里话,当时自己心里也没有答案。

这么一两年过去了,可能心里面也有了答案。

阅读全文 »