The initial source comes from sdcuike/issueBlog#4
https://github.com/PacktPublishing free to download books code by Packet
https://github.com/EbookFoundation/free-programming-books Very immense
https://github.com/PacktPublishing free to download books code by Packet
https://github.com/EbookFoundation/free-programming-books Very immense
| public class AuthenticatingHandler<T> : DelegatingHandler where T : ISecurityTokenAccessor | |
| { | |
| private readonly Policy<HttpResponseMessage> _policy; | |
| private readonly T _securityTokenAccessor; | |
| private IAccessToken _accessToken; | |
| private AuthenticationHeaderValue _authenticationHeader; | |
| public AuthenticatingHandler(T securityTokenAccessor) | |
| { | |
| _securityTokenAccessor = securityTokenAccessor; |
Roslyn provides a rich set of APIs for analyzing C# and Visual Basic source code, but constructing a context in which
to perform analysis can be challenging. For simple tasks, creating a Compilation populated with SyntaxTrees,
MetadataReferences and a handful of options may suffice. However, if there are multiple projects involved in the
analysis, it is more complicated because multiple Compilations need to be created with references between them.
To simplify the construction process. Roslyn provides the Workspace API, which can be used to model solutions,
projects and documents. The Workspace API performs all of the heavy lifting needed to parse SyntaxTrees from source
code, load MetadataReferences, and construct Compilations and add references between them.
| $ori = @{} | |
| Try { | |
| $i = 0 | |
| # Loading .env files | |
| if(Test-Path $args[0]) { | |
| foreach($line in (Get-Content $args[0])) { | |
| if($line -Match '^\s*$' -Or $line -Match '^#') { | |
| continue | |
| } |
| version: "3" | |
| services: | |
| sonarqube: | |
| image: sonarqube | |
| expose: | |
| - 9000 | |
| ports: | |
| - "127.0.0.1:9000:9000" | |
| networks: |
| List<Point> points = new List<Point>(); | |
| List<int> tempX = new List<int>(); | |
| List<int> tempY = new List<int>(); | |
| using (StreamReader reader = new StreamReader("Your_Source_File.SIG")) | |
| { | |
| while (!reader.EndOfStream) | |
| { | |
| Regex reg = new Regex(@"^\d+\s\d+$"); | |
| string checkLine = reader.ReadLine(); |
| #!/bin/sh | |
| set -e | |
| cd myfw | |
| # mkyaffs2 from mkyaffs2 0.2.9_20120815 | |
| sudo ../mkyaffs2 fifo_rootfs fifo_rootfs.yaffs2 | |
| echo -n `md5sum fifo_rootfs.yaffs2 | cut -c1-32` > fifo_rootfs.yaffs2.md5 | |
| tar zcvf ../X1II.repacked.fw fifo_uimage fifo_uimage.md5 fifo_uimageesmt fifo_uimageesmt.md5 fifo_rootfs.yaffs2 fifo_rootfs.yaffs2.md5 |
| #!/bin/sh | |
| set -e | |
| mkdir -p myfw | |
| tar zxvf X1II.fw -C myfw | |
| # unyaffs2 from yaffs2utils is not working | |
| #sudo ./unyaffs2 myfw/fifo_rootfs.yaffs2 myfw/fifo_rootfs | |
| # Use unyaffs from ubuntu's unyaffs package (apt-get install unyaffs) | |
| sudo unyaffs myfw/fifo_rootfs.yaffs2 myfw/fifo_rootfs |
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <!-- #1 Place this line at the top of any msbuild script (ie, csproj, etc) --> | |
| <PropertyGroup><PowerShell># 2>nul || type %~df0|find /v "setlocal"|find /v "errorlevel"|powershell.exe -noninteractive -& exit %errorlevel% || #</PowerShell></PropertyGroup> | |
| <!-- #2 in any target you want to run a script --> | |
| <Target Name="default" > | |
| <PropertyGroup> <!-- #3 prefix your powershell script with the $(PowerShell) variable, then code as normal! --> | |
| <myscript>$(PowerShell) |