Code Monkey home page Code Monkey logo

.ooo.'s Introduction

Alswl's .oOo.

这里是我的 Linux / macOS 配置文件,有兴趣的可以参考。

This is my Linux / macOS configuration.

目前的配置文件包括:

These configuration Includes:

Useful local/bin (scripts):

  • SimpleHTTPServerWithUpload.py # simple HTTPS Server with Upload
  • bing-wallpaper.sh # bing wallpaper downloader
  • check-brew-cask-upgrade # fast check brew cask updates
  • crash # crash link
  • csv2json
  • ddns-by-cloudflare # update dns record for local device by cloudflare
  • ddns-by-cloudflare-wan # update dns record for public IP by cloudflare
  • ddns-by-dnspod # update dns record for local device by dnspod
  • ddns-by-dnspod-wan # update dns record for public IP by dnspod
  • dig-http
  • edit-server # script for TextAid, use vim in Chorme, https://chrome.google.com/webstore/detail/ppoadiihggafnhokfkpphojggcdigllp
  • fcitx-remote-osa # use osa switch macOS Input Method
  • format-gfm # format file with github flavor markdown
  • format-markdown # format file with markdown
  • funiq # file uniq, generate hash for file
  • generate-output-summary-md # generate .output for yuque
  • generate-summary-md # generate summary.md for markdown directory
  • generate_dash_index.sh # generate dash doc index
  • gh-md-toc
  • git-archive-zip # archive a git repo to zip, and rename it to xxx.git
  • git-code-numbers-by-authors # analytics git repo by author
  • git_diff_wrapper # deprecate, use git difftool
  • homebrew-using-mirror # using mirror for homebrew
  • image-from-clipboard-to-png-copy-markdown # paste image from clipcbard to png file with markdown format
  • image-from-clipboard-to-png-global # paste image from clipcbard to png file
  • image-from-path-to-assets-copy-markdown # paste image from path to png file with markdown format
  • iterm2-recv-zmodem.sh # rz for iTerm2
  • iterm2-send-zmodem.sh # sz for iTerm2
  • jmxsh
  • jmxterm
  • lark-gen-markdown # yuque markdown generate .output
  • ls-upload-log4d
  • markdown2ctags.py
  • mdcp # copy markdown with internal links update (DEPRECATED, using Obsidian)
  • mdmv # move markdown with internal links update (DEPRECATED, using Obsidian)
  • mdsearch # markdown search, mardkown file search by title (DEPRECATED, using Obsidian)
  • mouse-tracking-echo-in-shell
  • mouse_restore.sh
  • mov2gif
  • mysql2sqlite.sh
  • paste-html-to-md
  • paste-html-to-md-copy
  • paste-html-to-rtf
  • paste-html-to-rtf-copy
  • paste-md-to-html
  • paste-md-to-html-copy
  • paste-md-to-rtf
  • paste-md-to-rtf-copy
  • paste-rtf-to-html
  • paste-rtf-to-html-copy
  • paste-rtf-to-md
  • paste-rtf-to-md-copy
  • paste-rtf-to-md-for-table
  • paste-rtf-to-md-for-table-copy
  • privoxy_restart.sh
  • puml-format-order-node
  • pyyaml-format # format yaml with pyyaml
  • qrdecode
  • reduceimg
  • release-mvn-to-git-release-binary-branch.sh
  • release-sbt-to-git-release-binary-branch.sh
  • remark # generate remark slide by md
  • reveal # generate reveal slide by md
  • rime_dict_manager
  • rsocks_start.sh
  • scel2mmseg.py
  • shadowsocks_client_start_ha.sh
  • shadowsocks_client_start_hk.sh
  • shadowsocks_client_start_jp.sh
  • shj
  • socks5proxywrapper
  • soks5proxyhttp
  • soks5proxyssh
  • speedfox
  • sqlite3-to-mysql.py
  • svg2icns # convert svg to icns (icons set)
  • svn_diff_wrapper
  • tinypng # use tinypng to compress image
  • tinyproxy_start.sh
  • tinyproxy_stop.sh
  • trash-put # implement trash-put command with trash command
  • tree2fulltree # convert tree output to list
  • tsa
  • uniqf # alias for funiq
  • unzip-gbk # unizp gbk file in Linux / macOS
  • url_diff
  • view-pyc-file
  • view-pyc-file3
  • viscosity-to-ios-connect.rb

Usage

# install zsh
apt-get-install zsh
# or
brew install zsh

# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# git clone zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions


# install .oOo.
cd YOUR_REPO_PARENT_PATH
git clone https://github.com/alswl/.oOo.
cd .oOo.
ln -s $(pwd)/.* $HOME/
rm $HOME/.git
rm $HOME/.DS_Store
cp $(pwd)/_.gitconfig $HOME/.gitconfig

mkdir -p $HOME/local/bin
mkdir -p $HOME/local/etc
ln -s $(pwd)/local/bin/* $HOME/local/bin/
ln -s $(pwd)/local/etc/* $HOME/local/etc/

macOS continues:

cd YOUR_REPO_PATH
ln -s $(pwd)/mac/.* $HOME/
ln -s $(pwd)/mac/phoenix/dist/phoenix.js $HOME/.phoenix.js
ln -s $(pwd)/mac/_Library/Application\ Support/Karabiner/private.xml $HOME/Library/Application\ Support/Karabiner/private.xml
ln -s $(pwd)/mac/_config/karabiner/karabiner.json $HOME/.config/karabiner/karabiner.json

Linux continues:

cd YOUR_REPO_PATH
ln -s $(pwd)/linux/.* $HOME/

Phoenix (window management in macOS as tiling system)

Application launch:

Application in window switch:

Window movement:

More details in Windows management for hacker | Log4D

Related

  • miv vim configuration
  • awesome awesome configuration

.ooo.'s People

Contributors

alswl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

.ooo.'s Issues

传入 addSearchAliasX 的别名能不能接受正则表达式?

传入 addSearchAliasX 的别名能不能接受正则表达式?

surfingkeys-search.gif

打开 Omnibar 之后,输入g之后按空格,就可以谷歌搜索。别名能否接受正则表达式,g|go|gg|google等都能实现?

暂时,我用复制粘贴解决这个问题。

addSearchAliasX('g', 'google', 'https://www.google.com/search?q=', 's', 'https://www.google.com/complete/search?client=chrome-omni&gs_ri=chrome-ext&oit=1&cp=1&pgcl=7&q=', function(response) {
    var res = JSON.parse(response.text);
    return res[1];
});
addSearchAliasX('go', 'google', 'https://www.google.com/search?q=', 's', 'https://www.google.com/complete/search?client=chrome-omni&gs_ri=chrome-ext&oit=1&cp=1&pgcl=7&q=', function(response) {
    var res = JSON.parse(response.text);
    return res[1];
});
addSearchAliasX('gg', 'google', 'https://www.google.com/search?q=', 's', 'https://www.google.com/complete/search?client=chrome-omni&gs_ri=chrome-ext&oit=1&cp=1&pgcl=7&q=', function(response) {
    var res = JSON.parse(response.text);
    return res[1];
});
addSearchAliasX('google', 'google', 'https://www.google.com/search?q=', 's', 'https://www.google.com/complete/search?client=chrome-omni&gs_ri=chrome-ext&oit=1&cp=1&pgcl=7&q=', function(response) {
    var res = JSON.parse(response.text);
    return res[1];
});

是不是15行写错了??grep写成了ggrep???

bash brew-upgrade.sh
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found
brew-upgrade.sh: line 15: ggrep: command not found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.