public class HelloContext
{
private ISomething _smh ;
void Foo(string key)
{
switch(key)
{
case "A":
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
services.AddControllers(). (options => | |
{ | |
options.SerializerSettings.DateTimeZoneHandling = DateTimeZoneHandling.Local; | |
}); |
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
npm config set proxy http://usr:[email protected]:8080 | |
npm config set https_proxy http://usr:[email protected]:8080 |
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
tzutil /s "West Asia Standard Time" | |
How to force WIN 10 to sync with time server | |
net stop w32time | |
w32tm /unregister | |
w32tm /register | |
net start w32time | |
w32tm /resync /force |
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
docker run -d --name jaeger -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 -p 5775:5775/udp -p 6831:6831/udp -p 6832:6832/udp -p 5778:5778 -p 16686:16686 -p 14268:14268 -p 14250:14250 -p 9411:9411 jaegertracing/all-in-one:1.22 |
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 ip = HttpContext.Connection.RemoteIpAddress.ToString(); | |
var agent = HttpContext.Request.Headers["User-Agent"].ToString(); | |
var url = HttpContext.Request.GetDisplayUrl(); |
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
openapi-generator-cli generate -i http://localhost:3001/docs-json --generator-name typescript-axios -o /out --additional-properties=useSingleRequestParameter=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
docker pull grafana/grafana | |
docker run -d --name=grafana -p 3000:3000 grafana/grafana |
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
sudo yum install epel-release | |
sudo yum install nginx | |
sudo yum install firewalld | |
sudo firewall-cmd --permanent --zone=public --add-service=http | |
sudo firewall-cmd --permanent --zone=public --add-service=https | |
sudo firewall-cmd --reload | |
sudo systemctl enable nginx |
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
/* | |
U - Upper case | |
L - Lower case | |
A - Alphanumeric | |
X - Alphanumeric with upper case alphabets. | |
P - Printable characters only | |
*/ | |
select | |
dbms_random.string('L', 20), | |
dbms_random.string('U', 20) , |