Skip to content

Instantly share code, notes, and snippets.

View nikolavp's full-sized avatar

Nikola Petrov nikolavp

View GitHub Profile
{
"@context": "http://schema.org/",
"@type": "Event",
"name": "Die Zillertaler Mander",
"description": "Das Power-Duo aus dem Zillertal",
"startDate": "2016-09-15T23:00:00+01:00",
"endDate": "2016-09-16T23:00:00+01:00",
"url": "http://www.mayrhofen.at/en/events/details/events/die-zillertaler-mander-5/",
"location": {
"@type": "Place",
@nikolavp
nikolavp / pom.xml
Created November 5, 2014 12:34
Enforcer setup
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<id>enforce</id>
<configuration>
<rules>
<!--<DependencyConvergence />-->
require 'spec_helper'
describe '%s' do
let(:title) { <title-here> }
end
import os
import os.path
import sys
from graphite.render.hashing import ConsistentHashRing
whisper_base = '/opt/graphite/storage/whisper/'
instances = []
unwelcome_instances = []
<VirtualHost *:9000>
ServerName <our-hostname>
DocumentRoot /opt/Kibana/public
<Directory /opt/Kibana/public/>
Deny from all
Allow from <our-ip>
Options -MultiViews
</Directory>
</VirtualHost>
avg-cpu: %user %nice %system %iowait %steal %idle
15.58 0.08 0.76 35.94 0.00 47.65
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 17.54 8.82 101.43 3.97 5221.16 1138.41 120.68 0.13 9.42 6.25 90.36 7.85 82.78
md0 0.00 0.00 0.43 0.47 1.72 1.89 8.00 0.00 0.00 0.00 0.00 0.00 0.00
md2 0.00 0.00 119.05 11.97 5219.44 1135.15 97.00 0.00 0.00 0.00 0.00 0.00 0.00
md1 0.00 0.00 0.00 0.00 0.00 0.00 2.66 0.00 0.00 0.00 0.00 0.00 0.00
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
# Add files and commands to this file, like the example:
# watch(%r{file/path}) { `command(s)` }
#
guard 'shell' do
watch(/(.*).tex/) {|m| `make` }
end
ERROR 12:16:06,315 error writing to <IP>
java.lang.RuntimeException: java.io.IOException: Broken pipe
at org.apache.cassandra.db.ColumnSerializer.serialize(ColumnSerializer.java:59)
at org.apache.cassandra.db.ColumnSerializer.serialize(ColumnSerializer.java:30)
at org.apache.cassandra.db.ColumnFamilySerializer.serialize(ColumnFamilySerializer.java:73)
at org.apache.cassandra.db.Row$RowSerializer.serialize(Row.java:62)
at org.apache.cassandra.db.ReadResponseSerializer.serialize(ReadResponse.java:78)
at org.apache.cassandra.db.ReadResponseSerializer.serialize(ReadResponse.java:69)
at org.apache.cassandra.net.MessageOut.serialize(MessageOut.java:131)
at org.apache.cassandra.net.OutboundTcpConnection.write(OutboundTcpConnection.java:221)
@nikolavp
nikolavp / build-graphite-deb.sh
Created June 11, 2013 09:18
Bulding graphite packages with FPM. Note that there are no dependencies in the metadata for the packages at the moment
echo Installing dependencies
apt-get -y install python apache2 python-twisted python-memcache libapache2-mod-python python-django libpixman-1-0 python-cairo python-django-tagging
echo Downloading packages
wget http://pypi.python.org/packages/source/c/carbon/carbon-0.9.10.tar.gz#md5=1d85d91fe220ec69c0db3037359b691a
wget http://pypi.python.org/packages/source/w/whisper/whisper-0.9.10.tar.gz#md5=218aadafcc0a606f269b1b91b42bde3f
wget http://pypi.python.org/packages/source/g/graphite-web/graphite-web-0.9.10.tar.gz#md5=b6d743a254d208874ceeff0a53e825c1
echo Unarchiving packages
tar zxf graphite-web-0.9.10.tar.gz
tar zxf carbon-0.9.10.tar.gz
@nikolavp
nikolavp / gist:5488026
Created April 30, 2013 10:59
Cassandra upstart job
description "Cassandra is a distributed (peer-to-peer) system for the management and storage of structured data."
author "nikola.petrov@ontotext.com"
start on filesystem
stop on runlevel[016]