git archive --format=tar.gz -o /tmp/my-repo.tar.gz --prefix=my-repo/ master
More detailed version: https://til.simonwillison.net/git/git-archive
**EU Server scripts** | |
apt-get update -y && apt-get upgrade -y | |
apt install curl -y | |
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh) | |
-------------------------------------------------------------- | |
**Iran Server scripts** |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Http; | |
using Microsoft.Extensions.Options; | |
using Polly; | |
using Prometheus; | |
var services = new ServiceCollection(); | |
services.AddSingleton<IHttpMessageHandlerBuilderFilter, DefaultHttpMessageHandlerBuilderFilter>(); |
name: Format check on pull request | |
on: pull_request | |
jobs: | |
dotnet-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
// Use New-Guid for creating custom profiles | |
// https://github.com/microsoft/terminal/blob/master/doc/cascadia/SettingsSchema.md | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
#!/bin/sh | |
aria2c --dir=./ --input-file=urls.txt --max-concurrent-downloads=1 --connect-timeout=60 --max-connection-per-server=16 --split=16 --min-split-size=1M --human-readable=true --download-result=full --file-allocation=none | |
date | |
# Now create this file in the same directory and paste all urls in it: urls.txt | |
git archive --format=tar.gz -o /tmp/my-repo.tar.gz --prefix=my-repo/ master
More detailed version: https://til.simonwillison.net/git/git-archive
var errorList = ModelState | |
.Where(x => x.Value.Errors.Count > 0) | |
.ToDictionary( | |
kvp => kvp.Key, | |
kvp => kvp.Value.Errors.Select(e => e.ErrorMessage).ToArray() | |
); |