cat ... | sort-by your command ...
$ cat toto.jsons
{"a": 1, "b": 2}
#! /bin/bash | |
# meq = multi-line eq | |
# See https://github.com/jonase/eq#eq-edn-query | |
EQ=eq | |
while read line; do echo "$line" | $EQ $@ ; done |
#!/bin/bash | |
# what real Python executable to use | |
PYVER=2.7 | |
PATHTOPYTHON=/usr/local/bin/ | |
PYTHON=${PATHTOPYTHON}python${PYVER} | |
# find the root of the virtualenv, it should be the parent of the dir this script is in | |
ENV=`$PYTHON -c "import os; print os.path.abspath(os.path.join(os.path.dirname(\"$0\"), '..'))"` |
Install Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Download Java 6 on this page and install it
Install Gephi:
brew cask install gephi
package main | |
import "fmt" | |
func main() { | |
p := rune(96) | |
s := `package main | |
import "fmt" |
\ls -1 /usr/local/Cellar/*/*/share/doc | grep doc: | cut -d: -f1 | xargs rm -rf; brew prune |
#! /usr/bin/env bash | |
# | |
# Usage: | |
# curl -sL http://bit.ly/pixeldungeon2app-sh | bash -e | |
# | |
echo "Creating a temporary directory..." | |
mkdir -p pd_tmp | |
cd pd_tmp | |
echo "Downloading a JDK build..." | |
curl -L# -o jdk.zip https://bitbucket.org/alexkasko/openjdk-unofficial-builds/downloads/openjdk-1.7.0-u60-unofficial-macosx-x86_64-image.zip |
echo "==> retrieving the source" | |
wget http://rogue.rogueforge.net/files/rogue5.4/rogue5.4.4-src.tar.gz | |
echo "==> unpacking" | |
tar xzf rogue5.4.4-src.tar.gz && cd rogue5.4.4 | |
echo "==> configuring" | |
./configure --disable-debug --disable-dependency-tracking | |
echo "==> patching" |
# Configuration file for ipython. | |
import re | |
import os.path | |
c = get_config() | |
with open(os.path.expanduser('~/.bashrc')) as bashrc: | |
aliases = [] | |
for line in bashrc: |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2013 Baptiste Fontaine <bfontaine.net> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |