This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MySQL. Versions 4.1 and 5.0 are recommended. | |
# | |
# Install the MySQL driver: | |
# gem install mysql2 | |
# | |
# And be sure to use new-style password hashing: | |
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
development: | |
adapter: mysql2 | |
encoding: utf8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails new app_name --skip-test-unit && cd app_name && | |
echo "group :development, :test do | |
gem 'rspec-rails' | |
end" >> Gemfile && | |
rails generate rspec:install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var data = JSON.stringify({ | |
'id': '2' | |
}); | |
var options = { | |
host: 'localhost', | |
port: '8094', | |
path: '/spring-rest-core/service/api/vv', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn versions:set -DnewVersion=2.50.1-SNAPSHOT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://durdn.com/blog/2012/11/22/must-have-git-aliases-advanced-examples/?utm_content=buffera99d5&utm_source=buffer&utm_medium=twitter&utm_campaign=Buffer#! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -dm */* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 'Start running MR job' | |
java -jar hbase-tool-1.0.jar -mapreduce -h 10.1.5.227 -sd 17.10.2013+13:00:00 -ed 18.10.2014+00:00:00 -toDb -dbhost vm-rdbms -dbport 1521 -dbuser unifo -dbpass 1234 -dbsid UNIFO | |
echo 'Job ended' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^TABLESPACE "((?!USERS)[\w'-]+") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -p -i -e 's/^TABLESPACE \"((?!USERS)[\w-]+")/TABLESPACE USERS/g' file1 file2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -p -i -e 's/TABLESPACE\s+\n\s+"((?!USERS)[\w-]+")/TABLESPACE USERS/g' gis-gmp-db.ddl |