生成ca:
#!/bin/sh
IP=$(echo $1)
echo "[req]
default_bits = 2048
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no| using System.Runtime.InteropServices; | |
| [DllImport("shell32.dll", CharSet = CharSet.Unicode)] | |
| static extern int SHGetKnownFolderPath(ref Guid rfid, uint dwFlags, IntPtr hToken, out IntPtr ppszPath); | |
| Guid downloadsFolder = new Guid("374DE290-123F-4565-9164-39C4925E467B"); | |
| int hr = SHGetKnownFolderPath(ref downloadsFolder, 0, IntPtr.Zero, out var pPath); | |
| if (hr == 0) // S_OK | |
| { |
生成ca:
#!/bin/sh
IP=$(echo $1)
echo "[req]
default_bits = 2048
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no| const easingFuncs = { | |
| linear: function (k) { | |
| return k; | |
| }, | |
| quadraticIn: function (k) { | |
| return k * k; | |
| }, | |
| quadraticOut: function (k) { | |
| return k * (2 - k); | |
| }, |
| set MSYS2_PATH_TYPE=inherit & set MSYSTEM=MINGW64 & %MSYS2_ROOT%\usr\bin\bash.exe --login -i -new_console:C:"%MSYS2_ROOT%\msys2.ico" |
| val annotationProcessing by tasks.creating(JavaCompile::class) { | |
| source = sourceSets["main"].java | |
| destinationDir = project.file("src/main/generated") | |
| classpath = configurations.compileClasspath.get() | |
| options.annotationProcessorPath = configurations.compileClasspath.get() | |
| options.compilerArgs = listOf( | |
| "-proc:only", | |
| "-processor", "io.vertx.codegen.CodeGenProcessor", | |
| "-Acodegen.output=${project.projectDir}/src/main" | |
| ) |
| import { Injectable } from '@angular/core'; | |
| import { ActivatedRouteSnapshot, CanDeactivate, RouterStateSnapshot, UrlTree } from '@angular/router'; | |
| import { Observable } from 'rxjs'; | |
| import { tap } from 'rxjs/operators'; | |
| export interface CanComponentDeactivate { | |
| canDeactivate: () => Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree; | |
| } | |
| @Injectable({ |
| // ==UserScript== | |
| // @name tieba page | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @author gwsl | |
| // @match https://tieba.baidu.com/* | |
| // @grant unsafeWindow | |
| // ==/UserScript== | |
| function t(){ |
| import lombok.extern.log4j.Log4j2; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.boot.autoconfigure.web.ResourceProperties; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.core.io.Resource; | |
| import org.springframework.web.reactive.config.ResourceHandlerRegistry; | |
| import org.springframework.web.reactive.config.WebFluxConfigurer; | |
| import org.springframework.web.reactive.resource.PathResourceResolver; | |
| import org.springframework.web.reactive.resource.ResourceResolverChain; |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.boot.autoconfigure.web.ResourceProperties; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.core.io.Resource; | |
| import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; | |
| import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; | |
| import org.springframework.web.servlet.resource.PathResourceResolver; | |
| import java.io.IOException; | |
| import java.util.Arrays; |
| import lombok.Getter; | |
| import lombok.Setter; | |
| import org.springframework.boot.context.properties.ConfigurationProperties; | |
| import org.springframework.boot.context.properties.EnableConfigurationProperties; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; | |
| import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; | |
| import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; | |
| @Configuration |