- Deauthorize your iTunes store account. (You should also deauthorize any third-party apps, such as Photoshop, that are locked to your Mac).
- Turn off FileVault (if you are using it).
- Sign out of iCloud.
- Restart the Mac in Recovery Mode (hold down
Command + R
key during restart). - Use Disk Utility to erase the hard drive. Click on
Disk Utility > Continue
. Select the Main volume and clickUnmount
thenErase
). Quit Disk Utility (Disk Utility > Quit Disk Utility
). - Click
Reinstall OS X
andContinue
. Follow the instructions to reinstall Mac OS X.
This file contains 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
import Alt from 'alt'; | |
import DispatcherRecorder from 'alt/utils/DispatcherRecorder'; | |
let alt = new Alt(); | |
let recorder = new DispatcherRecorder(alt); | |
// setup actions and store | |
function Actions() { this.generateActions('a', 'b', 'c'); } |
This file contains 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
// Extracted from a live application. Known to work with latest Chrome/Firefox | |
// and Animate.css. (IE untested) | |
export let AnimationMixin= { | |
playAnimation( animation='pulse', speed=1000) { | |
if(! this.isMounted()) { | |
log.warn( "Trying to call .playAnimation() on an unmounted component!") | |
return | |
} |
This file contains 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
import assign from "object-assign"; | |
import Flux from "flummox"; | |
import React from "react"; | |
export default React.createClass({ | |
displayName: "FluxContainer", | |
contextTypes: { | |
flux: React.PropTypes.instanceOf(Flux), | |
}, |
This file contains 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
{ | |
"ecmaFeatures": { | |
"arrowFunctions": true, | |
"binaryLiterals": false, | |
"blockBindings": true, | |
"classes": true, | |
"defaultParams": true, | |
"destructuring": true, | |
"forOf": false, | |
"generators": true, |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<title>{{ page.title }} — CollegeDegrees.com</title> | |
</head> | |
<body> | |
{{ content }} |
This file contains 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 | |
// This is the revised `web/app.php` (click the previous edit of this gist to see the original) | |
// | |
// For those of us that deploy along-side Zend Framework apps, whose convention has been to pivot configuration | |
// around APPLICATION_ENV, `web/app.php` and `web/app_dev.php` is redundant. | |
require_once __DIR__.'/../app/bootstrap.php.cache'; | |
require_once __DIR__.'/../app/AppKernel.php'; | |
//require_once __DIR__.'/../app/bootstrap_cache.php.cache'; |
This file contains 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
# We need to get an AUTH TOKEN first | |
curl -X GET -D - \ | |
-H "X-Auth-User: $USER" \ | |
-H "X-Auth-Key: $API_KEY" \ | |
https://auth.api.rackspacecloud.com/v1.0 \ | |
# HTTP/1.1 204 No Content | |
# Server: Apache/2.2.3 (Red Hat) | |
# vary: X-Auth-Token,X-Auth-Key,X-Storage-User,X-Storage-Pass | |
# X-Storage-Url: https://storage101.ord1.clouddrive.com/v1/MossoCloud-something-something |
This file contains 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
import { resolve } from 'react-resolver'; | |
import store from 'app-store'; | |
/** | |
* A wrapper to fill in the first argument with a dummy string. | |
* This helps because we usually don't set it to a prop, but | |
* to a Reducer. | |
* | |
* Also gives us the `dispatch` of the Store (yepee) | |
* |
This file contains 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
FROM node | |
RUN mkdir -p /app | |
WORKDIR /app | |
# .deps.json will only bust the cache when the package.json dependencies change | |
COPY .deps.json /app/package.json | |
RUN npm install | |
# cache will almost always bust here, but it's only copying files |
OlderNewer