Skip to content

Instantly share code, notes, and snippets.

@vojtasvoboda
Last active March 13, 2021 22:03
Show Gist options
  • Save vojtasvoboda/d0e3280efbdc2abc8244 to your computer and use it in GitHub Desktop.
Save vojtasvoboda/d0e3280efbdc2abc8244 to your computer and use it in GitHub Desktop.
My appliactions list

My app list

Mouse Acceleration

https://www.reddit.com/r/apple/comments/aqsh1y/how_i_dealt_with_apples_mouse_acceleration/

Read actuall value defaults read -g com.apple.mouse.scaling

Write new value (require restart) defaults write -g com.apple.mouse.scaling -1 (-1 = disable)

If not works, try MouseFixer for Catalina - https://github.com/patrickjane/fixmouse (and then defaults write again)

  • mouse settings (Mac > Settings > Mac) cursor speed 5/10, move speed 4/10

Try Steelseries ExactMouse Tool - https://steelseries.com/engine

Before switch to new machine

  • Chrome - check sync is on (bookmarks, addons)
  • backup Apache configs, PHP configs, check databases to be synced
  • check Desktop and Downloads folder are empty
  • backup SSH key

New Mac setup

  • user home folder name VojtaSvoboda
  • turn on FileVault (disk encryption) and Firewall (turn on invisible mode)
  • turn off Guest account (login for guests)
  • install all MacOS updates
  • test speakers, microphones, webcamera, external screen
  • set quick contact on lock screen (Settings > Security > General > Set message)

MacOS apps

  • Chrome (login to download bookmarks and extensions), Firefox, Magnet
  • Clean My Mac (download it from their websites, to be able set existing licence)
  • Telegram, Skype, Evernote
  • Air Mail (theme Pro, disable animations)
  • iTerm, ohmyz.sh - theme Minimal, color preset Dark Background, font set to Green, Monaco 13pt, change prompt
  • iTerm plugins, open ~/.zshrc and add plugins=(brew composer git sublime)
  • Homebrew
  • Sublime Text (font size 14), Toggl
  • Fork Lift (download from websites version 3; settings > Editace > add Sublime Text as default editor)
  • Postman, FileZilla, Table Plus
  • Sequel Pro (settings > query editor > font Monaco 13pt)
  • Source Tree (setup git, SSH key, GPG key, see below)
  • JetBrains Toolbox
  • PhpStorm (Material Theme - Darker, Compact Sidebar, Tab Height 20, Custom sidebar height 20; Drakula scheme + Menlo 14pt, line 1.0)
  • Dropbox
  • Spotify, Office for Mac, Tunnel Bear
  • Paragon NTFS for Mac 15
  • Tinkerwell, Sketch
  • MacDown, Slack, Zeplin, XnViewMP
  • f.lux (try native Night Shift)
  • MacDown
  • VNC Viewer
  • Extra PNG
  • Helo
  • The Unarchiver
  • eObčanka - Identifikace, eObčanka - Správce karty
  • others: Alfred, Adobe Acrobat Reader DC, ProtonVPN, VLC

Install git, PHP, httpd, mysql@5.7, phpmyadmin

  • brew install -s php@7.4 (-s = install from source)
  • change MySQL root user password over Table Plus or Sequel Pro
  • autostart Apache brew services start httpd
  • autostart MySQL brew services start mysql@5.7

Setup SSH key

  • create SSH key, set password ssh-keygen -t rsa -b 4096 -C "vojtasvoboda.cz@gmail.com"
  • add it to the SSH agent ssh-add -K /Users/VojtaSvoboda/.ssh/id_rsa
  • upload public SSH key to the GitHub, GitLab, Bitbucket
  • configure Source Tree to use brew git (System Git) - Source Tree Config > Git
  • if Source Tree not working, try to clone first repository over git clone CLI to mark GitLab as trusted host
  • setup signing with GPG
  • for Source Tree signing, download GPG Suite and in Source Tree Repository open Settings > Security > Enable GPG and select key
  • for Source Tree there is also manual
  • download GPG Uninstaller, to get rid off GPG Mail extension
  • export GPG public key for GitLab/GitHub gpg --armor --export YOURKEY
  • set GPG key to global config git config --global user.signingkey YOURKEY
  • enable all commits will be signed (also from PhpStorm) git config --global commit.gpgsign true

zsh config

  • add to the end of ~/.zshrc
alias pas="php artisan serve"
alias pacc="php artisan cache:clear"

PROMPT="%(?:%{$fg_bold[green]%}λ:%{$fg_bold[red]%}λ )"
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'

HTTP, PHP, MySQL

  • brew install -s httpd + brew services start httpd for autoload, then we can use also apachectl restart
  • brew install -s mysql +
  • brew install -s php@7.4
  • brew install -s php // install latest PHP
  • edit /opt/homebrew/etc/httpd/httpd.conf, and add:
    • LoadModule php7_module /opt/homebrew/opt/php@7.4/lib/httpd/modules/libphp7.so (beware php7_module)
    • # LoadModule php_module /opt/homebrew/opt/php/lib/httpd/modules/libphp.so
  • for setup vhosts, uncomment httpd-vhosts.conf and httpd-ssl.conf for setup SSL
  • add that lines after "IfModule dir_module":
<FilesMatch \.php$>
    SetHandler application/x-httpd-php
</FilesMatch>
  • update and add index.php to the first place:
<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>

Development packages

PhpStorm plugins

  • Material Theme
  • Atom Material Icons (disable Directory icons)
  • .ignore
  • Apache config (.htaccess) support
  • CodeGlance (code minimap)
  • Command Line Tool Support
  • EditorConfig
  • Git Integration
  • Ini4Idea
  • Laravel Plugin
  • PhpMetrics
  • PHP Inspections
  • PHP Annotations
  • .env support
  • Markdown support

Chrome extensions

  • AdBlock Plus
  • ColorZilla
  • DHC - REST/HTTP API Client
  • Full Page Screen Capture
  • Google Analytics Debugger
  • HTTP Headers
  • JSON Formatter
  • LastPass
  • LiveReload
  • Octo Linker
  • Page Eraser
  • Page load time
  • Pocket
  • Save to Pocket
  • Tag Assistant (by Google)
  • Web Developer
  • WebDEVTools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment