At Event Driven Collaboration section the text on the first diagram has a type a topic on tbe broke
.
In the Caching section it says stale (post our GET a subsequent POST..
. It might just be me but that doesn't entirely make sense in my head.
{ | |
"Serilog": { | |
"Using": [ "Serilog.Sinks.Console", "Serilog.Expressions" ], | |
"Filter": [ | |
{ | |
"Name": "ByExcluding", | |
"Args": { | |
"expression": "StartsWith(@m, 'Some log message')" | |
} | |
} |
using System.Text.RegularExpressions; | |
using Newtonsoft.Json.Serialization; | |
using Xunit; | |
namespace CustomJsonPropertyNamePolicy; | |
internal class UnderscoreNamingStrategy : NamingStrategy | |
{ | |
private static readonly Regex CapitalLetterGroup = new Regex("([A-Z])"); | |
using System.Text.Json; | |
using System.Text.RegularExpressions; | |
using Xunit; | |
namespace CustomJsonPropertyNamePolicy; | |
internal class UnderscoreNamingPolicy : JsonNamingPolicy | |
{ | |
private static readonly Regex CapitalLetterGroup = new Regex("([A-Z])"); |
using ConfigTesting; | |
using Microsoft.Extensions.Configuration; | |
var builder = new ConfigurationBuilder(); | |
builder.AddAzureAppConfiguration( | |
"Endpoint=https://<config_name>.azconfig.io;Id=<ID>;Secret=<Secret>"); | |
var config = builder.Build(); | |
/** |
At Event Driven Collaboration section the text on the first diagram has a type a topic on tbe broke
.
In the Caching section it says stale (post our GET a subsequent POST..
. It might just be me but that doesn't entirely make sense in my head.
# List folders with file size in MB | |
ls -la --block-size=M <directory> | |
# Find total file sizes for a directory | |
du -h -c <directory> | tail -1 | |
# Find all directories with name with wildcard | |
find -iname '<directory>*' -maxdepth 10 -mindepth 1 -type d | |
# Delete all directories with name with wildcard |
import time | |
from multiprocessing import Process | |
def sleeper(time_to_sleep): | |
time.sleep(time_to_sleep) | |
if __name__ == '__main__': | |
timeout = 5 |
public class CustomPortlet extends MVCPortlet { | |
@Override | |
public void doView(RenderRequest renderRequest, RenderResponse renderResponse) { | |
ThemeDisplay themeDisplay = (ThemeDisplay)renderRequest.getAttribute(WebKeys.THEME_DISPLAY); | |
User currentUser = themeDisplay.getUser(); | |
renderRequest.setAttribute("currentFirstName", currentUser.getFirstName()); | |
// Add attributes as required |
final HttpGet loginDetailsGet = new HttpGet("{your URL to pass login details to}"); | |
loginDetailsGet.addHeader("accept", "application/json"); | |
final HttpParams httpParameters = new BasicHttpParams(); | |
HttpConnectionParams.setConnectionTimeout(httpParameters, 5 * 1000); | |
final Credentials credentials = new UsernamePasswordCredentials(username, password); | |
final DefaultHttpClient defaultHttpClient = new DefaultHttpClient(httpParameters); | |
defaultHttpClient.getCredentialsProvider().setCredentials(new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT), credentials); |
package com.mysmallcornerstudios.test; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
public class DateTest { | |
public static void main(String[] args) throws InterruptedException { | |
Long time1 = System.currentTimeMillis(); |