{"id":1149,"date":"2014-10-07T00:40:29","date_gmt":"2014-10-07T04:40:29","guid":{"rendered":"http:\/\/www.pressleypress.com\/blog\/?p=1149"},"modified":"2014-10-07T00:40:29","modified_gmt":"2014-10-07T04:40:29","slug":"stop-your-macbook-from-sleeping-when-lid-closed-cli","status":"publish","type":"post","link":"https:\/\/www.pressleypress.com\/blog\/?p=1149","title":{"rendered":"Stop your Macbook from sleeping when lid closed (CLI)"},"content":{"rendered":"<p>The\u00a0<code>caffeinate<\/code>\u00a0command is used to prevent a Mac from going to sleep. The simplest way to use this command is to run the following command in the terminal.<\/p>\n<p><a href=\"http:\/\/computers.tutsplus.com\/tutorials\/quick-tip-how-to-stop-your-mac-from-sleeping-using-the-command-line--mac-50905\">Full Article<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The\u00a0caffeinate\u00a0command is used to prevent a Mac from going to sleep. The simplest way to use this command is to run the following command in the terminal. Full Article<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3],"tags":[],"class_list":["post-1149","post","type-post","status-publish","format-standard","hentry","category-computers"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p32FB4-ix","jetpack-related-posts":[{"id":1720,"url":"https:\/\/www.pressleypress.com\/blog\/?p=1720","url_meta":{"origin":1149,"position":0},"title":"Enable Administrator Login in Windows 11","author":"Matt","date":"February 19, 2025","format":false,"excerpt":"Did you accidentally lock your administrator login by attempting the wrong password too many times? Do you need to re-enable the account, and reset the password? Try the following : Hold SHIFT and click the power icon on the lock screen. Continue holding SHIFT and click on \"Restart\". This will\u2026","rel":"","context":"In &quot;Computers&quot;","block_context":{"text":"Computers","link":"https:\/\/www.pressleypress.com\/blog\/?cat=3"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1105,"url":"https:\/\/www.pressleypress.com\/blog\/?p=1105","url_meta":{"origin":1149,"position":1},"title":"XCode Command Line Tools","author":"Matt","date":"April 10, 2014","format":false,"excerpt":"Need to install the XCode Command Line Tools? This is how you do it... $ xcode-select --install Then, follow the screen prompts. I came across this need when attempting to compile pyOpenSSL. It needed FFI.h can I couldn't get that without installing the command line tools.","rel":"","context":"In &quot;Computers&quot;","block_context":{"text":"Computers","link":"https:\/\/www.pressleypress.com\/blog\/?cat=3"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1333,"url":"https:\/\/www.pressleypress.com\/blog\/?p=1333","url_meta":{"origin":1149,"position":2},"title":"Linking a Local Folder with Microsoft&#8217;s One Drive","author":"Matt","date":"October 21, 2018","format":false,"excerpt":"You may want to sync a folder on your computer with OneDrive that isn't one of the Windows standard C: drive folders like \"Documents\", \"Pictures\" etc. If that's the case, here's the command line for you to use to link any folder with OneDrive. mklink \/j \"<path to configured OneDrive\u2026","rel":"","context":"In &quot;Computers&quot;","block_context":{"text":"Computers","link":"https:\/\/www.pressleypress.com\/blog\/?cat=3"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":419,"url":"https:\/\/www.pressleypress.com\/blog\/?p=419","url_meta":{"origin":1149,"position":3},"title":"Merging 2 HFS Partitions using DiskUtil","author":"Matt","date":"August 31, 2009","format":false,"excerpt":"As a Mac user, you're probably aware of Mac OS X's \"Disk Utility\" program for mounting volumes, repairing permissions, creating disk images, etc. However, the command line version of the tool, \"diskutil\" is also very handy and has functions that aren't available in the GUI application. Let's say you have\u2026","rel":"","context":"In &quot;Computers&quot;","block_context":{"text":"Computers","link":"https:\/\/www.pressleypress.com\/blog\/?cat=3"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":785,"url":"https:\/\/www.pressleypress.com\/blog\/?p=785","url_meta":{"origin":1149,"position":4},"title":"Reset SA Password Using sqlcmd","author":"Matt","date":"June 22, 2012","format":false,"excerpt":"Resetting the SA password If you need access to the database, you can reset the SA password using the following commands from a command prompt (cmd): sqlcmd \u2013S SQLSERVER\\INSTANCE Once in the interface for sqlcmd, which is represented by a 1>, type the following on separate lines: sp_password @new =\u2026","rel":"","context":"In &quot;Computers&quot;","block_context":{"text":"Computers","link":"https:\/\/www.pressleypress.com\/blog\/?cat=3"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":745,"url":"https:\/\/www.pressleypress.com\/blog\/?p=745","url_meta":{"origin":1149,"position":5},"title":"Configuring IIS 7 for hosting WCF Web services (.SVC)","author":"Matt","date":"February 28, 2012","format":false,"excerpt":"Run the following command... %windir%\\Microsoft.NET\\Framework\\v3.0\\WindowsCommunication Foundation\\ServiceModelReg.exe \u2013i ...to add all the IIS configuration for WCF services. Use the Framework64 folder if you are using a 64-bit OS.","rel":"","context":"In &quot;Computers&quot;","block_context":{"text":"Computers","link":"https:\/\/www.pressleypress.com\/blog\/?cat=3"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1149"}],"version-history":[{"count":1,"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1149\/revisions"}],"predecessor-version":[{"id":1150,"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1149\/revisions\/1150"}],"wp:attachment":[{"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pressleypress.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}