Skip to content

Instantly share code, notes, and snippets.

View dannykopping's full-sized avatar

Danny Kopping dannykopping

View GitHub Profile
@dannykopping
dannykopping / SLI-panel.json
Created August 21, 2023 12:18
SLI-panel.json
{
"datasource": {
"uid": "mimir",
"type": "prometheus"
},
"type": "gauge",
"title": "SLI",
"gridPos": {
"x": 0,
"y": 0,
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
# 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'
^^^^^^^^^^^^^^^^^^^^^^
<?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;
@dannykopping
dannykopping / ansi-color.php
Created June 15, 2016 14:17 — forked from superbrothers/ansi-color.php
ANSI color terminal output module for php
<?php
/**
* php-ansi-color
*
* Original
* https://github.com/loopj/commonjs-ansi-color
*
* @code
* <?php
* require_once "ansi-color.php";
performance_schema = 0
table_definition_cache = 400
[
["n", "Next unreviewed file", "nextUnreviewedFile()"],
["p", "Previous unreviewed file", "prevUnreviewedFile()"],
[null, "Next file", "nextFile()"],
[null, "Previous file", "prevFile()"],
["shift+n", "Next changed file", "nextChangedFile()"],
["shift+p", "Previous changed file", "prevChangedFile()"],
["x", "Mark file as reviewed / unreviewed", "toggleCurrentFileReviewed()"],
["j", "Next unreplied comment", "nextUnrepliedDiscussion()"],
["k", "Previous unreplied comment", "prevUnrepliedDiscussion()"],
The pang, the lust
for the murky mist;
it shall be sorely missed.
A life without cigarettes
- eternal life attained.
Oh goody.
Without those minutes of smoky mirth,
activities seem devoid of punctuation.
@dannykopping
dannykopping / gist:3841025
Created October 5, 2012 17:04
php composer.phar install - issues
Danny-Koppings-MacBook-Pro:spore-test dannykopping$ php composer.phar install
Loading composer repositories with package information
Installing dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for dannykopping/spore dev-master -> satisfiable by dannykopping/spore dev-master.
- dannykopping/spore dev-master requires dannykopping/docblock dev-master -> no matching package found.
Potential causes:
<?xml version="1.0" encoding="UTF-8"?>
<project name="test-deploy-ci" default="default">
<target name="default">
<if>
<isset property="value.entered"/>
<then>
<echo msg="You entered: ${value.entered}"/>
</then>