Disclaimer: use under your own responsibility
docker exec -it <container> bash
/ docker exec -it <container> cmd
docker attach --sig-proxy=false <container>
# python -m venv .venv | |
# .venv\Scripts\activate | |
# pip install numpy | |
# pip install matplotlib | |
# python Disservin_SMP_scaling.py -e .\Lynx.Cli.exe -m 16 -g 256 | |
# deactivate | |
from subprocess import Popen, PIPE | |
import multiprocessing | |
import os |
docker run --rm -it -v ${PWD}:/home/Lynx ubuntu:22.04 bash |
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() |