Skip to content

Instantly share code, notes, and snippets.

View seth's full-sized avatar

Seth Falcon seth

View GitHub Profile
-module(fake_gen).
-export([
pop/1,
push/2,
start/0,
start2/0,
server_loop2/1
]).
log_level :info
log_location STDOUT
node_name 'admin'
client_key
'/home/vagrant/work/.chef/admin.pem'
validation_client_name 'chef-validator'
validation_key '/etc/chef-server/chef-validator.pem'
chef_server_url 'https://chef-server:443'
syntax_check_cache_path '/home/vagrant/work/.chef/syntax_check_cache'
@seth
seth / .emacs-fun
Created September 24, 2008 20:39
;; Emacs server
(server-start)
(add-hook 'server-switch-hook
(lambda nil
(let ((server-buf (current-buffer)))
(bury-buffer)
(switch-to-buffer-other-frame server-buf))))
(add-hook 'server-done-hook 'delete-frame)
(add-hook 'server-done-hook (lambda nil (kill-buffer nil)))
#!/usr/bin/env ruby
require 'rubygems'
require 'httparty'
require 'radar_love'
require 'pp'
require 'yaml'
class TopEntities
include HTTParty
This file has been truncated, but you can view the full file.
2009-02-26 15:50:35.391::INFO: Started SocketConnector@0.0.0.0:41111
2009-04-16 12:59:23
Full thread dump Java HotSpot(TM) 64-Bit Server VM (1.6.0_03-b05 mixed mode):
"btpool0-68851" prio=10 tid=0x00002aaabc11bc00 nid=0x6f95 waiting for monitor entry [0x000000005c288000..0x000000005c289b90]
java.lang.Thread.State: BLOCKED (on object monitor)
at com.evri.radar.InMemoryServiceRegistry.updateListeners(InMemoryServiceRegistry.java:425)
- waiting to lock <0x00002aaab34c8d90> (a java.util.HashSet)
at com.evri.radar.InMemoryServiceRegistry.registerService(InMemoryServiceRegistry.java:333)
at com.evri.radar.rest.RadarResourceImpl.registerService(RadarResourceImpl.java:107)
This file has been truncated, but you can view the full file.
2009-02-26 15:50:35.391::INFO: Started SocketConnector@0.0.0.0:41111
2009-04-16 12:59:23
Full thread dump Java HotSpot(TM) 64-Bit Server VM (1.6.0_03-b05 mixed mode):
"btpool0-68851" prio=10 tid=0x00002aaabc11bc00 nid=0x6f95 waiting for monitor entry [0x000000005c288000..0x000000005c289b90]
java.lang.Thread.State: BLOCKED (on object monitor)
at com.evri.radar.InMemoryServiceRegistry.updateListeners(InMemoryServiceRegistry.java:425)
- waiting to lock <0x00002aaab34c8d90> (a java.util.HashSet)
at com.evri.radar.InMemoryServiceRegistry.registerService(InMemoryServiceRegistry.java:333)
at com.evri.radar.rest.RadarResourceImpl.registerService(RadarResourceImpl.java:107)
.SUFFIXES: .erl .beam .yrl
%.beam: %.erl
erlc -W -o ebin $<
%.erl : %.yrl
erlc -W $<
vpath %.erl src
vpath %.beam ebin
-module(sherl_db_SUITE).
-compile(export_all).
-include("../include/url.hrl").
-include_lib("ct.hrl").
%%--------------------------------------------------------------------
%% Function: suite() -> DefaultData
%% DefaultData: [tuple()]
//
// NSString+URLParamEncode.m
// EvriApi
//
// Created by Seth Falcon on 7/2/09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import "NSString+URLParamEncode.h"
desc "deploy it call with [true/false] to actually deploy"
task :deploy, [:doit] do |t, args|
args.with_defaults(:doit => false)
site_config = YAML.load_file("./config.yaml")
output_dir = site_config["output_dir"].sub(/\/$/, "")
config = YAML.load_file("./deploy.yaml")
user = config["user"]
host = config["host"]
root = config["root"]
dry = args.doit ? "" : "--dry-run"