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
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-01-16 | |
# | |
# _______________| uniqnosort : get unique lines WITHOUT sorting. | |
# | |
# Usage: uniqnosort [file, or use as pipe] | |
# | |
# NB: More famous "uniq" requires duplicates on adjacent lines. | |
# If you really want to sort and get uniques, | |
# try "sort -u" rather than "sort | uniq". |
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
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-12-10 | |
# | |
# _______________| flippar : reverse order of paragraph blocks | |
# (delimited by two or more newlines; | |
# last block is exempt from this rule). | |
# | |
# Usage: flippar [filename (pipe acceptable)] | |
# | |
# Dependencies: tac (from package 'coreutils' in main) |
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
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-12-14 | |
# | |
# _______________| prepend : insert text above given line number or pattern. | |
# | |
# Usage: prepend ["text"] [filename=stdin] [linenum=1 OR pattern] | |
# | |
# Example: prepend "TEST1\nTEST2" foo 3 | |
# # insert two test lines above the third line in file foo. | |
# sort foo | prepend "Sorted result:" |
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
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2012-02-04 | |
# | |
# _______________| lstest : list files by type, optionally show further info. | |
# | |
# Usage: lstest [test flag] [-0|-1|-A|-i|-I|-a] [--count] | |
# | |
# ^attributes | |
# ^terse "stat" | |
# ^info via "stat" |
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
/** | |
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 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 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 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 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 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 |
OlderNewer