This file contains 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
wavefront :: Int -> Array (Int,Int) Int | |
wavefront n = a where | |
a = array ((1,1),(n,n)) | |
([((1,j), 1) | j <- [1..n]] ++ | |
[((i,1), 1) | i <- [2..n]] ++ | |
[((i,j), a!(i,j-1) + a!(i-1,j-1) + a!(i-1,j)) | |
| i <- [2..n], j <- [2..n]]) |
This file contains 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
description "nginx http daemon" | |
start on started mongodb | |
stop on runlevel [016] | |
console owner | |
exec /opt/nginx/sbin/nginx -c /opt/nginx/conf/nginx.conf -g "daemon off;" |
This file contains 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
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 |
This file contains 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
sudo sqoop import --hive-import --connect jdbc:mysql://mysql_server/mysql_table --table mysql_table --hive-table hive_table --username root --direct -P |
This file contains 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
du -a / | sort -n -r | head -n 10 |
This file contains 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
-- Launch iTerm and log into multiple servers using SSH | |
tell application "iTerm" | |
activate | |
-- Read serverlist from file path below | |
set Servers to paragraphs of (do shell script "/bin/cat $HOME/Serverslist") | |
repeat with nextLine in Servers | |
-- If line into file is not empty (blank line) do the rest | |
if length of nextLine is greater than 0 then | |
set server to "nextLine" | |
set term to (current terminal) |
This file contains 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
require 'rubygems' | |
require 'jekyll' | |
require 'fileutils' | |
require 'posterous' | |
require 'net/http' | |
require 'URI' | |
puts ARGV, "IS ARGV" | |
module Posterous |
This file contains 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
require 'posterous' | |
require 'time' | |
module Posterous | |
module Connection | |
def default_options | |
@default_options ||= { | |
#:username => Posterous.config['username'], | |
#:password => Posterous.config['password'] | |
:userpwd => Posterous.config['username']+":"+Posterous.config['password'] |
This file contains 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
.DS_Store | |
*~ | |
\#*\# | |
.\#* | |
*.swp |
This file contains 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
[user] | |
name = Antonio Terreno | |
email = antonio.terreno@example.com | |
[alias] | |
aliases = !git config --get-regexp alias | sed -re 's/alias\\.(\\S*)\\s(.*)$/\\1 = \\2/g' | |
up = !git pull --rebase --autostash | |
co = checkout | |
br = branch | |
ci = commit | |
st = status |
OlderNewer