This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Welcome to Cloudflare Workers! This is your first worker. | |
* | |
* - Run "npm run dev" in your terminal to start a development server | |
* - Open a browser tab at http://localhost:8787/ to see your worker in action | |
* - Run "npm run deploy" to publish your worker | |
* | |
* Learn more at https://developers.cloudflare.com/workers/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JafTest { | |
public static void main(String[] args) throws InterruptedException { | |
FFmpeg.atPath() | |
.addInput(UrlInput.fromUrl("这里是flv地址")) | |
.setLogLevel(LogLevel.INFO) | |
.setOverwriteOutput(true) | |
.addOutput(UrlOutput.toUrl("/tmp/test.flv")) | |
.addOutput(FrameOutput | |
.withConsumer( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const superagent = require("superagent"); | |
const cheerio = require("cheerio"); | |
const https = require("https"); | |
const fs = require("fs"); | |
const path = require("path"); | |
function getImage(url, dest, cb) { | |
https.get(url, function (res) { | |
const file = fs.createWriteStream(dest) | |
res.pipe(file); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mirrors: | |
registry.cn-hongkong.aliyuncs.com: | |
endpoint: | |
- https://registry.cn-hongkong.aliyuncs.com | |
configs: | |
registry.cn-hongkong.aliyuncs.com: | |
auth: | |
username: username | |
password: password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mirrors: | |
registry.cn-hongkong.aliyuncs.com: | |
endpoint: | |
- https://registry.cn-hongkong.aliyuncs.com | |
configs: | |
registry.cn-hongkong.aliyuncs.com: | |
auth: | |
username: username | |
password: password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mian; | |
import org.apache.catalina.connector.Connector; | |
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
@Configuration | |
public class EmbeddedTomcatConfiguration { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Xms256M -Xmx256M -server -XX:+UseNUMA -XX:+UseParallelGC -XX:MaxGCPauseMillis=50 -XX:+UseAdaptiveSizePolicy -XX:+AggressiveOpts -Dvertx.disableMetrics=true -Dvertx.disableH2c=true -Dvertx.disableWebsockets=true -Dvertx.flashPolicyHandler=false -Dvertx.threadChecks=false -Dvertx.disableContextTimings=true -Dvertx.disableTCCL=true -Dvertx.disableHttpHeadersValidation=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure you grab the latest version | |
curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip | |
# Unzip | |
unzip protoc-3.2.0-linux-x86_64.zip -d protoc3 | |
# Move protoc to /usr/local/bin/ | |
sudo mv protoc3/bin/* /usr/local/bin/ | |
# Move protoc3/include to /usr/local/include/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: grafana-config | |
data: | |
grafana.ini: | | |
##################### Grafana Configuration Example ##################### | |
# | |
# Everything has defaults so you only need to uncomment things you want to | |
# change |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: admin | |
annotations: | |
rbac.authorization.kubernetes.io/autoupdate: "true" | |
roleRef: | |
kind: ClusterRole | |
name: cluster-admin | |
apiGroup: rbac.authorization.k8s.io |
NewerOlder