Last active
September 24, 2021 15:48
-
-
Save papilip/b9aa0184328a9a18b71f8620e220453b to your computer and use it in GitHub Desktop.
brew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias bw='brew' | |
alias bwd='brew doctor' | |
alias bwi='brew info' | |
alias bwo='brew outdated' | |
alias bws='brew search' | |
alias bwu='brew update' | |
alias cd..='cd ..' | |
alias dfh='df -h' | |
# alias la='ls -lhA' | |
# alias ll='ls -lh' | |
# alias lla='ls -lhA' | |
alias k=' bundle exec rake' | |
alias kdbm='bundle exec rake db:migrate' | |
alias kdbr='bundle exec rake db:rollback' | |
alias kdbs='bundle exec rake db:seed' | |
alias kr=' bundle exec rake routes' | |
alias kt=' bundle exec rake -T' | |
alias ly=' lilypond' | |
alias m=' mate' | |
alias m.=' mate .' | |
alias o=' open' | |
alias r=' bundle exec spring rails' | |
alias rc=' bundle exec spring rails console' | |
alias rg=' bundle exec spring rails generate' | |
alias rs=' bundle exec spring rails server --binding=localhost' | |
############################################################################# | |
### Alias pour GIT & Cie | |
alias deploy='cap deploy' | |
alias dstart='cap deploy:start' | |
alias dstop='cap deploy:stop' | |
# alias ga='git a' | |
# alias ga.='git a .' | |
# alias gaa='git a --all' | |
alias gap=' git add --patch' | |
alias gb=' git branch' | |
alias gc=' git clone' | |
alias gci=' git commit' | |
alias gcim=' git commit -m' | |
alias gciam=' git commit -am' | |
alias gdc=' git diff --cached' | |
alias gco=' git checkout' | |
alias gd=' git diff' | |
alias gf=' git fetch --prune' | |
alias gm=' git merge' | |
alias gmt=' git mergetool' | |
alias gp=' git push' | |
alias gpl=' git pull' | |
alias gpo=' git po' | |
alias grb=' git rb' | |
alias grm=' git rm' | |
alias gh=' git stash' | |
alias gha=' git stash apply' | |
alias ghb=' git stash branch' | |
alias ghc=' git stash clear' | |
alias ghd=' git stash drop' | |
alias ghl=' git stash list' | |
alias ghp=' git stash pop' | |
alias ghs=' git stash show' | |
alias gst=' git status --short --branch' | |
alias gt=' git log --graph --date=relative --pretty=format:"%Cred%h8%Creset - %s %C(blue)(%cr)%Creset %C(green)%cn%Creset %C(yellow)%d%Creset" --all' | |
alias gw=' git flow' | |
alias grtdev=' git push gerrit HEAD:refs/for/develop' | |
alias grtstg=' git push gerrit HEAD:refs/for/staging' | |
alias ggpulr=' git pull --rebase origin $(current_branch)' | |
# Pour utiliser Sublime Text à la plce de Texmate | |
alias tm='st' | |
# alias z=' zeus' | |
# alias zsr=' zeus server --binding=127.0.0.1' | |
# alias zsrb=' zeus server --port 3001' | |
# Alias pour éditer mes fichiers systèmes | |
alias ohmyzsh=' subl --new-window ~/.oh-my-zsh' | |
alias gitconfigall='subl --new-window ~/.gitconfig' | |
alias gitconfig=' subl --new-window .git/config' | |
alias gitignore=' subl --new-window ~/.gitignore' | |
alias sshconfig=' subl --new-window ~/.ssh/config' | |
alias zshhistory=' subl --new-window ~/.zsh_history' | |
alias zshrc=' subl --new-window ~/.zshrc' | |
alias subl.='subl .' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH="/usr/local/bin:/usr/local/sbin:$PATH" | |
source /usr/local/opt/chruby/share/chruby/chruby.sh | |
source /usr/local/opt/chruby/share/chruby/auto.sh | |
chruby `cat ~/.ruby-version` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Plugins | |
plugins=(autojump bundler crystal git rails ruby sublime) | |
# User configuration | |
setopt HIST_IGNORE_ALL_DUPS | |
export HOMEBREW_EDITOR="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" | |
# Aliases | |
source ~/.zsh_alias |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/local/etc/nginx/servers/8181-phpmyadmin.conf | |
server { | |
listen 8181; | |
server_name localhost; | |
root /usr/local/share/phpmyadmin; | |
index index.php; | |
#error_log /usr/local/etc/nginx/logs/phpmyadmin.error.log; | |
#access_log /usr/local/etc/nginx/logs/phpmyadmin.access.log main; | |
location ~ \.php$ { | |
try_files $uri = 404; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install asdf archey autojump git ghostscript imagemagick htop httrack mariadb mas midnight-commander nginx node p7zip php phpmyadmin postgresql python sha3sum speedtest-cli sqlite tree wget wifi-password yarn youtube-dl | |
brew install asdf autojump chruby git p7zip trash tree wget | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
brew install bettertouchtool dropbox firefox flycut google-chrome iterm2 skype sublime-text the-unarchiver vlc whatsapp | |
brew install adobe-acrobat-reader adoptopenjdk bettertouchtool chromium discord docker dropbox electron firefox flycut gimp gitahead gitfiend github google-chrome inkscape iterm2 jdownloader jitsi-meet opera pdf-images scribus signal simple-comic skype speedcrunch sublime-merge sublime-text teamviewer telegram-desktop the-unarchiver twitch vlc vscodium zoom | |
brew services start mariadb | |
brew services start nginx | |
brew services start php | |
asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby.git | |
asdf install ruby latest && asdf global ruby 3.0.2 | |
asdf plugin-add crystal https://github.com/asdf-community/asdf-crystal.git | |
asdf install crystal latest && asdf global crystal 1.1.1 | |
sudo spctl --master-disable | |
brew install asciidocfx | |
# Remettre la sécurité en place |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
socket: '/tmp/mysql.sock' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment