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
Level █████▋░░░░░░░░░░░░░░░Lv.8/27% | |
Coding ████▉░░░░░░░░░░░░░░░░5000/1170 | |
Java ████▉░░░░░░░░░░░░░░░░5000/1170 | |
---------------------------------------- | |
https://codestats.net/users/chocotan |
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
🥇 瑶琴【少司命】 - 少司命 · 2 plays | |
🥈 Love Potion - 鎖那/なゆごろう · 2 plays | |
🥉 拾繁花一梦 - Pig小优 · 2 plays | |
花束 - WHITE-LIPS · 1 plays | |
比翼の羽根 - eufonius · 1 plays |
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
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import org.springframework.beans.FatalBeanException; | |
import org.springframework.beans.factory.support.BeanDefinitionRegistry; | |
import org.springframework.beans.factory.support.GenericBeanDefinition; | |
import org.springframework.boot.bind.PropertiesConfigurationFactory; | |
import org.springframework.context.EnvironmentAware; |
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
$data="这里是请求内容"; | |
$key="这里是key"; | |
$data_digest = base64_encode(md5($data+$key, TRUE)); | |
echo $data_digest; |
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
var checkBytes = Encrypt.GetMd5HashBytes(data + key, encoding); | |
var dataDigest = Convert.ToBase64String(checkBytes); |
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 ResourceOwnerAuthenticationProvider implements AuthenticationProvider { | |
private String apiEndpoint; | |
private String clientId; | |
private String accessTokenUri; | |
private String clientSecret; | |
private List<String> scope; | |
@Override |
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
//原来的业务代码: | |
return yourService.exec(params); | |
//改成: | |
return new ServiceCommand(yourService, params).execute(); | |
public class ServiceCommand extends HystrixCommand{ | |
yourService; |
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
#!/bin/bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin | |
export PATH | |
#定义变量 | |
#授权文件自动生成url | |
APX=http://soft.91yun.org/soft/serverspeeder/apx1.php | |
#安装包下载地址 | |
INSTALLPACK=http://soft.91yun.org/soft/serverspeeder/91yunserverspeeder.tar.gz |
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
@Autowired | |
@Output(OUTPUT) | |
private MessageChannel messageChannel; | |
@Value("${message}") | |
private String message; | |
@Description("Post new reservations using Spring Cloud Stream") | |
@RequestMapping(method = POST) | |
public void acceptNewReservations(@RequestBody Reservation r) { |
NewerOlder