Apache is running on port 80 and interfering with Valet.
- Stop Apache:
sudo /usr/sbin/apachectl stop - Restart Valet:
valet restart
| javascript:(function(){try{navigator.clipboard.readText().then(function(t){if(t){var e=window.open("","_blank","width=800,height=600");e.document.open(),e.document.write(t),e.document.close()}else alert("Clipboard is empty. Please copy some text to the clipboard first.")}).catch(function(t){console.error("Failed to read clipboard contents: ",t),alert("An error occurred while trying to access the clipboard. Please ensure your browser allows clipboard access.")})}catch(t){console.error("An error occurred:",t),alert("An error occurred while trying to open the new window with the clipboard content.")}})();//bookmarklet_title: HTML Preview from Clipboard |
| # MOJAVE: https://gist.github.com/kevmt/476716bfb0383d3fda699e4fcacc6470 | |
| # install brew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # Terminal Aliases | |
| echo "alias artisan='php $PWD/artisan'" >> ~/.bash_profile | |
| echo "export NVM_DIR=~/.nvm" >> ~/.bash_profile | |
| echo "source $(brew --prefix nvm)/nvm.sh" >> ~/.bash_profile |
| # From http://stackoverflow.com/questions/21738647/change-date-of-git-tag-or-github-release-based-on-it | |
| git checkout SHA1_OF_PAST_COMMIT | |
| GIT_COMMITTER_DATE="$(git show --format=%aD | head -1)" git tag -a v0.9.33 -m"Retroactively tagging version 0.9.33" |
Installation procedure for pre-build actions to automatically populate Xcode Info.plist with dynamic data.
Edit Xcode Scheme and add a pre-action script.
Copy the contents of preaction.sh into the pre-action script box.
| <?php | |
| namespace App\Traits; | |
| use Rhumsaa\Uuid\Uuid; | |
| use Illuminate\Database\Eloquent\ModelNotFoundException; | |
| /** | |
| * Trait UuidModel | |
| * @package App\Traits |
| osascript -e 'tell application "iOS Simulator" to quit' | |
| osascript -e 'tell application "Simulator" to quit' | |
| xcrun simctl erase all |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |