Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zelark
Last active February 13, 2023 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zelark/9c43952eee0e8a3e86d68c7a9e41c9ce to your computer and use it in GitHub Desktop.
Save zelark/9c43952eee0e8a3e86d68c7a9e41c9ce to your computer and use it in GitHub Desktop.
#config #mac
.vscode/
.lsp/
.calva/
.clj-kondo/cache/

Display

Telegram

Антизапрет. Proxy URL: https://antizapret.prostovpn.org/proxy.pac

Установка keepass

Flux

Типографическая раскладка

FiraCode

Установка homebrew До установки homebrew в /usr/local нет ничего.

zelark@moon-pro ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/share
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Homebrew
/usr/local/Frameworks
==> The Xcode Command Line Tools will be installed.

Установка git

brew install git
git config --global user.name "Aleksandr Zhuravlev"
git config --global user.email kvark.lark@gmail.com
git config --global core.editor vim
git config --list

git config --global core.excludesFile '~/.gitignore'

https://git-scm.com/book/ru/v2/%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5-%D0%9F%D0%B5%D1%80%D0%B2%D0%BE%D0%BD%D0%B0%D1%87%D0%B0%D0%BB%D1%8C%D0%BD%D0%B0%D1%8F-%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0-Git

Создание ssh ключа и добавление его на GitHub

Установка OpenJDK

Установка Clojure

brew install clojure/tools/clojure

Установка Leiningen

brew install leiningen

Установка nvm и node

brew install nvm
mkdir ~/.nvm
echo "export NVM_DIR=$HOME/.nvm" >> ~/.zshrc
echo "source $(brew --prefix nvm)/nvm.sh" >> ~/.zshrc
source ~/.zshrc
nvm --version

nvm install 12
nvm use 12
node --version

VSCode

Расширения: Alabaster, Calva

code cli command: hit shift+cmd+p, then type 'install code command' and hit enter.

Sublime Text

rm /usr/local/bin/Sublime
zelark@MacBook-Pro ~ % ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime

Postgres App

Configure your $PATH to use the included command line tools (optional):

sudo mkdir -p /etc/paths.d &&
echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp

Maven

To install Maven on Mac OS X operating system, download the latest version from the Apache Maven site, select the Maven binary tar.gz file, for example: apache-maven-3.3.9-bin.tar.gz.

tar xzvf apache-maven*bin.tar.gz
rm apache-maven*bin.tar.gz

sudo chown -R root:wheel Downloads/apache-maven*
mv apache-maven* /opt/apache-maven

echo "export PATH=$PATH:/opt/apache-maven/bin" >> ~/.zshrc
source ~/.zshrc

mvn -version

Heroku CLI

brew tap heroku/brew && brew install heroku
;; The deps.edn file describes the information needed to build a classpath.
;;
;; When using the `clojure` or `clj` script, there are several deps.edn files
;; that are combined:
;; - install-level
;; - user level (this file)
;; - project level (current directory when invoked)
;;
;; For all attributes other than :paths, these config files are merged left to right.
;; Only the last :paths is kept and others are dropped.
{
;; Paths
;; Directories in the current project to include in the classpath
;; :paths ["src"]
;; External dependencies
;; :deps {
;; org.clojure/clojure {:mvn/version "1.10.1"}
;; }
;; Aliases
;; resolve-deps aliases (-R) affect dependency resolution, options:
;; :extra-deps - specifies extra deps to add to :deps
;; :override-deps - specifies a coordinate to use instead of that in :deps
;; :default-deps - specifies a coordinate to use for a lib if one isn't found
;; make-classpath aliases (-C) affect the classpath generation, options:
;; :extra-paths - vector of additional paths to add to the classpath
;; :classpath-overrides - map of lib to path that overrides the result of resolving deps
;; :aliases {
;; :deps {:extra-deps {org.clojure/tools.deps.alpha {:mvn/version "0.8.677"}}}
;; :test {:extra-paths ["test"]}
;; }
;; Provider attributes
;; :mvn/repos {
;; "central" {:url "https://repo1.maven.org/maven2/"}
;; "clojars" {:url "https://repo.clojars.org/"}
;; }
:aliases {:nREPL {:extra-deps {nrepl/nrepl {:mvn/version "0.7.0"}
cider/piggieback {:mvn/version "0.4.0"}}}
:unused-vars {:extra-deps {clj-kondo/tools {:git/url "https://github.com/borkdude/clj-kondo"
:sha "c456b9f9198f1563675bf34f2c778ae33ed01625"
:deps/root "analysis"}}
:main-opts ["-m" "clj-kondo.tools.unused-vars"]}
:bench {:extra-deps {criteruim/criterium {:mvn/version "0.4.6"}}}
:test {:extra-paths ["test" "src/test/clojure"]
:extra-deps {org.clojure/test.check {:mvn/version "RELEASE"}}}
:rebel {:extra-deps {com.bhauman/rebel-readline {:mvn/version "0.1.4"}}
:main-opts ["-m" "rebel-readline.main"]}
:decompl {:extra-deps {com.clojure-goes-fast/clj-java-decompiler {:mvn/version "0.3.0"}}}
:new {:extra-deps {seancorfield/clj-new {:mvn/version "1.0.199"}}
:main-opts ["-m" "clj-new.create"]}
:1.8 {:override-deps {org.clojure/clojure {:mvn/version "1.8.0"}}}
:1.9 {:override-deps {org.clojure/clojure {:mvn/version "1.9.0"}}}
}
}
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Alabaster Color Scheme/Alabaster BG.sublime-color-scheme",
"font_face": "Fira Code",
"font_options":
[
"subpixel_antialias"
],
"font_size": 16,
"ignored_packages":
[
"Vintage"
],
"line_padding_bottom": 2,
"line_padding_top": 2,
"original_color_scheme": "Packages/Color Scheme - Default/Mac Classic.tmTheme",
"rulers":
[
120
],
"shift_tab_unindent": true,
"show_encoding": true,
"tab_size": 2,
"theme": "Default.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"wrap_width": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment