Somewhat like dotenv but for PHP.
The goals is to remove all config scattered about in files and have one authoritative source for that config info.
@Override | |
protected void setUp() throws Exception { | |
super.setUp(); | |
// Create a Context for our content provider that will use the test.* | |
// database instead of the production database | |
final String filenamePrefix = "test."; | |
final RenamingDelegatingContext testDatabaseContext = new RenamingDelegatingContext( | |
getInstrumentation().getTargetContext(), getInstrumentation() | |
.getTargetContext(), filenamePrefix); |
#!/bin/bash | |
PATH_svn2git=~/svn2git/svn-all-fast-export | |
# path to account mapping. Must be in format "$svn-username $git-fullname <$git-email>" | |
PATH_account_map=~/svn2git/account-map | |
# layout template | |
PATH_template=~svn2git/standardlayout.rules |
Somewhat like dotenv but for PHP.
The goals is to remove all config scattered about in files and have one authoritative source for that config info.
private void logToCurlRequest(Request<?> request) { | |
StringBuilder builder = new StringBuilder(); | |
builder.append("curl request: curl "); | |
builder.append("-X \""); | |
switch (request.getMethod()) { | |
case Method.POST: | |
builder.append("POST"); | |
break; | |
case Method.GET: | |
builder.append("GET"); |
Nodes are not assigned public IP. If you have accessible VM in the same VNET as worker nodes, then you can use that VM as jump host and connect the worker via private IP.
Alternatively public IP can be assigned to a worker node. This readme shows how to do that.
find out the resource group that AKS created for the node VMs
In order of first appearance in The Morning Paper.
#! /usr/bin/env python3 | |
''' | |
Needs Requests (pip3 install requests) | |
Author: Marcello Salvati, Twitter: @byt3bl33d3r | |
License: DWTFUWANTWTL (Do What Ever the Fuck You Want With This License) | |
This should allow you to detect if something is potentially exploitable to the log4j 0day dropped on December 9th 2021. |
using OpenTelemetry; | |
using OpenTelemetry.Logs; | |
using OpenTelemetry.Resources; | |
using OpenTelemetry.Trace; | |
var builder = WebApplication.CreateBuilder(args); | |
var app = builder.Build(); | |
var appResourceBuilder = ResourceBuilder.CreateDefault() | |
.AddService(serviceName: Telemetry.ServiceName, serviceVersion: Telemetry.ServiceVersion); |