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
# Recipe for play-2.1.1-RC2 | |
require 'formula' | |
class Play < Formula | |
homepage 'http://www.playframework.org/' | |
url 'http://downloads.typesafe.com/play/2.1.1-RC2/play-2.1.1-RC2.zip' | |
md5 'ef4b378dae9c6a8711f9f5395e626ca3' | |
version '2.1.1-RC2' | |
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
alias idea='/home/applications/idea-IU-129.451/bin/idea.sh > /dev/null 2>&1 &' |
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
cat sites-enabled/www.cestpasdur.com | |
<VirtualHost *:80> | |
ServerName cestpasdur.com:80 | |
ServerAlias nexus.cestpasdur.com | |
UseCanonicalName Off | |
ServerAdmin "[email protected]" | |
CustomLog /var/www/www.cestpasdur.com/logs/nexus_access_log plesklog |
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
for file in *.JPG; do mv -- "$file" "$(expr "$file" : '\(.*\)\.JPG').jpg"; done |
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
case class CartLine(id: Option[Long], start: DateTime, end: DateTime, saisonId: Long, chambreId: Long, quantity: Int, unityPrice: BigDecimal, tax: BigDecimal, cartId: Option[Long]) | |
case class Cart(id: Option[Long], createdAt: DateTime) | |
object Cart { | |
type CartWithLine = (Cart, List[CartLine]) | |
} | |
implicit val cartLineFormat = Json.format[CartLine] | |
implicit val cartWithLineFormat = Json.format[CartWithLine] |
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
-Dcom.sun.management.jmxremote | |
-Dcom.sun.management.jmxremote.port=9004 | |
-Dcom.sun.management.jmxremote.ssl=false | |
-Dcom.sun.management.jmxremote.authenticate=false |
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
# Our .tmux.conf file | |
# Setting the prefix from C-b to C-a | |
# START:prefix | |
#set -g prefix C-a | |
# END:prefix | |
# Free the original Ctrl-b prefix keybinding | |
# START:unbind | |
#unbind C-b | |
# END:unbind |
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
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode | |
" Description: A minimal, but feature rich, example .vimrc. If you are a | |
" newbie, basing your first .vimrc on this file is a good choice. | |
" If you're a more advanced user, building your own .vimrc based | |
" on this file is still a good idea. | |
"------------------------------------------------------------ | |
" Features {{{1 | |
" | |
" These options and commands enable some very useful features in Vim, that |
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
val objTransformer = | |
(__ \ "_embedded" \ "contract").json.copyFrom( | |
(__ \ "contract").readNullable[JsArray].map(_.getOrElse(JsArray())) | |
) and | |
(__ \ "_embedded" \ "comment").json.copyFrom( | |
(__ \ "comment").readNullable[Comment].filter(reviewOpt => isApproved(reviewOpt)) | |
) | |
(__ \ "title").readNullable[String].map(_.fold(JsObject(Nil))(s => Json.obj("title" -> s))) | |
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
#include <SPI.h> | |
#include <Ethernet.h> | |
#include <DHT11.h> | |
int pin=2; | |
DHT11 dht11(pin); | |