Skip to content

Instantly share code, notes, and snippets.

View maxiwu's full-sized avatar
💭
struggling with OAuth & JWT & Load balance

maxi.wu maxiwu

💭
struggling with OAuth & JWT & Load balance
View GitHub Profile
@maxiwu
maxiwu / Kodi.log
Created April 13, 2023 18:30
Kodi.log
2023-04-14 02:14:32.582 T:16160 info <general>: -----------------------------------------------------------------------
2023-04-14 02:14:32.582 T:16160 info <general>: Starting Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Windows NT x86 64-bit
2023-04-14 02:14:32.582 T:16160 info <general>: Using Release Kodi x64
2023-04-14 02:14:32.582 T:16160 info <general>: Kodi compiled 2023-03-12 by MSVC 193431937 for Windows NT x86 64-bit version 10.0 (0x0A00000B)
2023-04-14 02:14:32.582 T:16160 info <general>: Running on Windows 11 22H2, kernel: Windows NT x86 64-bit version 10.0.22621.1413
2023-04-14 02:14:32.582 T:16160 info <general>: FFmpeg version/source: 4.4.1-Kodi
2023-04-14 02:14:32.582 T:16160 info <general>: Host CPU: AMD Ryzen 7 4800H with Radeon Graphics, 16 cores available
2023-04-14 02:14:32.588 T:16160 info <general>: System has 16.0 GB of RAM installed
2023-04-14 02:14:32.588 T:16160 info <general>: Desktop Resolution: 1680x1050 32Bit at 60Hz
2023-04-14 02:14:32.588
@maxiwu
maxiwu / ggcclient.java
Created April 21, 2020 08:32
Java sample code for AWS GGC client
package com.umedia.awsiotclient.service;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import javax.annotation.PostConstruct;
import com.amazonaws.services.iot.client.AWSIotException;
@maxiwu
maxiwu / style.md
Created December 18, 2018 09:20
test .md

Onyxwifi Cloud API GitHub (pre-)release

State 1 for RESTful

Models

  • User Information
  • Device Information
  • Certificate
  • Access Token
  • Firmware Information
@maxiwu
maxiwu / pom.xml
Created December 6, 2018 08:05
eureka server pom
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.umedia</groupId>
<artifactId>clusterdemo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>clusterdemo</name>
@maxiwu
maxiwu / application.yml
Created December 6, 2018 06:40
zuul gateway yml
spring:
application:
name: zuul-gateway
server:
port: 8762
# context-path: /client
eureka:
client:
@maxiwu
maxiwu / pom.xml
Created December 6, 2018 06:32
zuul gateway pom
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>idv.maxi</groupId>
<artifactId>zuulgateway</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>zuulgateway</name>
<description>Demo project for Spring Boot</description>
public class DummySource implements SourceFunction<String> {
private static final long serialVersionUID = 3978123556403297086L;
// private static Queue<String> queue = new LinkedBlockingQueue<String>();
private Queue<String> queue;
private boolean cancel = false;
public void setQueue(Queue<String> q){
queue = q;
}
package helloworldmvc;
import Type;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
import java.util.ArrayList;
import java.util.List;