Disclaimer: use under your own responsibility
docker exec -it <container> bash
/ docker exec -it <container> cmd
docker attach --sig-proxy=false <container>
SET WEBHOOK_URL=<your_webhook_url> | |
curl ^ | |
-H "Content-Type: application/json" ^ | |
-d "{\"content\": \"<your message>\"}" ^ | |
%WEBHOOK_URL% |
Based on https://blog.jjhayes.net/wp/2020/09/03/open-source-heic-to-jpg-conversion/ | |
1. Download ImageMagick (portable editions available) | |
https://imagemagick.org/script/download.php | |
2. Extract the magick executable | |
3. Move the directory with your .heic pictures at the same level of the executable | |
4. Execute the conversion by: |
namespace $rootnamespace$; | |
public class $itemname$ : BaseDay | |
{ | |
private readonly List<string> _input; | |
public $itemname$() | |
{ | |
_input = ParseInput(); | |
} |
$projectName = "" | |
mkdir src && cd src | |
dotnet new classlib -n "$projectName" | |
dotnet new webapi -n "$projectName.Api" | |
cd .. | |
mkdir tests && cd tests | |
dotnet new xunit -n "$projectName.Test" | |
cd .. | |
dotnet new sln -n "${projectName}Solution" |
# C# | |
public static string DateId() => DateTime.Now.ToString("yyyy'-'MM'-'dd'__'HH'_'mm'_'ss"); | |
# Bash | |
date +%Y-%m-%d__%H_%M_%S |
netsh wlan show profile <wifi_name> key=clear |
<Query Kind="Program"> | |
<NuGetReference>Octokit</NuGetReference> | |
<Namespace>Octokit</Namespace> | |
</Query> | |
void Main() | |
{ | |
const string packageName = "MyPackage"; | |
var searchResult = new RepositoryFinder() |
$packageToFind = "Xxxxx" | |
$found = (cat .\Project.csproj | Where { $_.Contains($packageToFind) }) -match '\d*\.\d*\.\d*' | |
if ($found) { | |
$packageVersion = $matches[0] | |
Write-Host "Package version for ${packageToFind}: $packageVersion" | |
} | |
else{ | |
Write-Host "Package version for ${packageToFind} not found" | |
} |
{ | |
"runtime": "NetCore31", | |
"defaultVariables": null, | |
"documentGenerator": { | |
"aspNetCoreToOpenApi": { | |
"project": null, | |
"msBuildProjectExtensionsPath": null, | |
"configuration": null, | |
"runtime": null, | |
"targetFramework": null, |