zsh -c "$(curl -sL https://gist.githubusercontent.com/speto/84263183e9d8d17343afcad217269ea7/raw/touch_id_sudo.sh)"
- Basic activation script https://birkhoff.me/Persistent-sudo-Touch-ID-Authentication-on-macOS/
zsh -c "$(curl -sL https://gist.githubusercontent.com/speto/89c741391b5283e3071938f4d4d61553/raw/whoami.sh)"
or
zsh <(curl -sL https://gist.githubusercontent.com/speto/89c741391b5283e3071938f4d4d61553/raw/whoami.sh)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class IsTrue | |
{ | |
public function __invoke() | |
{ | |
return true; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install Quake 3: Arena on a mac | |
# Copyright (c) 2016 simonewebdesign | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MAIN=master | |
BRANCHES=$(git branch --merged $MAIN | grep -v -e 'master\|staging\|develop\|\*') | |
echo Branches merged into $MAIN: | |
echo $BRANCHES | tr " " "\n" | |
read -p "Delete these branches (y/n)? " answer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Stopwatch; | |
(function (console) { | |
function createWatches() { | |
var watches = {}; | |
function start(label) { | |
label = label || ""; | |
watches[label] = new Date().getTime(); |
If you only want to update one Application icon, ie, in App.app/Contents/Resources/App.icns
just touch the App.app folder. (I've read you need to do the Info.plist as well sometimes, although I've never needed to.)
Close the finder windows and:
touch /Applications/App.app
touch /Applications/App.app/Contents/Info.plist
You can refresh the dock icon cache using the commands above, also do a killall Dock
to restart it. Personally I would just drag the application in question, off the dock and re-start / keep in dock, because this is generally a one off thing. As always, script it if possible / and you're doing it a lot.
source: https://gist.github.com/fabiofl/5873100#gistcomment-1320553
NewerOlder