{"id":18356263,"url":"https://github.com/rainbowatcher/scripts","last_synced_at":"2025-04-06T12:32:13.419Z","repository":{"id":60178942,"uuid":"529814483","full_name":"rainbowatcher/scripts","owner":"rainbowatcher","description":"shell scripts and dotfiles","archived":false,"fork":false,"pushed_at":"2025-03-22T13:38:52.000Z","size":88,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T14:28:57.774Z","etag":null,"topics":["bash","git","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rainbowatcher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-28T09:17:57.000Z","updated_at":"2025-03-22T13:38:56.000Z","dependencies_parsed_at":"2024-05-21T04:25:17.310Z","dependency_job_id":"096d8321-dc0f-46c4-bc35-e672960f2e54","html_url":"https://github.com/rainbowatcher/scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainbowatcher%2Fscripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainbowatcher%2Fscripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainbowatcher%2Fscripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainbowatcher%2Fscripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rainbowatcher","download_url":"https://codeload.github.com/rainbowatcher/scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247484453,"owners_count":20946388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","git","shell"],"created_at":"2024-11-05T22:09:27.919Z","updated_at":"2025-04-06T12:32:13.023Z","avatar_url":"https://github.com/rainbowatcher.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rainbow Watcher's personal scripts\n\n## Quick Start \n\nWrite it to your `~/.zshrc` to enable those scripts.\n\n```shell\nSCRIPTS_ROOT=\"/path/to/project/location\"\n# if you want to enable proxy\nHTTP_PROXY_ADDR=http://127.0.0.1:12345\nsource $SCRIPTS_ROOT/main.zsh all\n```\n\n\u003e [!NOTE]\n\u003e\n\u003e - Remember to change the proxy port number to you own.\n\u003e - this repository used some third-party packages: `zoxide`, `eza`, `ripgrep`, `fnm`, `node`, `jq`, `gum`...etc\n\u003e \n\u003e ```shell\n\u003e brew install zoxide eza ripgrep fnm node jq gum\n\u003e ```\n\n## Alias\n\n### common\n\n- ..: `cd ..`\n- ...: `cd ../..`\n- lsa: `ls -a`\n- cp: `cp -i`\n- mv: `mv -i`\n- public_ip: `dig +short myip.opendns.com @resolver1.opendns.com`\n- local_ip: `ipconfig getifaddr en0`\n- ips: `ifconfig -a \\| grep -oE inet6? (addr:)?\\s?((([0-9]+.){3}[0-9]+)\\|[a-fA-F0-9:]+) \\| awk {sub(/inet6? (addr:)? ?/, \\\\); print}`\n- cp: `nocorrect cp`\n- man: `nocorrect man`\n- mkdir: `nocorrect mkdir`\n- mv: `nocorrect mv`\n- sudo: `nocorrect sudo`\n- su: `nocorrect su`\n\n### docker\n\n- dps: `docker ps -a --format table {{.Names}}\\t{{.Image}}\\t{{.Status}}`\n- dip: `docker inspect -f {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}`\n- dstart: `docker start`\n- dstop: `docker stop`\n\n### git\n\n- gaa: `git add .`\n- gc: `git commit -m`\n- gca: `git commit -am`\n- gcam: `git commit --amend --no-edit`\n- gp: `git push`\n- gpl: `git pull`\n- gcl: `git clone`\n- gcl1: `git clone --depth 1`\n- gl: `git log --oneline --cherry`\n- gll: `git log --graph --cherry --pretty`\n- gsl: `git shortlog`\n- gtl: `git tag -l`\n- gtd: `git tag -d`\n- gba: `git branch -a`\n- gbd: `git branch --delete`\n- gbrn: `git branch -m`\n- gs: `git switch`\n- gst: `git status -s`\n- gcat: `git cat-file`\n- gcf: `git config -l`\n- gcln: `git clean -xdf`\n- gdf: `git difftool`\n- gho: `git hash-object`\n- gundo: `git reset --soft HEAD^`\n\n### mac\n\n- showfiles: `defaults write com.apple.finder AppleShowAllFiles -bool true \u0026\u0026 killall Finder`\n- hidefiles: `defaults write com.apple.finder AppleShowAllFiles -bool false \u0026\u0026 killall Finder`\n- spotlightoff: `sudo mdutil -a -i off`\n- spotlighton: `sudo mdutil -a -i on`\n\n## Completions\n\n- npm\n\n- pip\n\n## Functions\n\n### clean\n\n1. clean_maven\n2. clean_aira2\n3. clean_ds_store\n4. global_clean\n5. clear_downloads\n\n### extras\n\n1. gi\n2. major\n3. zsh_time\n4. cht\n\n### fzf\n\n\n### net\n\n1. get_status_code\n\n### proxy\n\n1. set_npm_proxy\n2. unset_npm_proxy\n3. set_npm_mirror\n4. reset_npm_mirror\n5. set_cli_proxy\n6. unset_cli_proxy\n7. set_git_proxy\n8. unset_git_proxy\n9. set_pip_mirror\n10. reset_pip_mirror\n11. set_docker_mirror\n12. set_rustup_mirror\n13. reset_rustup_mirror\n14. set_cargo_proxy\n15. unset_cargo_proxy\n16. set_cargo_mirror\n17. reset_cargo_mirror\n18. proxy\n19. unproxy\n20. reset_brew_mirror\n21. set_brew_mirror\n\n### rc\n\n\n### sys\n\n1. _calc_ram\n2. ram\n3. dud\n4. dua\n5. dun\n6. port\n7. pid\n\n### update\n\n1. update_node\n2. update_node_global_pkg\n3. update_rust\n4. update_python\n5. global_update\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainbowatcher%2Fscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frainbowatcher%2Fscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainbowatcher%2Fscripts/lists"}