This is updated version of https://bugzilla.mindrot.org/show_bug.cgi?id=2474
Tested under macOS Mojave 10.14.4 with Homebrew to use YubiKey 5C
# openssl version
OpenSSL 1.0.2r 26 Feb 2019
# ssh -V
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: wordpress | |
name: blog | |
namespace: default | |
spec: | |
replicas: 1 | |
selector: |
# not used, copied function body into _delegate | |
function _executables { | |
local exclude=$(compgen -abkA function | sort) | |
local executables=$( | |
comm -23 <(compgen -c) <(echo $exclude) | |
type -tP $( comm -12 <(compgen -c) <(echo $exclude) ) | |
) | |
COMPREPLY=( $(compgen -W "$executables" -- ${COMP_WORDS[COMP_CWORD]}) ) | |
} |
#!/bin/bash | |
tmpfile=$(mktemp) | |
while true; do | |
curl --silent http://10.5.5.9/gp/gpMediaList > $tmpfile | |
grep "busy" $tmpfile > /dev/null | |
if [ $? -eq 1 ]; then break; fi | |
sleep 1 | |
done |
#include <linux/bpf.h> | |
int pass(struct __sk_buff *skb) { | |
return BPF_OK; // packet continues | |
// return BPF_DROP; // packet drops | |
} |
MERGE {destination} T | |
USING ( | |
SELECT * EXCEPT(rn) | |
FROM ( | |
SELECT | |
*, | |
row_number() over (PARTITION BY {primary_keys} ORDER BY updated_at DESC) AS rn | |
FROM {source}) | |
WHERE rn = 1 | |
) S |
#!/usr/bin/env ruby | |
class String | |
def to_i_first | |
self.match(/\d+/)[0].to_i | |
end | |
def unquote_str | |
self.match(/"(.*)"/)[1] | |
end |
-- HOWTO: | |
-- after saving it, open with Script Editor (default) and run it | |
-- PREREQUISITES: | |
-- make sure your Keynote presentation is open in the background | |
set presenterNotes to "" | |
set slideNumber to 1 | |
tell application "Keynote" |
class LazyProduct | |
include Enumerable | |
def initialize(array) | |
@array = array | |
end | |
def self.from(array) | |
new(array) | |
end |
This is updated version of https://bugzilla.mindrot.org/show_bug.cgi?id=2474
Tested under macOS Mojave 10.14.4 with Homebrew to use YubiKey 5C
# openssl version
OpenSSL 1.0.2r 26 Feb 2019
# ssh -V
version: '2' | |
services: | |
db: | |
container_name: database | |
image: mariadb:10.2.22 | |
ports: | |
- "3306:3306" | |
volumes: | |
- ./db:/var/lib/mysql |