Skip to content

Instantly share code, notes, and snippets.

View feliperazeek's full-sized avatar
💭
Be there and give a shit

Felipe Oliveira feliperazeek

💭
Be there and give a shit
View GitHub Profile
@feliperazeek
feliperazeek / install_play_and_run_sample_linked_oauth.sh
Created March 14, 2011 17:45
Download and Install Play! 1.1.1, Clone and Run Sample Integration App with LinkedIn OAuth
#!/bin/bash
wget http://download.playframework.org/releases/play-1.1.1.zip
unzip play-1.1.1.zip
mv play-1.1.1 $HOME/play-1.1.1
export PATH=$PATH:$HOME/play-1.1.1
cd $HOME
play install linkedin
git clone git://github.com/feliperazeek/playframework-linkedin.git
cd playframework-linked/samples-and-tests/yabe
@feliperazeek
feliperazeek / PlayHttpServletResponse.java
Created June 18, 2011 23:23
Adapter class to define a HttpServletResponse from a Play Framework Response object
/**
* Copyright 2011 The Apache Software Foundation
*
* Licensed 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
*
* Unless required by applicable law or agreed to in writing, software
@feliperazeek
feliperazeek / eclipse.ini
Created June 29, 2011 03:15
Eclipse.app/Contents/MacOS/eclipse.ini
-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.100.v20110502
-product
org.eclipse.epp.package.javascript.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
[alias]
aa = add -A
au = add -u
co = checkout
cob = checkout -b
com = checkout master
cod = checkout develop
col = checkout local
@feliperazeek
feliperazeek / .bash_profile
Created July 13, 2011 23:04
Play Framework Goodies for Bash Profile
alias p='play run'
alias pe='play eclipsify'
alias mg='sudo mongod'
alias pt='play test'
alias pa='play auto-test'
alias pb='ant -Dplay.path=$HOME/play'
alias pbm='play build-module'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19370138645172119</real>
<key>Green Component</key>
<real>0.15575926005840302</real>
@feliperazeek
feliperazeek / .bash_profile
Created July 26, 2011 21:55
ElasticSearch Aliases
export ES_HOME=/opt/elasticsearch
alias es-health="curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'"
alias es-f="cd $ES_HOME/bin; ./elasticsearch -f"
alias es-b="cd $ES_HOME/bin; ./elasticsearch"
alias es-conf="vi $ES_HOME/config/elasticsearch.yml"
alias es-logs="tail -f $ES_HOME/logs/LOGFILENAME.log"
alias es-kill="killall java" # of course if it's the only java process in the box
@feliperazeek
feliperazeek / play
Created July 28, 2011 17:04
Play Startup Script
#!/bin/sh
#
# /etc/init.d/play -- startup script for play
#
# Path to Play Installation
PLAY_HOME=$HOME/play
PLAY=$PLAY_HOME/play
# User running the Play process
@feliperazeek
feliperazeek / build.xml
Created September 8, 2011 16:40
Ant Build for Play Framework Scala Modules
<?xml version="1.0" encoding="UTF-8"?>
<project name="Perks Security" default="build" basedir=".">
<path id="project.classpath">
<fileset dir="${play.path}/framework">
<include name="*.jar"/>
</fileset>
<fileset dir="${play.path}/framework/lib">
<include name="*.jar"/>
package com.klout.api.models
import com.klout.playful2.sugar.config
/**
* A status for a MySQL node
*/
sealed trait MySQLNodeStatus
/**