This file contains hidden or 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
qDebug() << "before:" << this->lastUpdate; | |
// Update this granularity's used capacity.. | |
this->capacityUsed[granularity] = 0; | |
qDebug() << "after: " << this->lastUpdate; |
This file contains hidden or 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 |
This file contains hidden or 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
# Colorizing. Source: http://systhread.net/texts/200703bashish.php. | |
DULL=0 | |
BRIGHT=1 | |
FG_BLACK=30 | |
FG_RED=31 | |
FG_GREEN=32 | |
FG_YELLOW=33 | |
FG_BLUE=34 |
This file contains hidden or 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 hidden or 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
Copy from VideoJS. |
This file contains hidden or 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
QTextStream in(stdin); | |
forever { | |
QString line = in.readLine(); | |
if (!line.isNull()) | |
break; | |
} |
This file contains hidden or 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
# Copy all OTHER_FILES to the build directory when using shadow builds. | |
!equals($${PWD}, $${OUT_PWD}) { | |
unix:COPY = cp | |
win32:COPY = copy /y | |
for(other_file, OTHER_FILES) { | |
QMAKE_PRE_LINK += $${COPY} $${PWD}/$${other_file} $${OUT_PWD}/$${other_file}; | |
} | |
} |
This file contains hidden or 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
--( ~/Work/redbot (master) )-- git remote add upstream https://github.com/mnot/redbot.git | |
--( ~/Work/redbot (master) )-- git fetch upstream | |
From https://github.com/mnot/redbot | |
* [new branch] gh-pages -> upstream/gh-pages | |
* [new branch] master -> upstream/master | |
--( ~/Work/redbot (master) )-- git fetch upstream master:har-postData | |
From https://github.com/mnot/redbot | |
* [new branch] master -> har-postData | |
--( ~/Work/redbot (master) )-- git checkout har-postData | |
Switched to branch 'har-postData' |
This file contains hidden or 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 .gitignore .gitignore | |
index ad522c6..2a0e079 100644 | |
--- .gitignore | |
+++ .gitignore | |
@@ -19,6 +19,9 @@ build/ | |
# Untracked plugins | |
plugins/* | |
+!plugins/MantisCoreFormatting | |
+!plugins/MantisGraph |
This file contains hidden or 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
I was (finally!) creating the final release for one my modules (the CDN module). I had typed quite a bit in the release notes field. So I wanted to verify that those release notes looked ok, by clicking the Preview button. Unfortunately, that's where things went wrong. | |
It seems Drupal.org created a *completely* messed up project release node: no version number in the node title (just 'cdn'), no version number in the file name (just 'cdn-.tar.gz'), linked to the correct CVS tag (which I can also not select again when creating a new project release), with a (seemingly) valid tarball, but no release notes. See it for yourself at http://drupal.org/node/985576. | |
Screenshots attached (fortunately, Google Chrome has an excellent backward cache, which included the form in its full glory). | |
So: | |
1) could you please delete that messed up project release node or edit it to have version number 2.0 and the following release notes: | |
<code> | |
The goal for 2.0 is simple: make the CDN module kick ass. This will be done in three |