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
| name: Release | |
| on: | |
| workflow_dispatch: | |
| env: | |
| DOTNET_VERSION: 8.0.x | |
| jobs: |
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
| # 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 |
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 run --rm -it -v ${PWD}:/home/Lynx ubuntu:22.04 bash |
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
| SET WEBHOOK_URL=<your_webhook_url> | |
| curl ^ | |
| -H "Content-Type: application/json" ^ | |
| -d "{\"content\": \"<your message>\"}" ^ | |
| %WEBHOOK_URL% |
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
| 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: |
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
| namespace $rootnamespace$; | |
| public class $itemname$ : BaseDay | |
| { | |
| private readonly List<string> _input; | |
| public $itemname$() | |
| { | |
| _input = ParseInput(); | |
| } |
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
| $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" |
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
| # C# | |
| public static string DateId() => DateTime.Now.ToString("yyyy'-'MM'-'dd'__'HH'_'mm'_'ss"); | |
| # Bash | |
| date +%Y-%m-%d__%H_%M_%S |
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
| netsh wlan show profile <wifi_name> key=clear |
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
| <Query Kind="Program"> | |
| <NuGetReference>Octokit</NuGetReference> | |
| <Namespace>Octokit</Namespace> | |
| </Query> | |
| void Main() | |
| { | |
| const string packageName = "MyPackage"; | |
| var searchResult = new RepositoryFinder() |
NewerOlder