How to setup an Outline VPN Server on Ubuntu 16.04 Server
This guide will show you how to install Outline Server on an Ubuntu 16.04 Server and use Outline Manager.
Outline Manager supports Windows, macOS and Linux.
| <#@ template language="C#" debug="true" hostSpecific="true" #> | |
| <#@ output extension=".cs" #> | |
| <#@ Assembly Name="System.Core.dll" #> | |
| <#@ assembly name="EnvDTE" #> | |
| <#@ Assembly Name="System.Windows.Forms.dll" #> | |
| <#@ Assembly name="System.Configuration"#> | |
| <#@ import namespace="System" #> | |
| <#@ import namespace="System.IO" #> | |
| <#@ import namespace="System.Diagnostics" #> | |
| <#@ import namespace="System.Linq" #> |
| public static class Extension | |
| { | |
| public static IList<T> ToList<T>(this DataTable dt, bool isFirstRowColumnsHeader = false) where T : new() | |
| { | |
| var results = new List<T>(); | |
| if (dt != null && dt.Rows.Count > 0) | |
| { | |
| var columns = dt.Columns.Cast<DataColumn>().ToList(); | |
| var rows = dt.Rows.Cast<DataRow>().ToList(); |
| using System; | |
| using System.Runtime.Caching; | |
| namespace Hasin.Taaghche.Utilities | |
| { | |
| // Use this class to put restriction on the number of invocations of an endpoint in your system by a given input. | |
| // E.g., when a user wants to login with "[email protected]", call CanProceed("[email protected]") to check if she can do that. | |
| public class RateLimiter | |
| { | |
| private readonly MemoryCache _cache; |
| 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> |
| 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; |
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.
| 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', |
| 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 |
| 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> |