This file contains 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
//https://ryansouthgate.com/asp-net-core-cors-wildcard-subdomains/ | |
public virtual void ConfigureServices(IServiceCollection services) | |
{ | |
//...other ASP.NET Setup | |
services.AddCors(options => | |
{ | |
options.AddDefaultPolicy( | |
builder => builder | |
.WithOrigins |
This file contains 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
const lambdaHelpers = require('lambda-helpers'); | |
const eventHelpers = require('event-helpers'); | |
const utils = require('utils'); | |
class BaseLambdaImplementation { | |
constructor(event) { | |
this.event = event; | |
console.log("Event info---------"); | |
console.log(JSON.stringify(this.event)); | |
try { |
This file contains 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
oh-my-posh init pwsh --config "C:\_Tools\_scripts\paradox.omp.json" | Invoke-Expression | |
#oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\paradox.omp.json" | Invoke-Expression | |
#Import-Module posh-git | |
#Import-Module oh-my-posh | |
#Set-PoshPrompt -Theme Paradox | |
#Set-Theme Paradox | |
#Set-Theme Agnoster |
This file contains 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
{ | |
"editor.formatOnPaste": true, | |
"editor.formatOnSave": true, | |
"workbench.colorTheme": "Visual Studio Light", | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.startupEditor": "newUntitledFile", | |
"files.associations": { | |
"*.asax": "html", | |
"*.Master": "html", | |
"*.template": "xml", |
This file contains 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"?> | |
<QTTabBar> | |
<SerializedOptions>All</SerializedOptions> | |
<Config> | |
<Config>196AB80F202511781D56DB1F7A70CBC813EC3B22303E04001F10FFFFFFFFF1FF0100340007411A9000CAB31CD1B31C0A8B402B04CBB28C080804000000000024006402FC000000000000002B00412000</Config> | |
<KeyboardShortcuts>000000000000000025001600270016000900120009001300000000000000000057001200570013000000000000000000000000005A0013004E001200000000004C001200000000004F001200470013004F001400BC001400BE0014004700140048001400410014004D001400430013005800130043001400580014004800130000000000000000006B0013006D0013005100140046001200450014005200140056001400270013000000000000000000000000000000000000000000000000000000000000000000000000004600130054001300000000000000000000000000450013004400130000000000000000000000000000000000000000000000000000000000550013004A0013000000000000000000000000000000000000000000000000000000000000000000000000000000000053001400000000004C0013005000130046001400000000000000000000000000000000000000000000000000000000000 |
This file contains 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
const gremlin = require('gremlin'); | |
const DriverRemoteConnection = gremlin.driver.DriverRemoteConnection; | |
const Graph = gremlin.structure.Graph; | |
dc = new DriverRemoteConnection('wss://mapping-graph-db.cluster-cgm0q33taffj.us-east-2.neptune.amazonaws.com:8182/gremlin', {}); | |
const graph = new Graph(); | |
const g = graph.traversal().withRemote(dc); | |
This file contains 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
# > pip install boto3 | |
# > py .\vpc-inside.py --vpc vpc-02afcbda6eba48b64 --region us-east-2 --profile tcp | |
import logging | |
import boto3 | |
from argparse import ArgumentParser, HelpFormatter | |
from botocore.exceptions import ClientError, ProfileNotFound | |
# logger config | |
logger = logging.getLogger() |
This file contains 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
namespace SampleDotNetFullLib | |
{ | |
public class Math | |
{ | |
public string GetMessage() | |
{ | |
var o = new AnotherLib.Messages(); | |
return o.GetMessage("in Math.GetMessage"); | |
} |