Put flip somewhere in your $PATH and chmod a+x it.
Copy fuck into ~/.bashrc.
| <?php | |
| function it($m,$p){echo ($p?'✔︎':'✘')." It $m\n"; if(!$p){$GLOBALS['f']=1;}}function done(){if(@$GLOBALS['f'])die(1);} |
| #!/bin/bash | |
| # installs plenv, perl, carton, cpanminus, sets up environment in .bash_profile | |
| # from https://github.com/tokuhirom/plenv#readme | |
| PLENV_PERL_VERSION='5.18.1' | |
| if [[ -n "$PERL_MB_OPT" ]]; then | |
| echo "You must unset your local::lib environment variables first" |
Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
| [user] | |
| # Credentials. | |
| name = Foo Bar | |
| email = foo@bar.com | |
| drupal = $(whoami) | |
| [credential] | |
| # Save passwords in ~/.git-credentials. | |
| helper = store |
| <?php | |
| /** | |
| * @link http://stackoverflow.com/questions/13865149/speeding-up-xml-schema-validations-of-a-batch-of-xml-files-against-the-same-xml | |
| */ | |
| $mapping = [ | |
| 'http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd' => 'schema/xhtml1-transitional.xsd', | |
| 'http://www.w3.org/2001/xml.xsd' => 'schema/xml.xsd', | |
| ]; |
| brew update | |
| brew versions FORMULA | |
| cd `brew --prefix` | |
| git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
| brew install FORMULA | |
| brew switch FORMULA VERSION | |
| git checkout -- Library/Formula/FORMULA.rb # reset formula | |
| ## Example: Using Subversion 1.6.17 | |
| # |
| # [Tue Feb 14 10:37:36 2012] Protocol: http, Server: 192.168.5.10:9200 | |
| curl -XPUT 'http://127.0.0.1:9200/foo/?pretty=1' -d ' | |
| { | |
| "settings" : { | |
| "analysis" : { | |
| "analyzer" : { | |
| "lc" : { | |
| "filter" : [ | |
| "lowercase" | |
| ], |