in application.properties add:
spring.data.rest.basePath=/api- or -
in application.yml add:
| FLOAT %{INT}\.[0-9]+ | |
| GC_TAG [^)]+ | |
| GC_TYPE [a-z-]+ | |
| GC_MEMORY_UNIT K|M|G | |
| JVMGCLOG %{TIMESTAMP_ISO8601:logdate}: %{FLOAT}: \[GC( %{GC_TYPE})?( \(%{GC_TAG}\))* ?( %{INT:gc_memory_before:int}%{GC_MEMORY_UNIT:gc_memory_before_unit}->%{INT:gc_memory_after:int}%{GC_MEMORY_UNIT:gc_memory_after_unit}\(%{INT}%{GC_MEMORY_UNIT}\))?, %{FLOAT:gc_duration:float} secs\] | |
| JVM_GC_STOPPED_TIME %{TIMESTAMP_ISO8601:logdate}: %{FLOAT}: Total time for which application threads were stopped: %{FLOAT:gc_app_stopped:float} seconds, Stopping threads took: %{FLOAT:gc_stopping_took:float} seconds |
| input { | |
| syslog { | |
| type => "haproxy-access" | |
| port => 5000 | |
| } | |
| log4j { | |
| mode => "server" | |
| host => "0.0.0.0" | |
| port => 3456 | |
| type => "zookeeper" |
| <html> | |
| <head lang="en"> | |
| <meta charset="UTF-8"> | |
| <title>VM Web Console</title> | |
| <!-- common js/css lib --> | |
| <link href="css/wmks-all.css" rel="stylesheet" type="text/css" /> | |
| <link href="css/jquery-ui.css" rel="stylesheet" type="text/css" /> | |
| <script src="lib/jquery-1.8.3.min.js"></script> | |
| <script src="lib/jquery-ui-1.8.16.min.js"></script> |
| # Use envFrom to load Secrets and ConfigMaps into environment variables | |
| apiVersion: apps/v1beta2 | |
| kind: Deployment | |
| metadata: | |
| name: mans-not-hot | |
| labels: | |
| app: mans-not-hot | |
| spec: | |
| replicas: 1 |
| #!/bin/sh | |
| # OUTDATED: please refer to the link below for the latest version: | |
| # https://github.com/rancherlabs/support-tools/blob/master/extended-rancher-2-cleanup/extended-cleanup-rancher2.sh | |
| docker rm -f $(docker ps -qa) | |
| docker volume rm $(docker volume ls -q) | |
| cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico /opt/rke" | |
| for dir in $cleanupdirs; do | |
| echo "Removing $dir" | |
| rm -rf $dir | |
| done |
You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile in an empty directory with the following content:
We did it! We broke gist.github.com ;) So head over to the new home! Thank you all!
2021.10.20: https://github.com/AveYo/MediaCreationTool.bat now open for interaction
Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 10 / 11 deployment automation tool as well!
| from functools import reduce | |
| from PIL import Image | |
| import requests | |
| # 计算pHash(只需要三行): | |
| def phash(img): | |
| img = img.resize((8, 8), Image.ANTIALIAS).convert('L') | |
| avg = reduce(lambda x, y: x + y, img.getdata()) / 64. | |
| return reduce( | |
| lambda x, y: x | (y[1] << y[0]), |