start new:
tmux
start new with session name:
tmux new -s myname
This gist contains various scripts for scraping metrics. Mostly useful for processing the contents of Puppet Enterprise support bundles:
sar2influx.rb
: A Ruby script that uses sadf
to turn SAR archives into InfluxDB line format. For best results, run from a Linux VM using a recent operating system. Such as Ubuntu 22.04.pdb2influx.sh
: A bash script that uses awk
and mlr
to extract command processing times from puppetdb.log
files.top-api-calls.sh
: Extracts the 10 most popular API calls from *-access.log
along with their median and max duration grouped into 30 minute periods (Puppet $runinterval
). Uses awk
and mlr
.I did not submit this to Hacker News and did not intend that this post would have high circulation but have no real problem with it being there or with it having such. I have more recent comments below. This post is from January 2020 and predates the Modular Font Editor K (MFEK) project.
I have not worked on Rust projects in quite a while, and don't know if I ever will again. I feel many crate maintainers are way too perfectionist, for example, despite all the developer hours that went into this PR, it took the effort within years to be (halfway) merged.
There's always a reason not to merge, isn't there? It would be better done with a new nightly language feature, or the function signature should have a where clause, or the documentation is not perfect. There's always a new nit to pick in the world of Ru
var fs = require("fs") | |
var ssl_options = { | |
key: fs.readFileSync('privatekey.pem'), | |
cert: fs.readFileSync('certificate.pem') | |
}; | |
var port = process.env.PORT || 3000; | |
var express = require('express'); | |
var ejs = require('ejs'); | |
var passport = require('passport') |
$stack, $draws = [], {} | |
def method_missing *args | |
return if args[0][/^to_/] | |
$stack << args.map { |a| a or $stack.pop } | |
$draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :< | |
end | |
class Array | |
def +@ |
<?php | |
// Doc Home - http://devel-m6w6.rhcloud.com/mdref/http | |
$url = 'http://php.net'; | |
// ## Simple single Get | |
$req = new \http\Client\Request('GET', $url); | |
$client = (new \http\Client()) | |
->enqueue($req) | |
->send(); |