running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
| <?php | |
| namespace AppBundle\Entity; | |
| /** | |
| * @package AppBundle\Entity | |
| * @ORM\Entity() | |
| * @ORM\Table() | |
| * @ORM\Cache(usage="NONSTRICT_READ_WRITE") | |
| */ |
| /** | |
| * This file provides common stuff to be used in the pipelines. | |
| * It is important to load it after repo checkout is done: see https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#triggering-manual-loading | |
| * | |
| */ | |
| /** | |
| * Dumps some info about the environment. | |
| * @return | |
| */ |
| node { | |
| def currentVersion = getCurrentVersion() | |
| def newVersion = getNextVersion(currentVersion) | |
| def frontendIp = kubectl("get svc l5d -o jsonpath=\"{.status.loadBalancer.ingress[0].ip}\"").trim() | |
| def originalDst = getDst(getDtab()) | |
| stage("clone") { | |
| git url: gitRepo + '.git', branch: gitBranch | |
| } |
$ uname -r
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
| <?php | |
| /** | |
| * Console command for Phinx with argument "all" for executed migrations for multiple databases. | |
| * | |
| * Structure directory for migrations and configs: | |
| * ``` | |
| * migrations/ | |
| * .db1/ | |
| * .db2/ | |
| * .db3/ |
Finding Packer-generated AMIs automatically after builds
The basic technique is to have Packer add a tag with a unique value during the build, and use AWS' built-in filtering capabilities to find that specific AMI after the build finishes.
| { | |
| "vars": { | |
| "@gray-darker": "lighten(#000, 13.5%)", | |
| "@gray-dark": "lighten(#000, 20%)", | |
| "@gray": "lighten(#000, 33.5%)", | |
| "@gray-light": "lighten(#000, 46.7%)", | |
| "@gray-lighter": "lighten(#000, 93.5%)", | |
| "@brand-primary": "#428bca", | |
| "@brand-success": "#5cb85c", | |
| "@brand-info": "#5bc0de", |
| I moved this to its own repository: https://github.com/borfast/new_linux |