Чтобы добавлять сообщения и комментарии, .

@otakuSiD:
otakuSiD

get current version of deployed by docker application on aws (hard way)

on linux host with access to ECR
```
# get login string
aws ecr get-login --registry-ids ECR-ACCOUNT-ID --region ECR-REGION
# get latest deployed image
docker pull ECR-ACCOUNT-ID.dkr.ecr.ECR-REGION.amazonaws.com/ECR-NAME:latest
# run and verify
docker run -it ECR-ACCOUNT-ID.dkr.ecr.ECR-REGION.amazonaws.com/ECR-NAME:latest bash
# list ontainers to get container ID
docker ps -a
# docker cp CONTAINER-ID:/file/path/within/container /host/path/target
# create APP-NAMEzip with application files
zip -r /tmp/APP-NAME /tmp/APP-NAME
```

on win host
```
# register environment key file in putty
# run copy command
pscp -r ec2-user@LINUX-HOST-DNS:/tmp/APP-NAME.zip d:\
```

@otakuSiD:
otakuSiD

посмотреть версию dll`ки

`strings file.exe | egrep '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'`

@otakuSiD:
otakuSiD

simple python http server to dump request headers

gist.github.com

@otakuSiD:
otakuSiD

get list of installed frameworks

stackoverflow.com

@otakuSiD:
otakuSiD

www.jonathantneal.com/blog/understand-the-favicon/

@otakuSiD:
otakuSiD

how to generate small random string

require "securerandom"
SecureRandom.hex(5)

@otakuSiD:
otakuSiD

reduce time during restoring nuguet packages on temporary build agents (f.e. on docker)

DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
NUGET_XMLDOC_MODE=skip


donovanbrown.com

@otakuSiD:
otakuSiD

Using dotnet watch test for continuous testing with .NET Core and XUnit.net


hanselman.com

@otakuSiD:
otakuSiD

The name of the project, used for the assembly name as well as the name of the package. The top level folder name is used if this property is not specified.
docs.microsoft.com


Если вы собираете проект и не можете найти нужные ассембляйки — скорее всего они на месте, но под другим именем

@otakuSiD:
otakuSiD

How do I parse command line arguments in bash?

stackoverflow.com

@otakuSiD:
otakuSiD

drop connections and drop database script for PostgreSQL

REVOKE CONNECT ON DATABASE #{dbname} FROM public;
ALTER DATABASE #{dbname} CONNECTION LIMIT 0;
SELECT pg_terminate_backend(pid)
FROM pg_stat_activity
WHERE pid <> pg_backend_pid()
AND datname='#{dbname}';
DROP DATABASE #{dbname};

stackoverflow.com

@otakuSiD:
otakuSiD

Suspend and Resume Processes Using the AWS CLI

docs.aws.amazon.com

aws autoscaling suspend-processes --auto-scaling-group-name ASGNAME --profile dev --region us-east-1 --output text
aws autoscaling resume-processes --auto-scaling-group-name ASGNAME --profile dev --region us-east-1 --output text

@otakuSiD:
otakuSiD

Using Let’s Encrypt for free automated SSL certificates


codeproject.com

@otakuSiD:
otakuSiD

Приставка Dendy: Как Виктор Савюк придумал первый в России поп-гаджет


secretmag.ru

@otakuSiD:
otakuSiD

How to run a dotnet windows service as a console app


alastaircrabtree.com

@otakuSiD:
otakuSiD

Running .NET Core apps on multiple frameworks and What the Target Framework Monikers (TFMs) are about


blogs.msdn.microsoft.com

@otakuSiD:
otakuSiD

use -B -N switches to cleanup output from ASCII tables and column names


sites.google.com

@otakuSiD:
otakuSiD

Using gems with Chef

sethvargo.com

@otakuSiD:
otakuSiD

how to change website binding in powershell

Set-WebBinding -Name 'Default Web Site' -BindingInformation "*:80:" -PropertyName Port -Value 8080

@otakuSiD:
otakuSiD

install latest node.js on AWS Linux

curl --silent --location rpm.nodesource.com | bash —
yum -y install nodejs
npm install npm -g


nodejs.org