Skip to content

Instantly share code, notes, and snippets.

Avatar

Robin H. Johnson robbat2

View GitHub Profile
View python-upgrade-weirdness.txt
gadwall /home/robbat2 # qlist -ISUC |grep -i -e sys-apps/portage -e /requests -e /cryptography -e gemato -e pyopenssl -e urllib3
app-portage/gemato:0 gpg python_targets_python3_6 tools
dev-python/cryptography:0 python_targets_python3_6
dev-python/pyopenssl:0 python_targets_python3_6
dev-python/requests:0 python_targets_python3_6 ssl
dev-python/urllib3:0 python_targets_python3_6
sys-apps/portage:0 ipc native-extensions python_targets_python3_6 rsync-verify xattr
View weird-ebuild-failure
pitta ~ # FEATURES='-ipc-sandbox -sandbox -mount-sandbox -network-sandbox -pid-sandbox -usersandbox -userpriv -sfperms -strict' ebuild --debug --debug /var/db/repos/gentoo/sys-apps/sandbox/sandbox-2.20.ebuild package qmerge
>>> Not marked as unpacked; recreating WORKDIR...
+ true
+ __qa_source /var/db/repos/gentoo/profiles/default/linux/amd64/17.1/profile.bashrc
++ shopt
+ local 'shopts=autocd off
assoc_expand_once off
cdable_vars off
cdspell off
checkhash off
View email-gravatar-hover.lua
local crypto = require("crypto")
function filter_open(email, page)
buffer = ""
hexdigest = crypto.digest("md5", email:sub(2, -2):lower())
end
function filter_close()
html("<span class='gravatar'><img class='inline' src='//www.gravatar.com/avatar/" .. hexdigest .. "?s=13&amp;d=retro' /><img class='onhover' src='//www.gravatar.com/avatar/" .. hexdigest .. "?s=128&amp;d=retro' /></span>" .. buffer)
return 0
View digicert-tool.py
#!/usr/bin/python3
# Utility script for interfacing with DigiCert Wildcard API
# Copyright 2012-2013 Robin H Johnson <robbat2@gentoo.org>
# Licensed under the BSD-3 license
# http://opensource.org/licenses/BSD-3-Clause
import json
import urllib.request, urllib.parse, urllib.error
import urllib.request, urllib.error, urllib.parse
import M2Crypto.X509
import re
@robbat2
robbat2 / gist:bb4277866635bcdb240cce10d9a3e401
Created Aug 26, 2020
Gentoo cafepress store 2006-2015 commission export
View gist:bb4277866635bcdb240cce10d9a3e401
2006-01 166.2
2006-02 217.8
2006-03 604.45
2006-04 379.4
2006-05 431.4
2006-06 384.4
2006-07 341.9
2006-08 354.8
2006-09 311.65
2006-10 440.45
View gist:122f82571d8ddbcdd7a8d1795d965695
$ httpstat "https://bugs.gentoo.org/show_bug.cgi?id=717442"
Connected to 2607:fcc0:4:ffff::4:443 from 2001:569:(redacted)
HTTP/1.1 200 OK
Date: Tue, 21 Apr 2020 18:28:12 GMT
Server: Apache
Content-security-policy: frame-ancestors 'self'
Strict-transport-security: max-age=15768000; includeSubDomains
X-content-type-options: nosniff
View gist:d89e7ab92d416a15945a34f55a207df1
diff --git app-admin/consul-template/consul-template-0.23.0.ebuild app-admin/consul-template/consul-template-0.23.0.ebuild
index b3ef61e527e5..b9f129f1c0fe 100644
--- app-admin/consul-template/consul-template-0.23.0.ebuild
+++ app-admin/consul-template/consul-template-0.23.0.ebuild
@@ -4,45 +4,45 @@
EAPI=7
EGO_VENDOR=(
- "github.com/BurntSushi/toml v0.3.1"
- "github.com/armon/go-metrics ec5e00d3c878b2a97bbe0884ef45ffd1b4f669f5"
View gist:52ec1e436752461a14aa015ad133f35f
$ gpg --list-keys 885889D6C0C475C4D0DDFA00EEAFED89024C043D ; for i in {motmot,kookaburra,trogan}.keys.gentoo.org ; do echo == $i ; gpg --keyserver hkps://${i}/ --recv 885889D6C0C475C4D0DDFA00EEAFED89024C043D ; done ;
pub rsa4096/0xEEAFED89024C043D 2015-03-09 [C]
885889D6C0C475C4D0DDFA00EEAFED89024C043D
uid [ unknown] Yury German (Gentoo Dev Key) <blueknight@gentoo.org>
uid [ unknown] Yury German <yury@cozydot.com>
uid [ unknown] Yury German <yury@yuryweb.com>
uid [ unknown] Yury German <yury@technologysecure.com>
uid [ unknown] Yury German <blueknight@technologysecure.com>
uid [ unknown] Yury German (Main Personal) <ygerman@gmail.com>
sub rsa2048/0x5E37BAE2B7C66668 2020-03-14 [S]
View gist:91a6d925cacf01d314a43d36e8a2f227
serial 03b7c990647329ce8ea66792a07754fef3b6 32979562 d24e540a12fd3704ba3c156b55eacaae0d94bccbeabd2f2839d403bda39735a5 names: [*.libraries.coop libraries.coop] missing CAA checking results for *.libraries.coop at 2020-02-04 03:48:00.238615545 +0000 UTC
serial 03126e3b3716abc35186bea6b5fc977d04ba 53235319 180eb14ece37c15353c3212f01759e28fe56f87a0a469c47773ad313bd6fa4c1 names: [accessiblepublishing.ca www.accessiblepublishing.ca] missing CAA checking results for accessiblepublishing.ca at 2020-01-02 13:00:08.806977358 +0000 UTC
serial 03178377ce72ddbd5e80bd7a92cae3cc5ad4 53235319 2ad68543434a1ec62f94ef59b48f27a4535dde7a517bb66dc489926b729cb77e names: [bcsrc.ca www.bcsrc.ca] missing CAA checking results for bcsrc.ca at 2020-01-02 13:00:32.312586365 +0000 UTC
serial 031c37b7cd33607465ee17626bd7281bd366 53235319 4d4e7ee63d43a08810a07c106d1fec9b45978448a0dfae020da6e6c507f81e18 names: [librarytoolshed.ca www.librarytoolshed.ca] missing CAA checking results for librarytoolshed.ca at 2020-01-02 13:01:23.792267056 +0000
View cli-0.5.5.ebuild
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit bash-completion-r1 flag-o-matic go-module
EGO_SUM=(
"github.com/AlecAivazis/survey/v2 v2.0.4 h1:qzXnJSzXEvmUllWqMBWpZndvT2YfoAUzAMvZUax3L2M="
"github.com/AlecAivazis/survey/v2 v2.0.4/go.mod h1:WYBhg6f0y/fNYUuesWQc0PKbJcEliGcYHB9sNT3Bg74="
"github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ="