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 | |
| /* | |
| Script that cleans up old builds of all repos of a drone server. | |
| Dependencies: | |
| $ # having PHP and composer installed | |
| $ composer require "guzzlehttp/guzzle=^6.3" |
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
| -- Thank @sbengo to figure out foreign_keys constraints is defaults to false in sqlite | |
| -- Enable to delete logs by cascading delete | |
| PRAGMA foreign_keys = ON; | |
| WITH n_build_ids_per_repo as ( | |
| SELECT build_id | |
| FROM ( | |
| SELECT | |
| build_id, | |
| build_repo_id, |
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
| HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008 | |
| Compiled by Eric Pement - eric [at] pement.org version 0.27 | |
| Latest version of this file (in English) is usually at: | |
| http://www.pement.org/awk/awk1line.txt | |
| This file will also be available in other languages: | |
| Chinese - http://ximix.org/translation/awk1line_zh-CN.txt | |
| USAGE: |