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
tunnel: 1ba1811b-3315-4e11-8ef1-de51136084df | |
credentials-file: C:\Users\lionelchetty\.cloudflared\1ba1811b-3315-4e11-8ef1-de51136084df.json | |
ingress: | |
# This service inherits all configuration from the root-level config, i.e. | |
# it will use a connectTimeout of 30 seconds. | |
- hostname: jump.lionelchetty.dev | |
service: bastion | |
# Some built-in services (like `http_status`) don't use any config. | |
- service: http_status:404 | |
logfile: C:\Users\lionelchetty\.cloudflared\cloudflared.log |
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
import { Buffer } from "buffer"; | |
import * as rs from 'jsrsasign'; | |
addEventListener('fetch', event => { | |
try { | |
event.respondWith(generateSignature(event.request)); | |
} catch (e) { | |
return event.respondWith(new Response('Error thrown ' + e.message)); | |
} | |
}) |
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
//Header | |
{ | |
"typ": "JWT", | |
"alg": "HS512" | |
} | |
//Payload | |
{ | |
"iss": "mapsapi", | |
"tid": "Your TeamID", |
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
//Header | |
{ | |
"alg": "ES256", | |
"typ": "JWT", | |
"kid": "Your KeyID" | |
} | |
//Payload | |
{ | |
"iss": "Your TeamID", |
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
"account": { | |
"id": "6b1bbed0-abcd-1234-1b2b-a3f9dd22cc77", | |
"account_type": "unlimited", | |
"created": "2020-01-18T18:50:00.205279Z", | |
"updated": "2020-03-28T17:12:01.381614Z", | |
"premium_data": 0, | |
"quota": 0, | |
"warp_plus": true, | |
"referral_count": 0, | |
"referral_renewal_countdown": 0, |
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
[Interface] | |
PrivateKey = M5B//9eKFF8yEE1VLKDr666X7/sgBk/NxXoqQgsJPT1= | |
DNS = 1.1.1.1 | |
Address = 172.16.0.2/32 | |
Address = fd01:5ca1:ab1e:885c:53ad:ff3d:ed23:6ade/128 | |
[Peer] | |
PublicKey = bzXOD+E2ExENF1eyiK3H6/1SUuuH1JoVo90h8mPtgyv= | |
AllowedIPs = 0.0.0.0/0 | |
AllowedIPs = ::/0 |
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
<?xml version='1.0' encoding='utf-8' standalone='yes' ?> | |
<map> | |
<boolean name="is_service_running" value="true" /> | |
<string name="app_mode">WARP</string> | |
<string name="warp_token">fd88819b-7d1b-21ec-3334-22cccd441fb7</string> | |
<string name="warp_public_key">7dWdEk/ocN1YuUSDtnnkr1YAFQKkMHikQgyV9RbQvww=</string> | |
<string name="warp_private_key">M5B//9eKFF8yEE1VLKDr666X7/sgBk/NxXoqQgsJPT1=</string> | |
<boolean name="onboardingstatus" value="true" /> | |
<string name="warp_registration_id">f2301r2a-303a-153c-d145-76ccb9sb74bg</string> | |
<string name="terms_acceptance_date">2020-01-19T01:48:45.789+08:00</string> |
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
<# | |
.Synopsis | |
Performs code analysis using the ReSharper CLT, InspectCode & DupFinder. | |
.DESCRIPTION | |
Takes file path to solution file, output directory for reports and excluded file extensions as parameters, and then exports HTML report of code analysis for the solution. | |
.EXAMPLE | |
. .\Code_Analysis.ps1 -SolutionFilePath "..\WebApp.sln" -ExcludedExtensions "js,css,html"; DupFinder-Analysis | |
.EXAMPLE |
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
<Reference Include="Example.DynamicMapping.DynamicDatabaseMapping"> | |
<HintPath Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">..\Example.DynamicMapping.ModuleBuilder\bin\Release\Example.DynamicMapping.DynamicDatabaseMapping.dll</HintPath> | |
<HintPath Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">..\Example.DynamicMapping.ModuleBuilder\bin\Debug\Example.DynamicMapping.DynamicDatabaseMapping.dll</HintPath> | |
</Reference> |
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
// Get tables and their columns | |
var databaseTableInfo = GetDatabaseTableInfo(); | |
AppDomain domain = AppDomain.CurrentDomain; | |
AssemblyName aName = new AssemblyName("Example.DynamicMapping.DynamicDatabaseMapping"); | |
AssemblyBuilder ab = domain.DefineDynamicAssembly(aName, AssemblyBuilderAccess.Save); | |
System.Reflection.Emit.ModuleBuilder mb = ab.DefineDynamicModule(aName.Name, aName.Name + ".dll"); | |
// Define mapping static class of the database | |
TypeBuilder typeDatabaseModel = mb.DefineType("Example.DynamicMapping.DynamicDatabaseMapping.DatabaseModels.DatabaseMapping", TypeAttributes.Public | TypeAttributes.Abstract | TypeAttributes.Sealed); |
NewerOlder