Tag Info

New answers tagged

1

sudo systemsetup -setremotelogin on sudo systemsetup -setremotelogin off


1

Comment out the four lines that reference Heroku by adding the pound/hash sign in front of each one, like so: # fancy_echo "Installing Heroku CLI client ..." # brew_install_or_upgrade 'heroku-toolbelt' # fancy_echo "Installing the heroku-config plugin to pull config variables locally to be used as ENV variables ..." # heroku plugins:install ...


0

I also had an alias messing up with -f, call cp directly from /bin and all is fine, having an alias that prevents accidental overwrites/removals by default is pretty good, so best not remove it. .# alias alias cp='cp -i' like already stated, the -i flag superceedes -f, which wouldn't allow below command to perform as intended. .# /bin/cp -fauv ...


2

You can use iHook to run login/logout hooks, which I've found to still work for non-interactive login and logout hooks written in Bash and Python on Yosemite. http://rsug.itd.umich.edu/software/ihook/


0

output=$(hdiutil verify "$f") echo "$output"


2

It seems that Apple isn't interested in a logout hook replacement, as they closed my issue inquiring about one. However, one of the improvements in Yosemite is that launchd now properly sends signals down to shell scripts. What this means is that you can now do a log-out task like so: Here's an example logout.sh: #!/bin/sh onLogout() { echo 'Logging ...


0

I'm an idiot! Just having the "LoginwindowText" key set to a string value is all you need! My "problem" was two-fold: The GUI won't display the checkbox as "checked" until you log out and back in. I had a typo in the key name in some of my notes that I was copy-pasting from. Hope this helps somebody else... I spent some serious time banging my head ...


1

That's not possible as far as I know. There aren't any real “hooks” into Time Machine. However, you can do something nearly as good: you can disable the automatic backups that Time Machine does and run it manually instead: #!/bin/sh run_your_command_here run_another_command_here and_so_on tmutil startbackup --block --auto exit 0 Note this bit from ...


0

If others who get here from search engines don't care about using a logout hook, run for example: sudo defaults write com.apple.loginwindow LogoutHook '~/.logouthook';echo $'#!/usr/bin/env bash\n\nsay a'>~/.logouthook;chmod +x ~/.logouthook Then ~/.logouthook is ran the next time you log out. The value of the LogoutHook key has to be a path to an ...


1

The path has changed for Xcode 6.0 (OS X Yosemite) and now it's: alias simulator='open /Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app'


2

I use this AppleScript: tell application (path to frontmost application as text) set f to POSIX file (path of document 1) as text close document 1 end tell tell application "Finder" to move f to trash A hackier version that works with a few more applications: try tell document 1 of application (path to frontmost application as text) ...


0

Try this AppleScript in an Automator service (you can assign a hotkey to any service): on run set x to path to frontmost application as string tell application x to if exists document 1 then try try set p to path of front document -- some app use --> path of document p on error ...



Top 50 recent answers are included