Skip to content

Instantly share code, notes, and snippets.

View BlackYoup's full-sized avatar

Arnaud Lefebvre BlackYoup

View GitHub Profile
@BlackYoup
BlackYoup / gist:99e1bcc56fd5f9eae4e265b1f2fb7e6a
Created October 6, 2023 14:13
All available Ruby ABI have been blacklisted
❯ cave show mustache -c
* dev-ruby/mustache
cave@1696601288: [WARNING e.ebuild.cache_failure] In thread ID '2906415':
... In program cave show mustache -c:
... When finding all versions grouped by slot from packages matching dev-ruby/mustache with filter all matches:
... When generating metadata for ID 'dev-ruby/mustache-0.99.8::ruby':
... When running an ebuild command on 'dev-ruby/mustache-0.99.8::ruby':
... Could not generate cache for 'dev-ruby/mustache-0.99.8::ruby', stdout says '' and stderr says '
!!! ERROR in dev-ruby/mustache-0.99.8::ruby:
!!! In source at line 86
{
"Id": "Policy1587216857769",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1587216727444",
"Effect": "Allow",
"Action": ["s3:PutObject"],
"Resource": [
"arn:aws:s3:::arnaud-support/*",
@BlackYoup
BlackYoup / bash
Created February 16, 2022 23:06
Keycloak configuration (db + reverse proxy)
cat << EOF > ./conf/keycloak.conf
db=postgres
db-username=${POSTGRESQL_ADDON_USER}
db-password=${POSTGRESQL_ADDON_PASSWORD}
db-url=jdbc:postgresql://${POSTGRESQL_ADDON_HOST}:${POSTGRESQL_ADDON_PORT}/${POSTGRESQL_ADDON_DB}
proxy=edge
hostname=${KEYCLOAK_HOSTNAME}
# Since the migration to Quarkus, Keycloak dropped the /auth/ prefix from their routes compared to the previous versions
http-relative-path=/auth
require("express")().get("*",(_,r)=>{
console.log(process.env.PORT||1016);
r.send(`
<html>
<title>Hello</title>
<body>
<h1>Hello world</h1>
<form method="POST" action="/action">
<input type="text" name="cookie" value="<Long value here, something like 4kb would do"/>
Jan 24 16:41:17 localhost systemd[1]: Starting Docker Application Container Engine...
Jan 24 16:41:18 localhost dockerd[253]: time="2020-01-24T16:41:18.405346000Z" level=info msg="Starting up"
Jan 24 16:41:18 localhost dockerd[253]: time="2020-01-24T16:41:18.421849911Z" level=info msg="libcontainerd: started new containerd process" pid=263
Jan 24 16:41:18 localhost dockerd[253]: time="2020-01-24T16:41:18.422906190Z" level=info msg="parsed scheme: \"unix\"" module=grpc
Jan 24 16:41:18 localhost dockerd[253]: time="2020-01-24T16:41:18.422928975Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
Jan 24 16:41:18 localhost dockerd[253]: time="2020-01-24T16:41:18.422954928Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}] <nil>}" module=grpc
Jan 24 16:41:18 localhost dockerd[253]: time="2020-01-24T16:41:18.422978526Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Jan 24 16:4
FROM alpine:latest
RUN mkdir -p ~/.ssh/1
RUN mkdir -p ~/.ssh/2
RUN mkdir -p ~/.ssh/3
RUN mkdir -p ~/.ssh/4
RUN mkdir -p ~/.ssh/5
RUN mkdir -p ~/.ssh/6
RUN mkdir -p ~/.ssh/7
RUN mkdir -p ~/.ssh/8
<LifecycleConfiguration>
<Rule>
<ID>cleanup-old-artifacts</ID>
<Filter>
<Prefix></Prefix>
</Filter>
<Status>Enabled</Status>
<Expiration>
<Days>30</Days>
</Expiration>
# /tmp/bluez/tools/avinfo 00:16:94:29:6F:6F
Connecting ...
Stream End-Point #5: Audio Sink
Media Codec: Vendor Specific A2DP Codec
Vendor ID 0x0000004f
Vendor Specific Codec ID 0x0001
Vendor Specific Data: 0xf2
Vendor Specific Value (aptX)
Frequencies: 16kHz 32kHz 44.1kHz 48kHz
Channel modes: Stereo
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
I: [pulseaudio] core-util.c: Failed to acquire high-priority scheduling: No such file or directory
I: [pulseaudio] main.c: This is PulseAudio 12.0-374-g29c6-dirty
D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu
D: [pulseaudio] main.c: Compilation CFLAGS: -march=native -O2 -pipe -D_GNU_SOURCE -Wall -W -Wextra -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -fno-common -fdiagnostics-show-option -
{
"name": "grafana-5.0.1",
"version": "1.0.0",
"description": "[Grafana](https://grafana.com) [![Circle CI](https://circleci.com/gh/grafana/grafana.svg?style=svg)](https://circleci.com/gh/grafana/grafana) [![Go Report Card](https://goreportcard.com/badge/github.com/grafana/grafana)](https://goreportcard.com/report/github.com/grafana/grafana) [![codecov](https://codecov.io/gh/grafana/grafana/branch/master/graph/badge.svg)](https://codecov.io/gh/grafana/grafana) ================ [Website](https://grafana.com) | [Twitter](https://twitter.com/grafana) | [Community & Forum](https://community.grafana.com)",
"main": "",
"scripts": {
"start": "./bin/grafana-server --config=./conf/custom.ini --pidfile=./grafana-server.pid",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",