I hereby claim:
- I am guss77 on github.
- I am guss77 (https://keybase.io/guss77) on keybase.
- I have a public key whose fingerprint is 3A14 B9B7 07DF DC0E 70B1 BFB5 F04E ECD3 2769 C738
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
( | |
cat <<EOF | |
Mappings: | |
CentOSRegionImages: | |
EOF | |
curl -s 'https://wiki.centos.org/Cloud/AWS' | xmllint -html --xpath '//table[1]/tbody/tr' - | perl -nle ' | |
m|CentOS Linux (\d+)| and $version=$1; |
#!/usr/bin/ruby | |
require 'yaml' | |
require 'json' | |
require 'net/http' | |
def get_releases | |
JSON[Net::HTTP.get_response(URI.parse "https://cloud-images.ubuntu.com/locator/ec2/releasesTable").body.gsub(/,\s*\]/,"]")]["aaData"] | |
end |
#!/usr/bin/ruby | |
require 'yaml' | |
require 'json' | |
require 'net/http' | |
def get_releases | |
JSON[Net::HTTP.get_response(URI.parse "https://coreos.com/dist/aws/aws-stable.json").body.gsub(/,\s*\]/,"]")] | |
end |
package tech.greenfield.util.concurrent; | |
import java.util.concurrent.CompletableFuture; | |
import java.util.function.Consumer; | |
import java.util.function.Function; | |
public class Futures { | |
static class Thrower { | |
static Throwable except; |
import java.io.IOException; | |
import java.io.OutputStream; | |
import io.vertx.core.buffer.Buffer; | |
public class VertxBufferOutputStream extends OutputStream { | |
private Buffer buffer; | |
public BufferOutputStream() { | |
this.buffer = Buffer.buffer(); |
FROM debian:10 | |
# install Debian dependencies | |
RUN apt-get update && \ | |
apt-get install -qy subversion git gcc g++ cmake nasm pkg-config \ | |
libgmp-dev gnutls-dev libass-dev libfreetype6-dev libbluray-dev libfribidi-dev libdrm-dev libmp3lame-dev libopus-dev libtheora-dev libvorbis-dev libwebp-dev libx264-dev libx265-dev libzvbi-dev libva-dev && \ | |
rm -rf /var/lib/apt | |
# Install NV codec support | |
WORKDIR /ffmpeg |
COMPOSE := docker-compose -p demouuid | |
start: | |
$(COMPOSE) up -d | |
sleep 3 | |
while $(COMPOSE) ps | grep -q database; do \ | |
$(COMPOSE) logs 2>/dev/null| grep -q 'MySQL init process done.' && break;\ | |
$(COMPOSE) logs 2>/dev/null| grep -i error && break;\ | |
$(COMPOSE) ps | grep -q Exit && break;\ | |
done |
#!/bin/bash | |
# Based on https://docs.microsoft.com/en-us/azure/storage/common/storage-rest-api-auth | |
function GetCanonicalizedResource() { | |
local address="$1" storageAccountName="$2" | |
echo -n "/${storageAccountName}$(cut -d? -f1 <<<"$address")" | |
cut -d? -f2- <<<"$address" | tr '&' '\n' | (while IFS="=" read key val; do printf '\n%s:%s' "$key" "$val"; done) | |
} |
#include <memory> | |
#include <ranges> | |
#include <iostream> | |
class Digit { | |
unsigned char val, sevenCount; | |
std::unique_ptr<Digit> moreSignificant; | |
public: | |
Digit(unsigned char startVal) : val(startVal), sevenCount(startVal % 7) {} | |
void inc() { |