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
sudo find /var/folders/ -name com.apple.QuickLook.thumbnailcache -type d | |
# Enter your password and hit enter (it will not display your password). | |
cd COPY-AND-PAST-THE-ABOVE-OUTPUT-HERE | |
cd ../ | |
sudo mv com.apple.QuickLook.thumbnailcache com.apple.QuickLook.thumbnailcache-BACK | |
# Restart your computer. | |
### If anything goes wrong run the following: | |
sudo find /var/folders/ -name com.apple.QuickLook.thumbnailcache-BACK -type d |
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> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body ng-app="app"> | |
<div ng-controller="Ctrl1"></div> | |
<div ng-controller="Ctrl2"></div> |
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> | |
<script src="https://code.jquery.com/jquery.min.js"></script> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> |
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
(function(window, document) { | |
'use strict'; | |
/* global getEventListeners */ | |
window.listenerCount = 0; | |
var ael = Node.prototype.addEventListener; | |
Node.prototype.addEventListener = function() { | |
window.listenerCount++; | |
window.console.log('add', arguments); |
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
function trueTypeOf (obj) { | |
return {}.toString.call(obj).split(' ')[1].slice(0, -1).toLowerCase(); | |
} | |
console.log(trueTypeOf()); //undefined | |
console.log(trueTypeOf(null)); //null | |
console.log(trueTypeOf(NaN)); //number | |
console.log(trueTypeOf(5)); //number | |
console.log(trueTypeOf({})); //object | |
console.log(trueTypeOf([])); //array |
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
sudo fdesetup authrestart | |
# It will ask for: | |
# 1. the sudo password | |
# 2. the drive password or recovery key | |
# -delayminutes <minutes> Number of minutes before restart. | |
# -1 to set the key but allow something like a software update the restart the computer. | |
sudo fdesetup authrestart -delayminutes -1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Trianglify Background Generator</title> | |
<style> | |
html, body { | |
margin: 0; | |
padding: 0; | |
} |
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
#!/bin/bash | |
get_title () { | |
attr='title' | |
fileloc=`unzip -l "$1" | ggrep -Po '\b[^\s-]*\.opf\b'` | |
metafound=`zipgrep '<dc:'$attr'(.+)>(.+)</dc:'$attr'>' "$1" $fileloc` | |
echo `expr "$metafound" : '.*<dc:'$attr'.*>\(.*\)</dc:'$attr'>.*'` | |
} | |
for file in $(find . -type f -depth 1 -name "*.epub"); do |
OlderNewer