{"id":2736,"date":"2022-05-27T12:27:09","date_gmt":"2022-05-27T03:27:09","guid":{"rendered":"https:\/\/dev-n8finch.pantheonsite.io\/?p=2736"},"modified":"2023-12-17T21:45:06","modified_gmt":"2023-12-18T03:45:06","slug":"setting-up-or-resetting-my-macbook","status":"publish","type":"post","link":"https:\/\/n8finch2024.local\/setting-up-or-resetting-my-macbook\/","title":{"rendered":"Setting Up or Resetting My Macbook"},"content":{"rendered":"\n
Every now and then, fresh start is a good idea.<\/p>\n\n\n\n
These are some notes and links I’ve accrued from resetting my Macbook a time or two.<\/p>\n\n\n\n
These are just notes and links, they might be non-sensical, if you think I should polish them up, let me know.<\/p>\n\n\n\n
<\/p>\n\n\n\n
https:\/\/stackoverflow.com\/questions\/35368889\/how-can-i-export-settings<\/a><\/p>\n\n\n\n With the current version of Visual Studio Code as of this writing (1.22.1), you can find your settings in<\/a>:<\/p>\n\n\n\n The files are I need to get a list of what I have installed:<\/p>\n\n\n\n Save this output for later.<\/p>\n\n\n\n Especially if you’re selling the computer, log out or deactivate\/deregister these:<\/p>\n\n\n\n <\/p>\n\n\n\n <\/p>\n\n\n\n At least as of Ventura (OSX v.13), you can go into System Settings >> Transfer or Reset and click a button “Erase all Content and Settings”.<\/p>\n\n\n\n There’s also a migration helper.<\/p>\n\n\n\n Otherwise, you need to reboot the computer in safemode, and then use the Disk Utility to erase the hardrive, but NOT the mac system installer.<\/p>\n\n\n\n <\/p>\n\n\n\n Pretty much in this order…<\/p>\n\n\n\n In MacOS Ventura (at least), you can disable this in the System Preference (thank goodness!), otherwise, you can try:<\/p>\n\n\n\n <\/p>\n\n\n\n <\/p>\n\n\n\n Once hombrew is installed, run the following:<\/p>\n\n\n\n <\/p>\n\n\n\n After homebrew is set up, PHP can be installed with this package<\/a>:<\/p>\n\n\n\n After PHP is installed, run the following to install Composer<\/a> globally:<\/p>\n\n\n\n If the Arc: Sign into account, sync with iCloud should be on, make sure to open preferences, and “On startup” should be set to “Continue where you left off”.<\/p>\n\n\n\n Chrome: Sign into accounts, make sure to open preferences, and “On startup” should be set to “Continue where you left off”.<\/p>\n\n\n\n intellij idea – Code reformatting on save in PhpStorm or other jetbrains ide – Stack Overflow<\/a><\/p>\n\n\n\n PHP CodeSniffer and Code Formatting<\/a><\/p>\n\n\n\n Third party mouse issues: <\/a>https:\/\/www.isiko.de\/how-to-disable\/<\/a><\/p>\n\n\n\n Connecting iMessage from iPhone: https:\/\/support.apple.com\/en-us\/HT208386<\/a><\/p>\n\n\n\n “laptop computer 2006 to current<\/a>” by elizabeth.hargis<\/a> is marked with Public Domain Mark 1.0<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":" Every now and then, fresh start is a good idea. These are some notes and links I’ve accrued from resetting my Macbook a time or two. These are just notes and links, they might be non-sensical, if you think I should polish them up, let me know. Backup: Export VSCode settings and keybindings https:\/\/stackoverflow.com\/questions\/35368889\/how-can-i-export-settings With […]<\/p>\n","protected":false},"author":1,"featured_media":2739,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[1],"tags":[],"yoast_head":"\n\n
~\/.config\/Code\/User<\/code> on Linux<\/li>\n\n\n\n
%APPDATA%\\Code\\User<\/code> (
C:\\Users\\username\\AppData\\Roaming\\Code\\User<\/code>) on Windows<\/li>\n\n\n\n
~\/Library\/Application Support\/Code\/User\/<\/code> on Mac OS X<\/li>\n<\/ul>\n\n\n\n
settings.json<\/code> and
keybindings.json<\/code>. Simply copy them to the target machine.<\/p>\n\n\n\n
code --list-extensions | xargs -L 1 echo code --install-extension<\/code><\/pre>\n\n\n\n
Log out of Apple Apps<\/h2>\n\n\n\n
\n
Backup Desktop and Screen Savers<\/h3>\n\n\n\n
\n
Resetting the computer<\/h2>\n\n\n\n
Ok, I’m ready, this is what I do<\/h2>\n\n\n\n
Remove Startup Chime<\/h3>\n\n\n\n
###Catalina\n# Disable:\nsudo nvram SystemAudioVolume=%80\n#Enable:\nsudo nvram -d SystemAudioVolume\n###Others\n# Disable\nsudo nvram StartupMute=%01 \n# Enable (why, I don't know)\nsudo nvram StartupMute=%00<\/code><\/pre>\n\n\n\n
Keyboard<\/strong> Settings<\/h3>\n\n\n\n
\n
\n
Application setup<\/h3>\n\n\n\n
\n
brew install<\/code> everything else<\/li>\n\n\n\n
chmod 600 \/Users\/myuser\/.ssh\/id_rsa<\/code><\/li>\n\n\n\n
npm install --global trash-cli<\/code><\/li>\n\n\n\n
Homebrew Installs<\/h3>\n\n\n\n
brew install 4k-video-downloader alfred arc bartender balenaetcher boop cleanmymac clipy discord disk-inventory-x firefox fork git insomnia kindle lastpass licecap local mailpit microsoft-edge node nosql-workbench notion nvm obsidian oracle-jdk postman pyenv rectangle rocket screaming-frog-seo-spider sequel-ace skitch slack speedtest tableplus transmit visual-studio-code vlc warp whatsapp zoom<\/code><\/pre>\n\n\n\n
Global NPM Installs<\/h3>\n\n\n\n
npm install -g netlify-cli trash-cli<\/code><\/pre>\n\n\n\n
PHP and Composer<\/h3>\n\n\n\n
brew tap shivammathur\/php\nbrew install shivammathur\/php\/php@8.2\nbrew link --overwrite --force shivammathur\/php\/php@8.1\nphp -v<\/code><\/pre>\n\n\n\n
php -r "copy('https:\/\/getcomposer.org\/installer', 'composer-setup.php');"\n\nphp -r "if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"\n\nphp composer-setup.php\n\nphp -r "unlink('composer-setup.php');"\n\nmv composer.phar \/usr\/local\/bin\/composer<\/code><\/pre>\n\n\n\n
VSC Code<\/h3>\n\n\n\n
code<\/code> CLI is not already installed<\/a>:<\/p>\n\n\n\n
\n
code --install-extension aaron-bond.better-comments\ncode --install-extension akamud.vscode-theme-onedark\ncode --install-extension akamud.vscode-theme-onelight\ncode --install-extension alexcvzz.vscode-sqlite\ncode --install-extension amazonwebservices.aws-toolkit-vscode\ncode --install-extension anthonydiametrix.ACF-Snippet\ncode --install-extension apollographql.vscode-apollo\ncode --install-extension be5invis.toml\ncode --install-extension bmewburn.vscode-intelephense-client\ncode --install-extension calebporzio.better-phpunit\ncode --install-extension christian-kohler.path-intellisense\ncode --install-extension dbaeumer.vscode-eslint\ncode --install-extension dsznajder.es7-react-js-snippets\ncode --install-extension eamodio.gitlens\ncode --install-extension EditorConfig.EditorConfig\ncode --install-extension esbenp.prettier-vscode\ncode --install-extension fabiospampinato.vscode-highlight\ncode --install-extension file-icons.file-icons\ncode --install-extension GitHub.copilot\ncode --install-extension GitHub.copilot-chat\ncode --install-extension GitHub.copilot-labs\ncode --install-extension GraphQL.vscode-graphql\ncode --install-extension GraphQL.vscode-graphql-execution\ncode --install-extension GraphQL.vscode-graphql-syntax\ncode --install-extension hashicorp.terraform\ncode --install-extension hbenl.vscode-mocha-test-adapter\ncode --install-extension hbenl.vscode-test-explorer\ncode --install-extension mariusschulz.yarn-lock-syntax\ncode --install-extension mgmcdermott.vscode-language-babel\ncode --install-extension mikestead.dotenv\ncode --install-extension mquandalle.graphql\ncode --install-extension ms-azuretools.vscode-docker\ncode --install-extension ms-playwright.playwright\ncode --install-extension ms-python.autopep8\ncode --install-extension ms-python.black-formatter\ncode --install-extension ms-python.isort\ncode --install-extension ms-python.pylint\ncode --install-extension ms-python.python\ncode --install-extension ms-python.vscode-pylance\ncode --install-extension ms-vscode-remote.remote-containers\ncode --install-extension ms-vscode.live-server\ncode --install-extension ms-vscode.test-adapter-converter\ncode --install-extension neilbrayfield.php-docblocker\ncode --install-extension nikitaKunevich.snippet-creator\ncode --install-extension njpwerner.autodocstring\ncode --install-extension onecentlin.laravel-blade\ncode --install-extension onecentlin.laravel5-snippets\ncode --install-extension patbenatar.advanced-new-file\ncode --install-extension persoderlind.vscode-phpcbf\ncode --install-extension Prisma.prisma\ncode --install-extension redhat.vscode-xml\ncode --install-extension rust-lang.rust-analyzer\ncode --install-extension ryannaddy.laravel-artisan\ncode --install-extension sleistner.vscode-fileutils\ncode --install-extension streetsidesoftware.code-spell-checker\ncode --install-extension styled-components.vscode-styled-components\ncode --install-extension svelte.svelte-vscode\ncode --install-extension syler.sass-indented\ncode --install-extension tauri-apps.tauri-vscode\ncode --install-extension tungvn.wordpress-snippet\ncode --install-extension wix.vscode-import-cost\ncode --install-extension wordpresstoolbox.wordpress-toolbox\ncode --install-extension xabikos.JavaScriptSnippets\ncode --install-extension xdebug.php-debug<\/code><\/pre>\n\n\n\n
Misc…<\/h2>\n\n\n\n
Setup, PHPCS and Formatting<\/h3>\n\n\n\n
\n
aws configure --profile strattic-dev<\/code> it.<\/li>\n\n\n\n
\n\n\n\nFactory Reset<\/h2>\n\n\n\n
\n
Dev Setup resources:<\/h2>\n\n\n\n
\n
Ubuntu<\/h2>\n\n\n\n
\n
\n\n\n\n