I hereby claim:
- I am seeekr on github.
- I am seeekr (https://keybase.io/seeekr) on keybase.
- I have a public key whose fingerprint is 7551 6CEC 6BBF CBC4 EACD 5602 7D16 0A7D B3C0 C44D
To claim this, I am signing this object:
From 1531e3ed5393f28e1bcf8ef275cd6df0dbd1cefe Mon Sep 17 00:00:00 2001 | |
From: Denis Andrejew <da.colonel@gmail.com> | |
Date: Thu, 25 Feb 2016 14:42:55 +0100 | |
Subject: [PATCH] fixing shariff's custom post handling logic | |
--- | |
shariff.php | 18 ++++++++++++------ | |
1 file changed, 12 insertions(+), 6 deletions(-) | |
diff --git a/shariff.php b/shariff.php |
I hereby claim:
To claim this, I am signing this object:
defmodule Confix do | |
defmacro __using__(app: app_name) do | |
quote do | |
import unquote(__MODULE__), only: :macros | |
@confix_app unquote(app_name) | |
end | |
end | |
defmacro cfg(key, type \\ :string) do |
Verifying my Blockstack ID is secured with the address 1FBLBQvNBJAovcSncxafDXBpWPd2rgRSCc https://explorer.blockstack.org/address/1FBLBQvNBJAovcSncxafDXBpWPd2rgRSCc |
{"http://localhost:8585":1} |
<dependency> | |
<groupId>org.apache.tomcat</groupId> | |
<artifactId>tomcat-jdbc</artifactId> | |
<version>7.0.27</version> | |
</dependency> |
package com.denisandrejew.util; | |
import com.google.gson.*; | |
import lombok.experimental.var; // if java < 10 | |
import java.lang.reflect.Type; | |
public class GsonEnumByOrdinalSerializer<T extends Enum> implements JsonSerializer<T>, JsonDeserializer<T> { | |
@Override | |
public T deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException { |
#!/usr/bin/env bash | |
docker_containerinfo() { | |
local taskid=$(docker service ps -f desired-state=running -q $1) | |
[[ -n "$taskid" ]] || { echo "no running task for service $1" >&2; return 1; } | |
local containerinfo=($(docker inspect --format '{{.NodeID}} {{.Status.ContainerStatus.ContainerID}}' $taskid)) | |
local host=$(docker node ls -f id="${containerinfo[0]}" --format '{{.Hostname}}') | |
echo "$host ${containerinfo[1]}" | |
} |
#!/usr/bin/env bash | |
set -euo pipefail | |
svc=$1 | |
replicas () { | |
docker service ls -f name=$svc --format '{{.Replicas}}' | |
} |
#!/bin/sh | |
# replace with whatever your additional device is called | |
# /dev/sda should be where your CoreOS install lives right now | |
newdevice="/dev/sdb" | |
# 0 or 1 | |
raidtype="0" | |
# make sure to download the single-partition.layout file as well |