Now create a folder to place your Minecraft backups in. Navigate to the Application Support/minecraft folderģ. First on the desktop select “Go”, “Go to Folder” from the top menu barĢ. Using the Command Line to make the Backupġ. So I made a simpe script that can be run just by double clicking an executable shell script. I finally got tired of navigating to the Minecraft folder in the User/Library/Application Support folder. My son is supper big into Minecraft, and it always comes up whenever there is a new update … How do I backup my Minecraft folder? This entry was posted in Mac Admin, Mavericks, Terminal and tagged bash, command line, mac, mac admin, mac enterprise, Mac OS X, Managing Macs, Mavericks, pmset, Shell Script on Novemby Nic. Pmset -c displaysleep 30 sleep 0 disksleep 0 womp 1 autorestart 1 #!/bin/sh #version 1.0 #checks the curret status of "Computer Sleep", if it's not set to 0(never sleep), then it runs the pmset command # sets display sleep to 30 minutes # sets computer sleep = never # sets hard drive sleep - never # sets wake for network access = true # sets autorestart after power failure = true if ] then echo "Changing Power Settings" If it’s set to anything other then “Never” go to sleep, it runs my pmset command and sets the machine to my desired settings. I also wrote a simple script that checks the current status of “Computer Sleep”. Instead of using puppet or profiles to check and set the OS X energy settings. Check OSX Mavericks Powersettings With Shell Script This entry was posted in Mac Admin, Terminal and tagged bash, Homebrew, OS X, Shell Script, Terminal, Yosemite Terminal on Maby Nic. So out of the gates you have a custom terminal. Now that you can script it, you can add it to a post deployment script or launchagent that runs on the first login. #!/bin/bash #set Terminal defaults sudo -u $USER defaults write /Users/ $USER/Library/Preferences/ "Default Window Settings" "Homebrew" sudo -u $USER defaults write /Users/ $USER/Library/Preferences/ "Startup Window Settings" "Homebrew" #set window width to 120 sudo /usr/libexec/PlistBuddy -c "Add :Window\ Settings:Homebrew:columnCount integer 120" /Users/ $USER/Library/Preferences/ defaults write /Users/ $USER/Library/Preferences/ "NSWindow Frame TTWindow Homebrew" " 366 0 0 1280 777 " #restart Terminal killall Terminal exit 0 You can simply change “Homebrew” to whatever terminal theme you want. I always find myself changing it to Homebew. ![]() I think why aren’t I scripting this? I hate the default white terminal theme that comes in OS X. Scripting The Default Terminal Theme In OS XĪnytime I find myself doing a repetitive mundane task. This entry was posted in Uncategorized and tagged bash, bluetooth, Geektool, ioreg, macOS, Magic Keyboard, Magice Mouse, Terminal on Februby Nic. MousePercent=$(ioreg -r -l -k "BatteryPercent" \ | grep -A 9 "Magic Keyboard with Touch ID" \ KeyboardPercent=$(ioreg -r -l -k "BatteryPercent" \ The first step is to install GeekTool by double-clicking at the GeekTool.prefPane icon.# Bluetooth Keyboard. But for those who have doubts on using Release Candidate version, version 2.1.2 - with different UI - is still available to be downloaded.) (Please note that I'm using the 3.0 RC5 version. With a little creativity I could get the best of both world cool functionality and stylish looks. While tinkering with it, I found out that GeekTool has adjustable elements to tweak the look. This time the function beat the form, I was ready to live with the unpleasant look as long as the purpose was served. Then one day, when I was in need of a tool to quickly display several system information, the GeekTool name popped out again. So I left this app behind and went on with my life. ![]() The way it would display system information was actually made my desktop looked uglier. ![]() ![]() While it did improve the desktop in the functionality department, it failed miserably in the looks department.
0 Comments
Leave a Reply. |