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
$ apt-get install openjdk-7-jdk | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following extra packages will be installed: | |
consolekit dbus-x11 dconf-gsettings-backend dconf-service dosfstools eject fuse gconf-service gconf2 gconf2-common gnome-mime-data gvfs gvfs-common gvfs-daemons gvfs-libs hdparm hicolor-icon-theme | |
libaacs0 libasound2 libasyncns0 libatasmart4 libatk-wrapper-java libatk-wrapper-java-jni libatk1.0-0 libatk1.0-data libavahi-glib1 libbluray1 libbonobo2-0 libbonobo2-common libcanberra0 libck-connector0 | |
libdbus-glib-1-2 libdconf0 libdrm-intel1 libdrm-nouveau1a libdrm-radeon1 libdrm2 libfam0 libflac8 libfontenc1 libfuse2 libgconf-2-4 libgconf2-4 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgdu0 libgif4 | |
libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgnome-keyring-common libgnome-keyring0 libgnome2-0 libgnome2-common libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra libgtk-3-0 libgtk-3-bin | |
libgtk-3-common libgtk2.0-0 libgtk2.0-bi |
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
$ apt-get install openjdk-7-jdk | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following extra packages will be installed: | |
consolekit dbus-x11 dconf-gsettings-backend dconf-service dosfstools eject fuse gconf-service gconf2 gconf2-common gnome-mime-data gvfs gvfs-common | |
gvfs-daemons gvfs-libs hdparm hicolor-icon-theme libaacs0 libasound2 libasyncns0 libatasmart4 libatk-wrapper-java libatk-wrapper-java-jni libatk1.0-0 | |
libatk1.0-data libavahi-glib1 libbluray1 libbonobo2-0 libbonobo2-common libcairo-gobject2 libcanberra0 libck-connector0 libdbus-glib-1-2 libdconf0 | |
libdrm-intel1 libdrm-nouveau1a libdrm-radeon1 libdrm2 libfam0 libflac8 libfontenc1 libfuse2 libgconf-2-4 libgconf2-4 libgdk-pixbuf2.0-0 | |
libgdk-pixbuf2.0-common libgdu0 libgif4 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgnome-keyring-common libgnome-keyring0 libgnome2-0 |
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
[ /2.Broke.Girls.*720p/i, | |
/Breaking.Bad.*720p/i, | |
/Blue.Mountain.State.*720p/i, | |
/Californication.*720p/i, | |
/Fall.Preview/i, | |
/Cougar.Town.*720p/i, | |
/Dexter.*720p/i, | |
/Eureka.*720p/i, | |
/How.I.Met.Your.Mother.*720p/i, | |
/Hawaii.(5|Five).0.*720p/i, |
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
commands: | |
gentoo.with_puppet:: | |
"/sbin/rc-update del puppet"; | |
"/etc/init.d/puppet stop"; | |
"/usr/bin/emerge -C puppet"; |
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
// Original Code from http://stackoverflow.com/questions/5063022/use-scala-parser-combinator-to-parse-csv-files | |
import scala.util.parsing.combinator._ | |
class CSV(COMMA: String = ",") extends RegexParsers { | |
override protected val whiteSpace = """[ \t]""".r | |
def DQUOTE = "\"" | |
def DQUOTE2 = "\"\"" ^^ { case _ => "\"" } | |
def CR = "\r" | |
def LF = "\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
root@ubuntu:~# sudo apt-get install chef chef-server | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following extra packages will be installed: | |
ant ant-optional apache2-utils binutils build-essential ca-certificates-java chef-expander chef-server-api chef-server-webui chef-solr couchdb | |
couchdb-bin cpp cpp-4.6 default-jre-headless dpkg-dev erlang-asn1 erlang-base erlang-corba erlang-crypto erlang-dev erlang-diameter erlang-docbuilder | |
erlang-edoc erlang-erl-docgen erlang-eunit erlang-ic erlang-inets erlang-inviso erlang-mnesia erlang-nox erlang-odbc erlang-os-mon erlang-parsetools | |
erlang-percept erlang-public-key erlang-runtime-tools erlang-snmp erlang-ssh erlang-ssl erlang-syntax-tools erlang-tools erlang-webtool erlang-xmerl | |
fakeroot fontconfig fontconfig-config g++ g++-4.6 gcc gcc-4.6 gcj-4.6-base gcj-4.6-jre-lib glassfish-mail icedtea-6-jre-cacao icedtea-6-jre-jamvm |
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
Info: | |
CPU: Core i7 3.38 GHz 6core | |
RAM: 32GB ECC Reg RAM | |
OS: MacOS X 10.7.4 (Hackintosh) | |
JVM: Java(TM) SE Runtime Environment (build 1.7.0_05-b06) | |
# ./sbt run | |
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
package ag.bett.model | |
import org.joda.time._ | |
import scala.collection.JavaConversions._ | |
import scala.reflect.BeanProperty | |
import java.util.{UUID, ArrayList} | |
import javax.persistence.{Table, Entity} | |
import me.prettyprint.cassandra.serializers.LongSerializer |
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
scala> "ffff".split("..") | |
res0: Array[java.lang.String] = Array() | |
scala> "ffff".split("..".r) | |
<console>:8: error: type mismatch; | |
found : scala.util.matching.Regex | |
required: java.lang.String | |
"ffff".split("..".r) | |
^ |
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
bundle edit_line replace_with_content(regex,content) { | |
replace_patterns: | |
"^($(regex))$" | |
replace_with => content("$(content)"), | |
comment => "Search and replace string"; | |
} | |
body replace_with content(c) { | |
replace_value => "$(c)"; |