- Restart with cmd-R or cmd-D
- Erase drive / 3x if second-hand
- Reinstall MacOS
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
/* | |
* Bookmarklets are a bit of a lost art these days, | |
* most people don't even know they exist anymore. | |
* They are lighter than any "extension", and can | |
* still perform really complex actions. Writing | |
* them is also a good way to flex your DOM/JS skills. | |
*/ | |
// opens current URL on the Way Back Machine. It works on most cases. | |
javascript:(function(){if(document.URL === "data:text/html,chromewebdata" || document.URL === "chrome-error://chromewebdata/"){location.href='http://web.archive.org/web/*/'+loadTimeData.data_.summary.failedUrl;}else{location.href='http://web.archive.org/web/*/'+document.URL;}}()) |
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
# ~/.zshrc | |
# Find and set branch name var if in git repository. | |
function git_branch_name() | |
{ | |
branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}') | |
if [[ $branch == "" ]]; | |
then | |
: | |
else |
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
/*!spcontext*/ | |
(function (window, undefined) { | |
"use strict"; | |
//var $ = window.jQuery; | |
var document = window.document; | |
// SPHostUrl parameter name | |
var SPHostUrlKey = "SPHostUrl"; |