Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am aterreno on github.
* I am aterreno (https://keybase.io/aterreno) on keybase.
* I have a public key ASDyN280WSSo-gmnCpFj-LyLFpCn7KjU9-sdbdV6p0CqmQo
To claim this, I am signing this object:
@aterreno
aterreno / sample.png
Created January 30, 2018 09:47 — forked from jirutka/sample.png
Nested numbered list with correct indentation in CSS. Live example at http://jsfiddle.net/a84enL8k/.
sample.png
@aterreno
aterreno / .gitignore
Last active January 15, 2018 10:57
Sort of default .gitignore for clojure development with emacs, mac os, lein and random hacking with vi from time to time, why not
.DS_Store
*~
\#*\#
.\#*
*.swp
@aterreno
aterreno / migrate-elastic-search-indexes.sh
Created November 4, 2013 16:21
Script to migrate elastic search index mappings between one host and another one
#!/bin/bash
SOURCE_URI='http://10.251.76.43:9200'
DEST_URI='http://localhost:9200'
declare -a indexes=(gallery linklist module pageversion poll standardmodule styles video)
echo "Getting mappings from: $SOURCE_URI"
for index in ${indexes[@]}
@aterreno
aterreno / gist:944121
Created April 27, 2011 11:51
sqoop from mysql to hbase
sudo sqoop import --connect jdbc:mysql://mysql_server/mysql_table --table mysql_table_name --hbase-table hbase_table_name --hbase-row-key mysql_column --column-family metadata --hbase-create-table --username root -P

Keybase proof

I hereby claim:

  • I am aterreno on github.
  • I am aterreno (https://keybase.io/aterreno) on keybase.
  • I have a public key whose fingerprint is 59CE B85F C30B 119D 46A2 11B3 1552 E3D8 9B1A A46C

To claim this, I am signing this object:

@aterreno
aterreno / Architecture Archeology - Java Edition
Created August 22, 2016 10:19
Useful linux command line for finding code smells and various issues
find . -name '*.java' -exec grep "@Ignore" {} \; -print | wc -l
@aterreno
aterreno / amq2.text
Created October 30, 2013 09:30
amq instance 2 exceptions
2013-10-30 09:18:11,259 | INFO | Not enough cluster members connected to elect a master. | org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread
2013-10-30 09:18:22,219 | INFO | Not enough cluster members have reported their update positions yet. | org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread
2013-10-30 09:18:22,254 | INFO | Promoted to master | org.apache.activemq.leveldb.replicated.MasterElector | main-EventThread
2013-10-30 09:18:22,404 | WARN | listeners are taking too long to process the events | org.apache.activemq.leveldb.replicated.groups.ChangeListenerSupport | main-EventThread
2013-10-30 09:18:22,405 | WARN | listeners are taking too long to process the events | org.apache.activemq.leveldb.replicated.groups.ChangeListenerSupport | main-EventThread
2013-10-30 09:18:22,437 | INFO | Using the pure java LevelDB implementation. | org.apache.activemq.leveldb.LevelDBClient | ActiveMQ BrokerService[localhost] Task-1
2013-10-30 09:18:22,804 | INFO | Master
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0