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
| require "formula" | |
| require_relative "lib/private_strategy" | |
| class Hoge < Formula | |
| homepage "https://github.com/yourcompany/hoge" | |
| url "https://github.com/yourcompany/hoge/releases/download/v0.1.0/hoge_v0.1.0_darwin_amd64.tar.gz", :using => GitHubPrivateRepositoryReleaseDownloadStrategy | |
| sha256 "6de411ff3e4b1658a413dd6181fcXXXXXXXXXXXXXXXXXXXX" | |
| head "https://github.com/yourcompany/hoge.git" | |
| version "0.1.0" |
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
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
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
| mysql56> SELECT table_name, index_name, sum(number_records) FROM information_schema.innodb_buffer_page WHERE table_name = '`d1`.`t1`' GROUP BY 1, 2; | |
| Empty set (0.04 sec) | |
| mysql56> SELECT 1 FROM d1.t1 FORCE INDEX(val); | |
| .. | |
| 10000 rows in set (0.01 sec) | |
| mysql56> SELECT table_name, index_name, sum(number_records) FROM information_schema.innodb_buffer_page WHERE table_name = '`d1`.`t1`' GROUP BY 1, 2; | |
| +------------+------------+---------------------+ | |
| | table_name | index_name | sum(number_records) | |
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
| require 'librato/metrics' | |
| require 'json' | |
| c = Librato::Metrics | |
| c.authenticate 'you@example.com', 'token' | |
| alerts = JSON.parse(c.connection.get('/v1/alerts?version=2').body)['alerts'] | |
| alert_ids = alerts.map {|a| a['id']} | |
| show_ok_alerts = true |
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
| package MySQLCasualLog; | |
| use strict; | |
| use warnings; | |
| use utf8; | |
| use DBIx::QueryLog; | |
| use Term::ANSIColor; | |
| use Text::ANSITable; |