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 | |
# | |
# Converts images & PDF files to text. | |
# See http://ericheikes.com/converting-books-to-mp3-audio-text-to-speech | |
# | |
# Concatenate all the files. | |
cat "$@" > out.txt | |
# Combine words that are broken (with hyphens) across lines. |
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 | |
# | |
# Converts images & PDF files to text. | |
# See http://ericheikes.com/converting-books-to-mp3-audio-text-to-speech | |
# | |
for file in "$@" | |
do | |
extension="${file##*.}" | |
basename=`basename "$file" .$extension` |
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(){ | |
var artist = document.querySelector('.artist-links').textContent; | |
var album = document.querySelector('.single-album-tombstone__review-title').textContent; | |
var searchString = artist + ' ' + album; | |
var encoded = encodeURIComponent(searchString.replace(/\bep\b/gi, '')).replace(/ /g, '+'); | |
var url = 'http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Ddigital-music&field-keywords=' + encoded; | |
window.open(url, 'mp3search'); | |
})(); |
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/sh | |
# npm config set progress false -g | |
npm install -g \ | |
@captainsafia/legit \ | |
binci \ | |
commitizen \ | |
cz-conventional-changelog \ | |
depcheck \ | |
dockly \ | |
fkill-cli \ |
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
# Remove the -v option. | |
alias gc='git commit' | |
alias gca='git commit -a' | |
# Create a 'gd' alias. | |
alias gd="clear; git diff" | |
compdef _git gd=git-diff | |
# Create other pull/push aliases. | |
alias gpull='git fetch origin && git rebase -r origin/`git symbolic-ref --short HEAD 2>/dev/null` "$@" || echo "💣\n💣\n💣\n💣\tCOULD NOT REBASE!\n💣\n💣\n💣"; 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
plugins=(extract git git-eheikes git-extras frontend-search node npm screen) | |
umask 002 | |
alias tracert=traceroute | |
alias wdiff="dwdiff -c" | |
alias ssh=autossh | |
alias translate=termit | |
alias stash="git stash" | |
alias hubb="hub browse" | |
alias weather="curl http://wttr.in/Des%20Moines" |
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
(setq default-tab-width 4) | |
(setq column-number-mode t) | |
(recentf-mode 1) ; File->Recent files | |
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1)) ; turn off toolbar | |
(setq browse-url-browser-function 'browse-url-generic | |
browse-url-generic-program "google-chrome") | |
(setq backup-inhibited t) | |
(setq auto-save-default nil) | |
;; Org mode settings |
This file has been truncated, but you can view the full file.
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
20010 verbose fetch to= /jenkins/tmp/npm-1828-OZKAuTho/1404456112127-0.6931601180694997/tmp.tgz | |
20011 http GET https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz | |
20012 http GET https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.25-1.tgz | |
20013 silly lockFile 19ea773f-s-minimatch-node-modules-sigmund tar:///jenkins/workspace/banno-sentry/node_modules/grunt-contrib-htmlmin/node_modules/html-minifier/node_modules/cli/node_modules/glob/node_modules/minimatch/node_modules/sigmund | |
20014 silly lockFile 19ea773f-s-minimatch-node-modules-sigmund tar:///jenkins/workspace/banno-sentry/node_modules/grunt-contrib-htmlmin/node_modules/html-minifier/node_modules/cli/node_modules/glob/node_modules/minimatch/node_modules/sigmund | |
20015 silly lockFile 0c6c0193-ns-npm-sigmund-1-0-0-package-tgz tar:///jenkins/.npm/sigmund/1.0.0/package.tgz | |
20016 silly lockFile 0c6c0193-ns-npm-sigmund-1-0-0-package-tgz tar:///jenkins/.npm/sigmund/1.0.0/package.tgz | |
20017 info preinstall sigmund@1.0.0 | |
20018 verbose readDependencies u |
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(){ | |
var hd = document.querySelector('.main-header'); | |
var movies = [].slice.call(document.querySelectorAll('.slider-item')); | |
var len = movies.length; | |
var i = Math.floor(Math.random() * len) + 1; | |
var movie = movies[i-1]; | |
movies.forEach(function(movie) { movie.style.border = 'none'; }); | |
movie.style.border = '2px solid red'; | |
console.log(movie.querySelector('[aria-label]').getAttribute('aria-label')); | |
window.scrollBy(0, movie.getBoundingClientRect().top - hd.offsetHeight - 10); |
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
module.exports = function(grunt) { | |
// The helper function to access the filesSrc of the specified task | |
function filesSrc(configName) { | |
var config = grunt.config(configName); | |
var tasks = grunt.task.normalizeMultiTaskFiles(config); | |
return grunt.util._(tasks).chain().pluck('src').flatten().uniq().value(); | |
} | |
// Example config |