I hereby claim:
- I am barkerja on github.
- I am barkerja (https://keybase.io/barkerja) on keybase.
- I have a public key whose fingerprint is EBFE 7981 266D 10BF 09DE A535 AA95 0414 EDB7 CF9A
To claim this, I am signing this object:
| FROM dockerfile/java | |
| RUN wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.tar.gz | |
| RUN tar xzf elasticsearch-1.1.0.tar.gz | |
| RUN mv elasticsearch-1.1.0 /opt/elasticsearch | |
| RUN rm elasticsearch-1.1.0.tar.gz | |
| RUN /opt/elasticsearch/bin/plugin -install mobz/elasticsearch-head | |
| RUN /opt/elasticsearch/bin/plugin -install elasticsearch/elasticsearch-cloud-aws/2.1.0 | |
| RUN /opt/elasticsearch/bin/plugin -install karmi/elasticsearch-paramedic |
I hereby claim:
To claim this, I am signing this object:
irb(main):029:0* GeoEntity.last
GeoEntity Load (0.5ms) SELECT geo_entities.* FROM geo_entities ORDER BY geo_entities.id DESC LIMIT 1
returns:
County id: 4, eid: nil, pid: nil, ename: nil, etype: 2, created_at: "2011-11-21 06:26:37", updated_at: "2011-11-21 06:26:37"
| #!/bin/env ruby | |
| # lazy hack from Robert Klemme | |
| module Memory | |
| # sizes are guessed, I was too lazy to look | |
| # them up and then they are also platform | |
| # dependent | |
| REF_SIZE = 4 # ? | |
| OBJ_OVERHEAD = 4 # ? |
| .DS_Store | |
| Gemfile.lock | |
| *.pem | |
| node.json | |
| tmp/* | |
| !tmp/.gitignore |
| # Run with: rake environment elasticsearch:reindex | |
| # Begins by creating the index using tire:import command. This will create the "official" index name, e.g. "person" each time. | |
| # Then we rename it to, e.g. "person20121001" and alias "person" to it. | |
| namespace :elasticsearch do | |
| desc "re-index elasticsearch" | |
| task :reindex => :environment do | |
| klasses = [Place, Person, Caption] |
First install the required gems:
gem install octokit awesomeprint rainbowThen run it to extract all of your open GitHub issues into files (with comments).
ruby my-gh-issues.rb| #!/bin/sh | |
| files=`git diff --cached --name-status | awk '{print $2}'` | |
| count_javascript=`grep -iR 'console\.log' $files | wc -l | awk '{print $1}'` | |
| count_ruby=`grep -R 'logger\.debug' $files | wc -l | awk '{print $1}'` | |
| if [[ "$count_javascript" -ge 1 ]]; then | |
| echo "Remove any config.log() statements left in javascript sources" | |
| echo "" |
Work with CLI: https://github.com/visionmedia/commander.js
Daemonize script: https://github.com/nodejitsu/forever
| var options, req, request; | |
| request = require('request'); | |
| options = { | |
| uri: 'https://p04-fmfmobile.icloud.com/fmipservice/friends/{account_id}/{unique_device_id}/minCallback/selFriend/refreshClient', | |
| method: 'POST', | |
| headers: { | |
| 'X-Apple-AuthScheme': 'Forever', | |
| 'Content-type': 'application/json' |