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
<?php | |
/** | |
* @file | |
* Definition of Drupal\Core\Cache\ArrayBackend. | |
*/ | |
namespace Drupal\Core\Cache; | |
/** |
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/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php | |
index 69e99a0..8bdf86a 100644 | |
--- a/core/lib/Drupal/Core/Render/Renderer.php | |
+++ b/core/lib/Drupal/Core/Render/Renderer.php | |
@@ -184,6 +184,11 @@ protected function doRender(&$elements, $is_root_call = FALSE) { | |
$this->bubbleStack(); | |
return $elements['#markup']; | |
} | |
+ | |
+ // Store the cache ID for later comparison. |
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
<?php | |
class BigPipeResponse extends StreamedResponse { | |
public function __construct(Response $response) { | |
$this->mainResponse = $response; | |
$this->setStatusCode($response->statusCode()); | |
$this->headers->set($response->headers->all()); | |
$this->mainBody = $response->getContent(); | |
} |
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
if (!"ggplot2" %in% rownames(installed.packages())) { | |
install.packages("ggplot2") | |
} | |
library("ggplot2") | |
args <- commandArgs(trailingOnly = TRUE) | |
before_file <- args[1] | |
after_file <- args[2] |
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
alias ports='sudo lsof -iTCP -sTCP:LISTEN -P' | |
alias dnsflush='dscacheutil -flushcache' | |
alias git-add='git add -A' | |
alias dmesg="sudo dmesg" | |
alias l='ls -lrtha' | |
alias dir='ls -lh' | |
alias svnscrub='find . -name .svn -exec rm -rf {} \;' | |
alias vpnfix='sudo route -nv add -net 10 -interface utun0 && sudo route change default 10.0.1.1' | |
alias gitx='/Applications/GitX.app/Contents/MacOS/GitX &' |
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
var http = require('http'); | |
var secure = new RegExp('(' + [ | |
'facebook.com', | |
'twitter.com', | |
'google.com' | |
].join('|').replace('.', '\\.') + ')$'); | |
var noSecure = new RegExp('^(' + [ | |
'http://(www\.)?google\.com/(image|imghp)', |
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
# | |
# Normal cronjobs. | |
# m h dom mon dow command | |
# | |
# Regenerate torrents.tar.gz every hour. | |
*/60 * * * * tar -cvzf /data/www/svn_driverpacks.net/files/torrents.tar.gz /data/www/svn_driverpacks.net/files/torrents/*.torrent | |
# Run DriverPacks CDN and seedbox rsync scripts (for downloads) | |
*/20 * * * * /home/wim/cronscripts/dps-cdn-rsync.sh |
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/sh | |
LOGFILE=/data/logs/dps-seedbox1-rsync/$(date "+%Y-%m").log | |
EXCLUDES_COMMON="--exclude lost+found --exclude .ssh --exclude .bash_history" | |
EXCLUDES_MORE="--exclude other --exclude BASE --exclude applications" | |
# Append a header first, so we know when this script was run. | |
date "+%n%n=====%nSyncing DriverPacks to seedbox1 at %Y-%m-%d %H:%M:%S" > $LOGFILE | |
# Sync the DriverPacks themselves to the seedbox' 'data' folder. However, we |
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 | |
export AWS_ACCESS_KEY_ID=yourID | |
export AWS_SECRET_ACCESS_KEY=yourSecret | |
export AWS_TARGET_BUCKET=DriverPacks_back-up | |
export AWS_TARGET_DIR=/ | |
export SOURCE_DIR=/data/www/downlodsorigin.driverpacks.net/ | |
export S3SYNC_DIR=/home/wim/scripts/s3sync | |
export SSL_CERT_DIR=/etc/ssl/certs |
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/sh | |
INPUT=/var/log/mysql/mysql-slow.log | |
OUTPUT_1H=/data/www/wimleers.com/status/mysql-slow-1h.txt | |
OUTPUT_24H=/data/www/wimleers.com/status/mysql-slow-24h.txt | |
# Perform the analytics, overwriting the previous results. | |
../scripts/mk-query-digest --since 1h $INPUT > $OUTPUT_1H | |
../scripts/mk-query-digest --since 24h $INPUT > $OUTPUT_24H |
OlderNewer