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
{ | |
"datasource": { | |
"uid": "mimir", | |
"type": "prometheus" | |
}, | |
"type": "gauge", | |
"title": "SLI", | |
"gridPos": { | |
"x": 0, | |
"y": 0, |
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
goos: linux | |
goarch: amd64 | |
pkg: github.com/go-kit/log | |
cpu: Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz | |
BenchmarkLineBuffered/capacity:1-8 718952 1572 ns/op 96 B/op 2 allocs/op | |
BenchmarkLineBuffered/capacity:2-8 1044774 1228 ns/op 96 B/op 2 allocs/op | |
BenchmarkLineBuffered/capacity:4-8 1401778 867.3 ns/op 96 B/op 2 allocs/op | |
BenchmarkLineBuffered/capacity:8-8 1666798 699.2 ns/op 96 B/op 2 allocs/op | |
BenchmarkLineBuffered/capacity:16-8 1856240 614.9 ns/op 96 B/op 2 allocs/op | |
BenchmarkLineBuffered/capacity:32-8 2029083 561.8 ns/op 96 B/op 2 allocs/op |
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
# before | |
$ rubocop -c .rubocop.yml | |
Inspecting 7 files | |
..CCWC. | |
Offenses: | |
docker/Gemfile:6:1: C: [Correctable] Bundler/OrderedGems: Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem fluentd should appear before fluent-plugin-multi-format-parser. | |
gem 'fluentd', '1.9.0' | |
^^^^^^^^^^^^^^^^^^^^^^ |
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 | |
$streamsPath = realpath("/usr/share/red5/webapps/vod/streams"); | |
$videoFile = "$streamsPath/356a192b7913b04c54574d18c28d46e6395428ab-1312327917237_Video.flv"; | |
$audioFile = "$streamsPath/356a192b7913b04c54574d18c28d46e6395428ab-1312327917237_Audio.flv"; | |
// convert audio FLV to mp3 | |
$targetAudio = dirname(realpath($audioFile))."/audio.mp3"; | |
system("ffmpeg -y -i $audioFile -ac 2 -ab 128kb $targetAudio"); |
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
$output = iconv('UTF-8', 'ASCII//TRANSLIT', $input); |
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 | |
require 'vendor/autoload.php'; | |
use Psr\Log\LoggerInterface; | |
use Symfony\Component\EventDispatcher\EventDispatcher; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Symfony\Component\Workflow\DefinitionBuilder; | |
use Symfony\Component\Workflow\Event\Event; | |
use Symfony\Component\Workflow\Event\GuardEvent; | |
use Symfony\Component\Workflow\EventListener\AuditTrailListener; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="ci-phing-behat-test" default="dev"> | |
<!-- load variable definitions --> | |
<property file="build.properties"/> | |
<property name="behat.basedir" value="${project.basedir}/../test"/> | |
<!-- define custom tasks and types --> | |
<typedef name="args" classname="phing.behat.types.BehatArguments"/> |
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
# ************************************************************ | |
# Sequel Pro SQL dump | |
# Version 3408 | |
# | |
# http://www.sequelpro.com/ | |
# http://code.google.com/p/sequel-pro/ | |
# | |
# Host: 127.0.0.1 (MySQL 5.1.44) | |
# Database: blog_tests | |
# Generation Time: 2011-10-08 18:00:24 +0200 |
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 | |
/** | |
* php-ansi-color | |
* | |
* Original | |
* https://github.com/loopj/commonjs-ansi-color | |
* | |
* @code | |
* <?php | |
* require_once "ansi-color.php"; |
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
performance_schema = 0 | |
table_definition_cache = 400 |
NewerOlder