This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drush @SITELIST pmi MODULE -y | grep Status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE `files` SET `filepath` = REPLACE(`filepath`, "sites/SITEDOMAIN/files/", "files/SITEDOMAIN/"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE `system` SET `status` = '0' WHERE `name` = 'MODULENAME' LIMIT 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drush @ALIAS vdel cron_semaphore | |
drush @ALIAS vdel cron_last | |
drush @ALIAS sqlq "delete from semaphore" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh user@host "echo '`cat ~/.ssh/id_rsa.pub`' >> ~/.ssh/authorized_keys" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# find all .git directories and exec "git pull" on the parent. | |
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -exec sed -i 's/find/replace/g' {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc function | |
# Use `docker-cleanup --dry-run` to see what would be deleted. | |
function docker-cleanup { | |
EXITED=$(docker ps -q -f status=exited) | |
DANGLING=$(docker images -q -f "dangling=true") | |
if [ "$1" == "--dry-run" ]; then | |
echo "==> Would stop containers:" | |
echo $EXITED | |
echo "==> And images:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
OlderNewer