apparmorのポリシー(mysql-serverパッケージに入ってる/etc/apparmor.d/usr.sbin.mysqld
)が生きていて、systemdがmariadbの起動を検知できておらず、systemctl stop
相当の処理がかかったため。
これはそもそも恒久対応ではなかった。
require "hexapdf" | |
in1 = HexaPDF::Document.open("aaa.pdf") | |
in2 = HexaPDF::Document.open("bbb.pdf") | |
out = HexaPDF::Document.new | |
[in1.pages.to_a, in2.pages.to_a.reverse].transpose.flatten.each do |page| | |
out.pages << out.import(page) | |
end |
/** | |
* Shows how to restrict access using the HTTP "Basic" schema. | |
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication | |
* @see https://tools.ietf.org/html/rfc7617 | |
* | |
* A user-id containing a colon (":") character is invalid, as the | |
* first colon in a user-pass string separates user and password. | |
*/ | |
const BASIC_USER = "user"; | |
const BASIC_PASS = "password"; |
package main | |
import ( | |
"bytes" | |
"compress/flate" | |
"encoding/json" | |
"fmt" | |
"io" | |
"net/http" | |
"os" |
Start-Process powershell -Verb runas -ArgumentList "-Command", "bcdedit /set '{fwbootmgr}' default '{a102a5f4-29cc-11eb-a342-806e6f6e6963}'; pause" | |
# Start-Process powershell -Verb runas -ArgumentList "-Command", "bcdedit /set '{fwbootmgr}' bootsequence '{a102a5f4-29cc-11eb-a342-806e6f6e6963}'; pause" |
FROM archlinux:base-devel | |
RUN pacman -Sy --noconfirm --needed reflector | |
RUN reflector --country Japan --protocol http --sort rate --save /etc/pacman.d/mirrorlist | |
FROM archlinux:base-devel | |
COPY --from=0 /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist | |
RUN printf '[sekai67]\nSigLevel = Optional\nServer = https://sekai67.github.io/aur/$arch/' >> /etc/pacman.conf | |
RUN pacman -Syu --noconfirm --needed pacman-contrib nano git | |
RUN sed -i "s/EUID == 0/0/g" /usr/bin/makepkg |
#!/bin/sh | |
GITHUB_USER= | |
GITHUB_TOKEN= | |
GITHUB_REPO= | |
URL="https://${GITHUB_USER}:${GITHUB_TOKEN}@api.github.com/repos/${GITHUB_REPO}/deployments" | |
for id in $(curl "${URL}" | jq .[].id); do | |
curl "${URL}/${id}/statuses" -XPOST --data '{"state":"inactive"}' -H "Accept: application/vnd.github.ant-man-preview+json" |
package main | |
import ( | |
"log" | |
"net/http" | |
"os/exec" | |
"github.com/kaz/patchwork" | |
"github.com/labstack/echo/v4" | |
) |
macro_rules! read { | |
() => {{ | |
let mut buf = String::new(); | |
std::io::stdin().read_line(&mut buf).unwrap(); | |
buf | |
}}; | |
( Vec<$t:ty> ) => { | |
read!() | |
.trim() | |
.split_whitespace() |
package main | |
import ( | |
"bytes" | |
"crypto/sha1" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/asn1" | |
"encoding/hex" | |
"encoding/pem" |