 {"id":587,"date":"2021-08-10T12:09:13","date_gmt":"2021-08-10T19:09:13","guid":{"rendered":"https:\/\/www.mavice.com\/blog\/?p=587"},"modified":"2021-11-30T09:30:50","modified_gmt":"2021-11-30T17:30:50","slug":"starting-up","status":"publish","type":"post","link":"https:\/\/www.mavice.com\/blog\/starting-up\/","title":{"rendered":"Starting Up"},"content":{"rendered":"\n<p>I recently ran into a bug with my MacBook Pro that caused it to crash every single night. The problem this poses is that I have to start up a number of applications, and open a few terminal windows and issue various commands before I can even start working. While it may not seem like a huge issue, doing it day after day after day was driving me nuts.<br><br>This post details a simple solution I set up to alleviate this pain point (Mac only). Now I use this approach by default because whenever I need to restart \u2013 all of the busywork is done.<\/p>\n\n\n\n<p>I&#8217;m going to use 3 applications, and set up a single &#8216;keyword&#8217; that will light the fire that gets everything up and running in one fell swoop.<\/p>\n\n\n\n<p>The following video walks through the pattern &#8211; and important links\/notes are listed below.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Starting Up!\" width=\"640\" height=\"480\" src=\"https:\/\/www.youtube.com\/embed\/RFz7tQxO8_k?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><figcaption>Starting Up<\/figcaption><\/figure>\n\n\n\n<h3 class=\"has-large-font-size\"><br>TOOLS:<\/h3>\n\n\n\n<ul><li><strong>Alfred<\/strong> &#8211; <a rel=\"noreferrer noopener\" href=\"https:\/\/www.alfredapp.com\/\" target=\"_blank\">https:\/\/www.alfredapp.com\/<\/a><\/li><li><strong>Tmux<\/strong> &#8211; <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/tmux\" target=\"_blank\">https:\/\/github.com\/tmux<\/a><\/li><li><strong>Tmuxinator<\/strong> &#8211; <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/tmuxinator\" target=\"_blank\">https:\/\/github.com\/tmuxinator<\/a><\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<pre title=\"sample tmuxinator config file:\" class=\"wp-block-code\"><code lang=\"yaml\" class=\"language-yaml\"> #.\/.tmuxinator.yml\n name: yourtmuxname\n root: ~\/\n tmux_options: -f ~\/.tmux.mac.conf\n windows:\n     - main:\n         layout: main-vertical\n         panes:\n             - pane1:\n                 - cd \/Users\/you\/Documents\/whatever\/server\/logs\n                 - tail -f -n 1000 error.log\n             - pane2:\n                 - cd \/Users\/you\/IdeaProjects\/localTool\n                 - python -m SimpleHTTPServer 8000\n             - pane3:\n                 - cd \/Users\/you\/Documents\/aem-servers\/server\/crx-quickstart\/bin\n                 - DEBUG=true .\/start\n     - chrome: \/Applications\/Google\\ Chrome.app\/Contents\/MacOS\/Google\\ Chrome --ignore-certificate-errors --disable-web-security --disable-site-isolation-trials --ignore-urlfetcher-cert-requests &amp;&gt; \/dev\/null<\/code><\/pre>\n\n\n\n<pre title=\"sample tmux conf file\" class=\"wp-block-code\"><code lang=\"vim\" class=\"language-vim\">#### COLOUR (Solarized 256)\n# default statusbar colors\nset-option -g status-style fg=colour136,bg=colour235 #yellow and base02\n \n# default window title colors\nset-window-option -g window-status-style fg=colour244,bg=default #base0 and default\n \n# active window title colors\nset-window-option -g window-status-current-style fg=colour166,bg=default #orange and default\n \n# pane border\nset-option -g pane-border-style fg=colour235 #base02\nset-option -g pane-active-border-style fg=colour240 #base01\n\n# message text\nset-option -g message-style fg=colour166,bg=colour235 #orange and base02\n\n# pane number display\nset-option -g display-panes-active-colour colour33 #blue\nset-option -g display-panes-colour colour166 #orange\n\n# clock\nset-window-option -g clock-mode-colour colour64 #green\n\n# bell\nset-window-option -g window-status-bell-style fg=colour235,bg=colour160 #base02, red<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I recently ran into a bug with my MacBook Pro that caused it to crash every single night. The problem this poses is that I have to start up a number of applications, and open a few terminal windows and issue various commands before I can even start working. While&#8230;<\/p>\n","protected":false},"author":5,"featured_media":622,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[39],"tags":[],"_links":{"self":[{"href":"https:\/\/www.mavice.com\/blog\/wp-json\/wp\/v2\/posts\/587"}],"collection":[{"href":"https:\/\/www.mavice.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mavice.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mavice.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mavice.com\/blog\/wp-json\/wp\/v2\/comments?post=587"}],"version-history":[{"count":27,"href":"https:\/\/www.mavice.com\/blog\/wp-json\/wp\/v2\/posts\/587\/revisions"}],"predecessor-version":[{"id":624,"href":"https:\/\/www.mavice.com\/blog\/wp-json\/wp\/v2\/posts\/587\/revisions\/624"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mavice.com\/blog\/wp-json\/wp\/v2\/media\/622"}],"wp:attachment":[{"href":"https:\/\/www.mavice.com\/blog\/wp-json\/wp\/v2\/media?parent=587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mavice.com\/blog\/wp-json\/wp\/v2\/categories?post=587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mavice.com\/blog\/wp-json\/wp\/v2\/tags?post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}