public class HelloContext
{
private ISomething _smh ;
void Foo(string key)
{
switch(key)
{
case "A":
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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) , |
This file contains hidden or 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
| INSERT INTO "Table"("Id") select uuid_generate_v4() from public."Logs"; |
This file contains hidden or 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
| # install haproxy | |
| yum install -y haproxy | |
| # config haproxy for rabbitmq | |
| cat > /etc/haproxy/haproxy.cfg << "EOF" | |
| global | |
| log 127.0.0.1 local0 notice | |
| maxconn 10000 | |
| user haproxy |
This file contains hidden or 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
| module.exports = function(callback) { | |
| require('child_process').exec('./cursor-position.sh', function(error, stdout, stderr) { | |
| callback(error, JSON.parse(stdout)); | |
| }); | |
| } |
This file contains hidden or 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
| git pull --recurse-submodules |