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
| <?php | |
| /** | |
| * @file | |
| * gvdump.php | |
| * | |
| * @author: Frédéric G. MARAND <[email protected]> | |
| * | |
| * @copyright (c) 2014 Ouest Systèmes Informatiques (OSInet). | |
| * | |
| * @license MIT |
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
| <?php | |
| error_reporting(E_ALL); | |
| /* Data can be send to coroutines using `$coroutine->send($data)`. The sent data will then | |
| * be the result of the `yield` expression. Thus it can be received using a code like | |
| * `$data = yield;`. | |
| */ | |
| /* What we're building in this script is a coroutine-based streaming XML parser. The PHP |
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
| -- The goal of this script is to trim messages that have been processed by | |
| -- all extant groups from the a given Redis stream. It returns the number | |
| -- of messages that were deleted from the stream, if any. I make no | |
| -- guarantees about its performance, particularly if the stream is large | |
| -- and not fully processed (so a simple XTRIM isn't possible). | |
| -- First off, bail out early if the stream doesn't exist. | |
| if redis.call("EXISTS", KEYS[1]) == 0 then | |
| return false | |
| end |
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 | |
| # Setup encrypted disk image | |
| # For Ubuntu 14.04 LTS | |
| CRYPTFS_ROOT=/cryptfs | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install cryptsetup |
OlderNewer