پنل تحت وب مدیریت V2ray و ساخت کاربر و مدیریت سرور
mkdir x-ui && cd x-ui
docker run -itd --network=host \
-v $PWD/db/:/etc/x-ui/ \
-v $PWD/cert/:/root/cert/ \
This document now exists on the official ASP.NET core docs page.
Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.
Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple
) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic
module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.
Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.
Older Keychron keyboards (those not based on QMK) use the hid_apple
driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.
private void ServiceAddressResolved(object sender, EventArgs e) | |
{ | |
var service = (NSNetService)sender; | |
var addresses = service.Addresses.Select(x => x.ToArray()).ToArray(); | |
var ipAddress = GetIPAddress(addresses.First()); // Consider that resolve might provide multiple IP addresses | |
// ... | |
} | |
private static IPAddress? GetIPAddress(byte[] data) | |
{ |
using System; | |
using System.Collections.Generic; | |
public static class Helper | |
{ | |
/// <summary> | |
/// Searches a section of the list for a given element using a binary search | |
/// algorithm. | |
/// </summary> | |
/// <param name="items">list of <see cref="TItems"/>, which must be searched within</param> |
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim as runtime | |
RUN apt-get update && \ | |
apt-get install -y wget \ | |
fontconfig && \ | |
wget http://ftp.br.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb && \ | |
apt --fix-broken install -y ./ttf-mscorefonts-installer_3.6_all.deb && \ | |
rm ttf-mscorefonts-installer_3.6_all.deb && \ | |
fc-cache -f -v |
import requests | |
import json | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import pandas as pd | |
query = 'http://members.tsetmc.com/tsev2/chart/data/Financial.aspx' | |
params = { | |
'i': '18027801615184692', | |
't': 'ph', |
Feel free to use this code if you are using AngularJS Framework in your application. This will help you easily create beautiful animated wizards or cover other UI scenarios that require a step-by-step interactions. Better used for single-page apps.
A Pen by Behzad Khosravifar on CodePen.
public static class IISExpress | |
{ | |
private static readonly List<string> sites = new List<string>(); | |
private static readonly List<string> paths = new List<string>(); | |
public static void StartIISExpress(string site, int port = 7329) | |
{ | |
if(!sites.Contains(site.ToLower())) | |
sites.Add(site.ToLower()); | |
else return; |
using System.Collections; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using System.ComponentModel; | |
using System.Threading; | |
namespace System.Collections.Generic | |
{ | |
/// <summary> |