Skip to content

Instantly share code, notes, and snippets.

View bfritz's full-sized avatar
🔧
Breaking and fixing things.

Brad Fritz bfritz

🔧
Breaking and fixing things.
View GitHub Profile
@bfritz
bfritz / 20130923_00_overall_status.txt
Last active December 23, 2015 18:19
notes from Seagate ST1000NM0001 error in LSI RAID controller on 2013-09-23
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
@bfritz
bfritz / gist:6555909
Last active December 23, 2015 00:49 — forked from mattpascoe/gist:3842920
Simple script to build deb packages from graphite master on github (forked from mattpascoe / gist:3842920)
#! /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.
#
@bfritz
bfritz / 01_install_and_run_without_ARM_libjffi.txt
Last active December 22, 2015 13:19
Logstash 1.2.1 on Raspberry Pi with JDK 8 EA
# 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
@bfritz
bfritz / bootstrap.sh
Last active December 20, 2015 11:29
bootstrap single node Cassandra cluster in Amazon EC2 with Pallet
## 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
@bfritz
bfritz / cpuinfo
Last active December 18, 2015 18:09
Raspberry Pi specs
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
@bfritz
bfritz / Launcher.scala
Last active December 18, 2015 18:09
Raspberry Pi: Zero-to-Scalatra with Arch Linux and JDK8-EA
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)
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)
@bfritz
bfritz / gist:5730933
Created June 7, 2013 17:31
NPE / c.l.Reflector.invokeNoArgInstanceMember when calling (instance)
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)
@bfritz
bfritz / error.txt
Created June 7, 2013 14:36
visaje and vmfest not able to use ISOs
CompilerException java.lang.NullPointerException, compiling:(test.clj:5)
@bfritz
bfritz / gist:5519185
Created May 4, 2013 23:46
tail whisper file with whisper-fetch
# suggested by SEJeff_work in #graphite
whisper-fetch --from $(date +%s -d '5 minutes ago') --pretty ${metric}.wsp