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
/** | |
2012-03-26 Forked from duncanbeevers' sc-dl.js : https://gist.github.com/2157987 | |
**/ | |
(function(document) { | |
var link = document.createElement("a"), | |
span = document.createElement("span"), | |
slug = document.querySelector("#main-content-inner img[class=waveform]").src.match(/\.com\/(.+)\_/)[1], | |
mp3 = document.querySelector("em").innerText + ".mp3"; |
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
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2012-03-13 | |
# | |
# _______________| keywords : extract keywords from text. | |
# | |
# Usage: keywords [file, -x, -] [postproduction] | |
# # clipboard^ ^stdin (default) | |
# | |
# Example: % keywords foo.txt cat | |
# # or try something like... |
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
#!/usr/bin/env bash | |
# bash 3.2.25(1) Ubuntu 7.10 Date : 2012-03-25 | |
# | |
# _______________| colline : convert column to line with optional delimiter. | |
# | |
# Usage: colline [file] [delimiter] | |
# ^space as default; string is acceptable. | |
# ^assuming each line represents one column. | |
# | |
# Dependencies: awk, sed |
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
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2012-03-23 | |
# | |
# _______________| quotel : quote lines using prefix and suffix strings. | |
# | |
# Usage: quotel [filename] [prefix string] [suffix string] | |
# # stdin and double quotes are defaults. | |
# # Use '~' to represent an empty string. | |
# | |
# Dependencies: sed |
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
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2012-03-22 | |
# | |
# _______________| argin : xargs properly handled from ANY standard input. | |
# xargs converts stdin into arguments in order | |
# to build and execute a command individually. | |
# | |
# Usage: argin [options] command [{} as placeholder if necessary] | |
# | |
# Examples: % argin -t echo {} < foo.txt 2> argin-done.txt |
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
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2012-03-20 | |
# | |
# _______________| locat : find files with glob and colored extended regex. | |
# | |
# Usage: locat [extended regex] [glob pattern] | |
# | |
# Examples: % locat pdf$ | |
# # pdf files stemmed under present working directory, | |
# # ^so seemingly recursive. |
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
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2012-04-06 | |
# | |
# _______________| linecol : convert regex delimited lines into single column. | |
# | |
# Usage: linecol [filename] [delimiter regex] | |
# | |
# Examples: % linecol foo.csv ', *' | |
# # ^use single quotes for regex. | |
# # Each item on a CSV line will be on its own line. |
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
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2012-04-10 | |
# | |
# _______________| sto : interim tmp storage with tee, pager, format, diff. | |
# There are THREE storage units. | |
# | |
# Usage: sto [ input: i, j, k output: oi, oj, ok diff: d?? | |
# append: I, J, K xclip: x, y, z shift: s | |
# format: f, g, h addclip: X, Y, Z accumulate: a | |
# copy: ci, cj, ck [new prefix] cat: c |
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
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2012-06-16 | |
# | |
# _______________| jason : pretty print json for key-value processing by line. | |
# | |
# Usage: jason [file] [ident=5] [delim='__:'] | |
# | |
# Examples: % jason foo.json 0 ': ' | |
# # ^typical json key-value separator. | |
# # ^ident of 0 for just newline. |