I hereby claim:
- I am rrrodrigo on github.
- I am rrrodrigo (https://keybase.io/rrrodrigo) on keybase.
- I have a public key ASC-pp3I0s-r5lUZj2H2fu1oeKxyLgqjHnsYldW5pefjoAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class ElasticsearchAT23 < Formula | |
desc "Distributed search & analytics engine" | |
homepage "https://www.elastic.co/products/elasticsearch" | |
url "https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.3.0/elasticsearch-2.3.0.tar.gz" | |
sha256 "d68482c7633f2986263bc5f11f93b8a58c54c6cf5e337b615446d0a7c6fdcd8b" | |
head do | |
url "https://github.com/elasticsearch/elasticsearch.git" | |
depends_on :java => "1.8" | |
depends_on "gradle" => :build |
# to make sure a file is a DCM use identify | |
identify 00000031 | |
00000031 DCM 512x512 512x512+0+0 8-bit sRGB 527KB 0.000u 0:00.000 | |
# then set permissions and rename accordingly | |
chmod 600 * ; rename 's/(.*)/$1.dcm/' * | |
# then perform the conversion |
my_call = ARGV[1] | |
adif_file = File.open(ARGV[0], "r").read | |
csv_file = File.open(ARGV[0]+".csv", "a+") | |
body = adif_file.split("<eoh>")[1] | |
reports = body.split("<eor>") | |
reports.pop | |
# csv_header = "My Call,Date,Time,Full reference,Band,Mode,Station worked,Notes\n" |
Following the news about Facebook buying Instagram I decided to delete my Instagram account before Facebook claims ownership of my pictures. | |
Since the Instagram-recommended (in their FAQ): http://instaport.me/export doesn't work for me (probably they can't cope with the high demand), | |
here is a quick and dirty way to download all my Instagram pictures in their highest resolution in a few easy steps. | |
You will need: Firefox, Firebug, some text editor, wget | |
1. Go to http://statigr.am/yourlogin using Firefox with Firebug extension active | |
2. Scroll down as many times as it is needed to have all yor pictures thumbnails displayed (I had some 3 hundred pictures so it was not that much scrolling, YMMV) | |
3. In the Firebug JS console run this JS code: $(".lienPhotoGrid a img").each(function(index) { console.log($(this).attr('src')) }) | |
4. JS console will contain urls to all the thumbnails images, like this: http://distilleryimage1.s3.amazonaws.com/4ed46cf2801511e1b9f1123138140926_5.jpg |
#!/bin/bash | |
YEAR=`date "+%Y"` | |
MONTH=`date "+%m"` | |
DAY=`date "+%d"` | |
LOG_FILES="access.log error.log" | |
DATE=$YEAR/$MONTH/$DAY |
#!/bin/bash | |
if [ -f node.pid ] ; then | |
rm node.pid | |
fi | |
node node_script.js & | |
PID=$! | |
sleep 1 |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: unicorn | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: S 0 1 6 |