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
# WSL2 network port forwarding script v1 | |
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell, | |
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter. | |
# written by Daehyuk Ahn, Aug-1-2020 | |
# edited by Ukjin Yang, Jun-7-2022 (Windows Server 2022 also works!) | |
# Improved features: more detailed logs for Task Scheduler, saved IP check, etc. | |
If ($Args[0] -eq "list") { | |
netsh interface portproxy show v4tov4; | |
exit; |
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
# WSL2 network port forwarding script v1 | |
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell, | |
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter. | |
# written by Daehyuk Ahn, Aug-1-2020 | |
# Display all portproxy information | |
If ($Args[0] -eq "list") { | |
netsh interface portproxy show v4tov4; | |
exit; | |
} |
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
// | |
// CastPlayerViewController.swift | |
// BasicCastPlayer | |
// | |
// Copyright © 2020 Brightcove, Inc. All rights reserved. | |
// | |
import UIKit | |
import GoogleCast | |
import SnapKit |
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
files: | |
"/etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf": | |
mode: "000755" | |
owner: root | |
group: root | |
content: | | |
server { | |
listen 80; | |
gzip on; |
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 Foundation | |
extension NSData { | |
func encryptAES128(key: NSString, iv: NSString) -> NSData? { | |
return aes128(method: CCOperation(kCCEncrypt), key: key, iv: iv) | |
} | |
func decryptAES128(key: NSString, iv: NSString) -> NSData? { | |
return aes128(method: CCOperation(kCCDecrypt), key: key, iv: iv) |
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
@RunWith(SpringRunner.class) | |
@SpringBootTest | |
public class ExampleMatcherTest { | |
@Autowired | |
private ExampleRepository repository; | |
@Test | |
public void exampleTest() { | |
Child child = new Child(); |
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
@Controller | |
public class ResponseBodyExampleController3 { | |
@ResponseBody | |
@GetMapping("/") | |
public String someMethod() { | |
return "result"; | |
} | |
} |
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
@Controller | |
public class ResponseBodyExampleController2 { | |
@GetMapping("/") | |
public | |
@ResponseBody | |
String someMethod() { | |
return "result"; | |
} | |
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
@Controller | |
public class ResponseBodyExampleController1 { | |
@GetMapping("/") | |
public @ResponseBody String someMethod() { | |
return "result"; | |
} | |
} |
NewerOlder