Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dsummersl on github.
  • I am ntx3holc (https://keybase.io/ntx3holc) on keybase.
  • I have a public key whose fingerprint is 30D7 EB1C 3C2A B919 3036 B2E3 2834 CC62 9693 E1BD

To claim this, I am signing this object:

require 'rake'
namespace :data do
require 'open-uri'
require 'csv'
task load_drains: :environment do
puts 'Downloading Drains... ... ...'
url = 'durham.csv'
csv_string = open(url).read
let g:airline_section_y = airline#util#wrap(airline#parts#ffenc() .' %#__accent_bold_red#%{&expandtab?"_":""}%#__restore__#%{&expandtab?"":"t"}%{&tabstop}',0)
@dsummersl
dsummersl / css.css
Created July 24, 2016 17:07
greenbuck
body {
background-image: url('http://www.greenbucketcomposting.com/wp-content/uploads/2016/07/stock-photo-green-watercolor-drop-pattern-on-white-background-290504936-1.jpg'); background-repeat: repeat; background-position: top left; background-attachment: scroll;
}
From 6c33052cb5370579e591270e16dc42115dae325f Mon Sep 17 00:00:00 2001
From: Dane Summers <dsummersl@yahoo.com>
Date: Sat, 9 Jul 2016 21:44:21 -0400
Subject: [PATCH] Puts babel compilation into npm build process.
---
.gitignore | 1 +
package.json | 2 +
xpath.js | 260 -----------------------------------------------------------
3 files changed, 3 insertions(+), 260 deletions(-)
@dsummersl
dsummersl / gist:3744192
Created September 18, 2012 16:40
Example log4j logstash configuration
# one way w/o web interface:
# java -jar lib/playbooks/servers/files/logstash-1.1.1-monolithic.jar agent -f lib/playbooks/servers/files/logstash.conf
# another with a web interface(http://localhost:9292) :
# java -jar lib/playbooks/servers/files/logstash-1.1.1-monolithic.jar agent -f lib/playbooks/servers/files/logstash.conf -- web --backend 'elasticsearch:///?local'
# nc localhost 3333 < logfile
#
# When you are all done, you can delete the 'data' folder to delete the database.
input {
tcp {
<div class="container">
<%
@events_by_date = @events.all.group_by { |x| x.created_at.strftime('%A') }
%>
<a href='/'>
<img src="<%= asset_path 'icons/citygram-logo-color.png' %>" width="150" class="logo">
</a>
<h1>Latest <span class="topic"><%= @subscription.publisher.title %></span>
for <span class="phone"><%= @subscription.nominative %></span></h1>
<div>
<% @events_by_date.each do |day, events| %>
<section id="<%= day %>">
<h2>
<%= day %>
</h2>
<% events.each do |event| %>
<p><%= hyperlink(event.title) %></p>
<% end %>
<% end %>
To reset the databases completely:
bundle exec rake db:drop && rm -rf tmp && bundle exec rake db:create db:migrate && bundle exec foreman start
And build:
bundle exec rake publishers:download publishers:update
diff --git a/Makefile.am b/Makefile.am
index aa481f8..d632fa5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,7 +4,7 @@ doc_DATA = README.markdown
docdir = ${prefix}/share/doc/watchman-$(VERSION)
THIRDPARTY_CPPFLAGS = -Ithirdparty/jansson
-JSON_LIB = -L. -lwmanjson
+JSON_LIB = -L. libwmanjson.a