Skip to content

Instantly share code, notes, and snippets.

View rex-zsd's full-sized avatar
🎯
Focusing

rex rex-zsd

🎯
Focusing
View GitHub Profile
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@rex-zsd
rex-zsd / readme.md
Last active February 17, 2017 06:54
youtube-dl 与 ffmpeg 与 mpv

mac用户如何使用极(装)客(逼)的方法下载、编码、观看视频

最初得知youtube-dl的方式非常奇葩,youtube-dl的更新频率太快了…………

作为brew用户,我每天都会brew upgrade

然后,我发现每过几天,youtube-dl都会出现在更新列表,而它的名字又是如此直白

install以后发现非常棒,搭配ss可以完美下载Youtube视频

@rex-zsd
rex-zsd / readme.md
Last active February 17, 2017 06:42
hyper

使用electron开发的终端hyper

可以使用brew cask install hyper来安装,但是反正hyper内做了自更新,也没必要使用brew来管理了。

使用的时候遇到了一个坑,我的mac上使用的shell是/bin/zsh

此时必须在~/.hyper,js内设置shell: '/bin/zsh'

否则hyper会无法install、update plugins,

@rex-zsd
rex-zsd / readme.md
Last active June 27, 2023 09:03
图片压缩工具

google的 pagespeed tools 中提供了图片的优化建议,其中提到了一些图片压缩工具。

顾名思义,针对png格式图片的压缩

命令行操作,mac下可以通过brew安装 brew install optipng

基本操作 `optipng <filename>`,也可自行指定压缩等级 `optipng -o<level> <filename>`