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
| megaraidsas-status | |
| -- Arrays informations -- | |
| -- ID | Type | Size | Status | |
| a0d0 | RAID 10 | 237GiB | optimal | |
| a0d1 | RAID 1 | 931GiB | DEGRADED | |
| -- Disks informations | |
| -- ID | Model | Status | Warnings | |
| a0e11s0 | ATA INTEL SSDSA2CW16 119GiB | online |
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
| #! /bin/bash | |
| # Requires fpm v0.4.20 at least | |
| # | |
| # rm -rf carbon-latest* ceres-latest* graphite-web-latest* whisper-latest* *.deb;rm -rf /opt/graphite/;dpkg -r python-whisper python-graphite-web python-carbon python-ceres python-txamqp | |
| # | |
| # This script needs "fpm". If you dont have it, | |
| # run "gem install fpm" | |
| # Then simply execute this script and it will create packages and install them on your system. | |
| # |
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
| # Raspberry Pi, Arch Linux and Java 8 EA details: | |
| # https://gist.github.com/bfritz/5823762 | |
| $ LS_JAR=logstash-1.2.1-flatjar.jar | |
| $ LS_DEST=$HOME/logstash | |
| $ LS_TMP=/tmp/ls | |
| $ LS_CONF=$LS_DEST/test.conf | |
| $ mkdir -p $LS_DEST $LS_TMP | |
| $ cd $LS_DEST |
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
| ## Bring up single node Cassandra cluster on Ubuntu 12.04 LTS | |
| ## image in Amazon EC2 using Pallet. | |
| ## Steps that are likely to be unnecessary or are destructive | |
| ## of existing setup are commented out. | |
| # apt-get install openjdk-7-jdk curl patch | |
| cd /tmp | |
| curl -L -O http://github.com/technomancy/leiningen/raw/stable/bin/lein |
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
| Processor : ARMv6-compatible processor rev 7 (v6l) | |
| BogoMIPS : 697.95 | |
| Features : swp half thumb fastmult vfp edsp java tls | |
| CPU implementer : 0x41 | |
| CPU architecture: 7 | |
| CPU variant : 0x0 | |
| CPU part : 0xb76 | |
| CPU revision : 7 | |
| Hardware : BCM2708 |
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
| package com.example | |
| import org.eclipse.jetty.server.Server | |
| import org.eclipse.jetty.servlet.{DefaultServlet, ServletContextHandler} | |
| import org.eclipse.jetty.webapp.WebAppContext | |
| import org.scalatra.servlet.ScalatraListener | |
| object Launcher { | |
| def main(args: Array[String]) { | |
| val port = if(System.getenv("PORT") != null) |
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
| user=> (print-cause-trace *e) | |
| clojure.lang.Compiler$CompilerException: java.lang.NullPointerException, compiling:(NO_SOURCE_FILE:1) | |
| at clojure.lang.Compiler$InvokeExpr.eval (Compiler.java:3387) | |
| clojure.lang.Compiler$DefExpr.eval (Compiler.java:398) | |
| clojure.lang.Compiler.eval (Compiler.java:6516) | |
| clojure.lang.Compiler.eval (Compiler.java:6477) | |
| clojure.core$eval.invoke (core.clj:2797) | |
| clojure.main$repl$read_eval_print__6405.invoke (main.clj:245) | |
| clojure.main$repl$fn__6410.invoke (main.clj:266) | |
| clojure.main$repl.doInvoke (main.clj:266) |
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
| user=> (models) | |
| (:debian-6.0.2.1-64bit-v0.3) | |
| user=> (def my-machine (instance my-server "my-vmfest-vm" :debian-6.0.2.1-64bit-v0.3 :micro)) | |
| NullPointerException clojure.lang.Reflector.invokeNoArgInstanceMember (Reflector.java:296) | |
| user=> (print-stack-trace *e) | |
| clojure.lang.Compiler$CompilerException: java.lang.NullPointerException, compiling:(NO_SOURCE_FILE:1) | |
| at clojure.lang.Compiler$InvokeExpr.eval (Compiler.java:3387) | |
| clojure.lang.Compiler$DefExpr.eval (Compiler.java:398) |
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
| CompilerException java.lang.NullPointerException, compiling:(test.clj:5) |
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
| # suggested by SEJeff_work in #graphite | |
| whisper-fetch --from $(date +%s -d '5 minutes ago') --pretty ${metric}.wsp |