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
bundle agent snort | |
{ | |
meta: | |
"tags" slist => { "autorun" }; | |
vars: | |
linux:: | |
"snort_package" string => "snort"; | |
"snort_dir" string => "/etc/snort/"; | |
"snort_path" string => "/usr/bin/snort"; |
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
#!/usr/bin/env bash | |
# yeah this really needs a bash! luckily this is not used by any server | |
NAME="software name (change in $0)" | |
RAMSIZE=1G | |
BASEPORT=9090 | |
USAGE="Usage: $0 [start|stop] [dev|prev|prod]" | |
if [ $# -ne 2 ]; then echo $USAGE && exit 1; fi |
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
import com.foursquare.slashem.SolrSchema | |
import com.twitter.finagle.http.RequestBuilder | |
import com.twitter.util.Awaitable | |
import net.liftweb.json._ | |
import org.jboss.netty.buffer.ChannelBuffers._ | |
import org.jboss.netty.handler.codec.http.{ HttpHeaders, HttpRequest, HttpResponse } | |
/** | |
* Trait to export Lift Record objects to SOLR |
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
import java.util.concurrent.atomic.AtomicReference | |
import com.twitter.finagle.{ http, Service } | |
import com.twitter.finagle.builder.ClientBuilder | |
import com.twitter.util.{ Promise, Future } | |
import org.jboss.netty.handler.codec.http._ | |
import org.jboss.netty.util.CharsetUtil | |
import net.liftweb.util.Schedule |
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
#!/usr/bin/env bash | |
# yeah this really needs a bash! | |
NAME="lift project (change this in $0)" | |
RAMSIZE=256M | |
BASEPORT=8040 | |
USAGE="Usage: $0 [start|stop] [dev|prev|prod]" | |
if [ $# -ne 2 ]; then echo $USAGE && exit 1; fi |
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
object SessionSettings { | |
object requestVar = net.liftweb.http.RequestVar[String]("") | |
object sessionVar = net.liftweb.http.SessionVar[String]("") | |
private def ajaxText[T <: AnyVar[String, _]](id: String, placeholder: String, field: T, validate: String => Boolean) = { | |
def customSet(str: String): JsCmd = { | |
if (validate(str)) { | |
field.set(str) | |
Noop | |
} else { |
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
Dear Mickey, | |
so i tried the support case link at the bottom, but all i get after authentication is 400 Bad Request on everything i do..... So here it goes. | |
So it was the last week before my vacation, and absolutely nothing worked as normally expected. | |
I must admit that my brain did not really think about having Servers with NAT'ed IPs, which is absolutely great for the manangement perspective of a cloud environments, but it actually "shits" (excuse my french) on the real need for a server. If we wanted NAT, we'd find a way to make it work with DSL or Cable lines.. | |
To be fair, i am against any kind of cloud environment since this trend started a few years back, and i've been nothing short with my assumption that it's all just crap for people who should not operate servers in the first place. So from my professional standpoint, having worked with EC2 for the first time, i can only recommend anyone not using it for anything more than a personal blog. |
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
fuckmehard data # cd portage-2.2.1 | |
fuckmehard portage-2.2.1 # ls | |
ChangeLog DEVELOPING LICENSE Makefile NEWS RELEASE-NOTES TEST-NOTES bin cnf doc man misc pym | |
fuckmehard portage-2.2.1 # make | |
set -e; \ | |
touch "/data/portage-2.2.1/doc/fragment/date"; \ | |
make -C "/data/portage-2.2.1/doc" xhtml xhtml-nochunks | |
make[1]: Entering directory `/data/portage-2.2.1/doc' | |
xmlto xhtml -m custom.xsl portage.docbook | |
make[1]: xmlto: Command not found |
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
/data/usr-portage/profiles/updates/3Q-2011.......................... | |
/data/usr-portage/profiles/updates/4Q-2011............................................................................................................. | |
/data/usr-portage/profiles/updates/1Q-2012....................... | |
/data/usr-portage/profiles/updates/2Q-2012........................ | |
/data/usr-portage/profiles/updates/3Q-2012..................................................... | |
/data/usr-portage/profiles/updates/4Q-2012............................................................. | |
/data/usr-portage/profiles/updates/1Q-2013.................................................................................................. | |
/data/usr-portage/profiles/updates/2Q-2013.................... | |
/data/usr-portage/profiles/updates/3Q-2013......... | |
## |
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
[info] Running net.liftweb.netty.LiftNettyServer | |
17:10:57.428 [run-main] DEBUG i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework | |
17:10:57.433 [run-main] DEBUG i.n.c.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 24 | |
17:10:57.451 [run-main] DEBUG i.n.util.internal.PlatformDependent - UID: 501 | |
17:10:57.452 [run-main] DEBUG i.n.util.internal.PlatformDependent - Java version: 7 | |
17:10:57.452 [run-main] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noUnsafe: false | |
17:10:57.454 [run-main] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.ByteBuffer.cleaner: available | |
17:10:57.455 [run-main] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Buffer.address: available | |
17:10:57.455 [run-main] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available | |
17:10:57.455 [run-main] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available |