Skip to content

Instantly share code, notes, and snippets.

diff --git a/eth/main.cpp b/eth/main.cpp
index 499a43b..54c7409 100644
--- a/eth/main.cpp
+++ b/eth/main.cpp
@@ -34,6 +34,7 @@
#include "FileSystem.h"
#include "Instruction.h"
#include "BuildInfo.h"
+#include <boost/filesystem.hpp>
using namespace std;
diff --git a/src/jsonrpccpp/server/connectors/httpserver.cpp b/src/jsonrpccpp/server/connectors/httpserver.cpp
index 29088b3..b316a3a 100644
--- a/src/jsonrpccpp/server/connectors/httpserver.cpp
+++ b/src/jsonrpccpp/server/connectors/httpserver.cpp
@@ -124,8 +124,10 @@ bool HttpServer::SendResponse(const std::string& response, void* addInfo)
{
struct mg_connection* conn = (struct mg_connection*) addInfo;
if (mg_printf(conn, "HTTP/1.1 200 OK\r\n"
- "Content-Type: application/json\r\n"
+ "Content-Type: application/json; charset=utf-8\r\n"
console.log = env.note;
window.onerror = function (errorMsg, url, lineNumber, column, errorObj) {
env.warn(
'Error: ' + errorMsg +
', Script: ' + url +
', Line: ' + lineNumber +
', Column: ' + column +
', StackTrace: ' + String(errorObj)
);
}
diff --git a/master/buildbot/changes/gitpoller.py b/master/buildbot/changes/gitpoller.py
index f3d7fb1..4a11108 100644
--- a/master/buildbot/changes/gitpoller.py
+++ b/master/buildbot/changes/gitpoller.py
@@ -242,11 +242,13 @@ class GitPoller(base.PollingChangeSource, StateMixin):
lastRev = self.lastRev.get(branch)
self.lastRev[branch] = newRev
- if not lastRev:
- return
@caktux
caktux / inscreen
Last active August 29, 2015 14:11 — forked from smoser/inscreen
#!/bin/sh
#
# upstream: git://gist.github.com/1019125.git
VERBOSITY=0
LOCK=""
CR="
"
error() { echo "$@" 1>&2; }
@caktux
caktux / tail_twisted.sh
Created December 20, 2014 13:36
tail buildbot twisted.log
tail -f master/twistd.log | grep -v "DeprecationWarning" | grep -v "processing 0 changes" | grep -E "GitHubStatus|$"
@caktux
caktux / .profile
Created March 11, 2015 04:10
Get a brew formula version number
# show installed brew formula version
function brew-version {
brew info $1 | awk '{print $3}' | head -n1
}
# show last available brew formula version
function brew-last-version {
brew versions $1 | awk '{print $1}' | head -n1
}
@caktux
caktux / drush_module_status
Created June 11, 2013 13:03
Find the status of a module in a site list
drush @SITELIST pmi MODULE -y | grep Status
@caktux
caktux / change_files_directory
Created June 11, 2013 13:07
Change files directory
UPDATE `files` SET `filepath` = REPLACE(`filepath`, "sites/SITEDOMAIN/files/", "files/SITEDOMAIN/");
@caktux
caktux / disable_module_sql
Created June 11, 2013 13:08
Disable module with SQL
UPDATE `system` SET `status` = '0' WHERE `name` = 'MODULENAME' LIMIT 1;