Skip to content

Instantly share code, notes, and snippets.

View howsmytls.rb
require "net/https"
require "uri"
require 'json'
uri = URI.parse("")
http =, uri.port)
http.use_ssl = true
resp = JSON.parse(http.request(
puts JSON.pretty_generate(resp)
View gist:5470590
2013-04-26T21:31:12.417+0000: [GC [ParNew#
# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x00007f12613e6694, pid=8343, tid=139712337934080
# JRE version: 6.0_30-b12
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.5-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [] ReferenceProcessor::balance_queues(DiscoveredList*)+0x154
View cassandra.log
This file has been truncated, but you can view the full file.
INFO [main] 2013-02-13 01:39:35,446 (line 101) Logging initialized
INFO [main] 2013-02-13 01:39:35,455 (line 123) JVM vendor/version: Java HotSpot(TM) 64-Bit Server VM/1.6.0_30
INFO [main] 2013-02-13 01:39:35,456 (line 124) Heap size: 8375238656/8375238656
View gist:4955684
cscotta:~/cassandra/bin$ ./nodetool -h localhost compact
Error occured during compaction
java.util.concurrent.ExecutionException: java.lang.AssertionError: Memory was freed
at java.util.concurrent.FutureTask$Sync.innerGet(
at java.util.concurrent.FutureTask.get(
at org.apache.cassandra.db.compaction.CompactionManager.performMaximal(
at org.apache.cassandra.db.ColumnFamilyStore.forceMajorCompaction(
at org.apache.cassandra.service.StorageService.forceTableCompaction(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
View fork.js
for (var i = 0; i < 6; i++) {
var name = 'ep' + i + '_player';
document.getElementById('episode' + i).addEventListener('click', function(evt) {
showEpisode(name); evt.stopPropagation();
name = 'ep' + i + '_preview_player'
document.getElementById('episode' + i + '_preview').addEventListener('click', function(evt) {
showEpisode(name); evt.stopPropagation();
View arguments.cpp
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
View gist:3915077
// all rollup state is held here
private /**
* this is an internal field. don't mess with it.
final /**
* it is also final and cannot be reassigned.
ConcurrentNavigableMap< /**
* the name of this class is ConcurrentNavigableMap
cscotta / boundaryConv.txt
Created Sep 12, 2012 — forked from amastracci/boundaryConv.txt
Boundary Conversation API
View boundaryConv.txt
sending request for data:
"filter": {
"hosted_by_meters_saved_search": "8ASDF9751HFASF98SS",
"transport": [
"port": 53723,
"protocol": 6
# Used to generate
# usage: ./ > ../source/com/maxmind/geoip/
use strict;
use warnings;
print <<__JAVA_CODE__;
package com.maxmind.geoip;