一系列常用模型的Keras实现
Multilayer Perceptron (MLP) for multi-class softmax classification
from keras.models import Sequential
import org.bson.BsonBinaryReader; | |
import org.bson.BsonBinaryWriter; | |
import org.bson.Document; | |
import org.bson.codecs.Codec; | |
import org.bson.codecs.DecoderContext; | |
import org.bson.codecs.DocumentCodec; | |
import org.bson.codecs.EncoderContext; | |
import org.bson.io.BasicOutputBuffer; | |
import java.nio.ByteBuffer; |
# Docker networking is messy and undocumented. Docker will create IP addresses and iptables at random times. | |
# This can be limited by using totally static IP addresses for network interfaces and avoiding the default network bridge. | |
# /etc/default/docker | |
# DOCKER_OPTS="--iptables=false --ipv6 --bip 172.16.0.1/16 --fixed-cidr 172.16.0.0/16 --fixed-cidr-v6 2a01:9000::/68" | |
# --bip is the host IP address of the docker0 interface | |
# --fixed-cidr is the CIDR subnet allocated to the docker0 interface (default network bridge) | |
# --fixed-cidr-v6 is the IPv6 CIDR allocated to docker0 | |
# for IPv6 split your /64 delegated subnet into /68 subnets and allocate them to each docker-compose.yml subnet: |
IPTables is the Firewall service that is available in a lot of different Linux Distributions. While modifiying it might seem daunting at first, this Cheat Sheet should be able to show you just how easy it is to use and how quickly you can be on your way mucking around with your firewall.
The following list is a great set of documentation for iptables
. I used them to compile this documentation.
sentry
SENTRY_SECRET_KEY
to random 32 char stringdocker-compose up -d
docker-compose exec sentry sentry upgrade
to setup database and create admin userdocker-compose exec sentry pip install sentry-slack
if you want slack plugin, it can be done laterdocker-compose restart sentry
9000
/** | |
* USB HID Keyboard scan codes as per USB spec 1.11 | |
* plus some additional codes | |
* | |
* Created by MightyPork, 2016 | |
* Public domain | |
* | |
* Adapted from: | |
* https://source.android.com/devices/input/keyboard-devices.html | |
*/ |
Floating serenely through a peaceful abyss, a sigh escapes; content. | |
A siren wails, you're jolted from your respite | |
/dev/xsdb1 is at 100% | |
A cacophony of alerts screech from the phone. | |
Upset is the fragile balance, failure cascades. | |
Was only a matter of time. | |
Get some coffee. | |
All you ping seems to crumble, machine after machine fall; a massacre of uptime. |
!
.
$
%
#
-
?
`
lol
Make a POST with something like the following body to "http://strawpoll.me/api/v2/polls" | |
{ | |
"title": "Poll title", | |
"options":[ | |
"Option #1", | |
"Option #2", | |
"Option #3" | |
], | |
"multi": true, |
package com.comphenix.example; | |
import java.util.Map; | |
import org.bukkit.Bukkit; | |
import org.bukkit.Location; | |
import org.bukkit.Material; | |
import org.bukkit.block.Block; | |
import org.bukkit.block.BlockState; | |
import org.bukkit.entity.Player; | |
import org.bukkit.event.EventHandler; |