Skip to content

Instantly share code, notes, and snippets.

View dgyesbreghs's full-sized avatar
🗽
Working Remote

Dylan Gyesbreghs dgyesbreghs

🗽
Working Remote
View GitHub Profile
void GetUser()
{
var user = GetUserAsync().GetAwaiter().GetResult();
Console.WriteLine(user.FirstName);
}
2024-02-07 18:08:31.400 3944-4043 AccountMan...untManager be.dyre.graph I [2024-02-07 17:08:31 - thread_id: 159, correlation_id: UNSET - Android 33] No valid AccountManager broker is found
2024-02-07 18:08:31.400 3944-4043 MSALContro...ackageName be.dyre.graph I [2024-02-07 17:08:31 - thread_id: 159, correlation_id: UNSET - Android 33] Broker application is not installed.
2024-02-07 18:08:31.402 3944-4043 CommandDis...Parameters be.dyre.graph I [2024-02-07 17:08:31 - thread_id: 160, correlation_id: e3d2a1fd-53d3-4899-ac52-1f6d321ad175 - Android 33] Starting request with request context: {"thread_id":"160","correlation_id":"e3d2a1fd-53d3-4899-ac52-1f6d321ad175","x-client-Ver":"5.0.1","x-client-SKU":"MSAL.Android"}, with PublicApiId: 132
2024-02-07 18:08:31.416 3944-4043 CommandDis...Parameters be.dyre.graph I [2024-02-07 17:08:31 - thread_id: 160, correlation_id: e3d2a1fd-53d3-4899-ac52-1f6d321ad175 - Androi
2024-02-07 18:06:05.086 8098-8120 EGL_emulation be.dyre.graph D app_time_stats: avg=37.82ms min=2.03ms max=1389.81ms count=50
2024-02-07 18:06:05.097 8098-8126 AccountMan...untManager be.dyre.graph I [2024-02-07 17:06:05 - thread_id: 106, correlation_id: UNSET - Android 34] No valid AccountManager broker is found
2024-02-07 18:06:05.097 8098-8126 MSALContro...ackageName be.dyre.graph I [2024-02-07 17:06:05 - thread_id: 106, correlation_id: UNSET - Android 34] Broker application is not installed.
2024-02-07 18:06:05.101 8098-8126 CommandDis...Parameters be.dyre.graph I [2024-02-07 17:06:05 - thread_id: 108, correlation_id: b05c4dcb-9043-4a25-b078-4b13a543d57f - Android 34] Starting request with request context: {"thread_id":"108","correlation_id":"b05c4dcb-9043-4a25-b078-4b13a543d57f","x-client-Ver":"5.0.1","x-client-SKU":"MSAL.Android"}, with PublicApiId: 132
2024-02-07 18:06:05.122 8098-8126 Co
//
// HttpCache.swift
// Cache
//
// Created by Dylan Gyesbreghs on 31/12/2019.
// Copyright © 2019 Pitch-IT. All rights reserved.
//
import Foundation
@dgyesbreghs
dgyesbreghs / Asset.cs
Created July 16, 2019 19:20
Convert a Object to another Object
namespace Tree
{
class Asset
{
public string Name;
public Asset[] Children = new Asset[0];
public Asset(string name)
{

Install Homebrew (If not yet installed)

  • /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Clean Install Ruby

  • brew install rbenv
  • rbenv init -> Follow Steps
  • Restart Terminal
  • rbenv install 2.6.0
  • rbenv global 2.6.0
@dgyesbreghs
dgyesbreghs / DispatchQueue+ThreadSafety.swift
Created January 29, 2019 18:59
Thread Safety with DispatchQueue
//
// DispatchQueu+ThreadSafety.swift
// BoleroPhone
//
// Created by Dylan Gyesbreghs on 29/01/2019.
// Copyright © 2019 iCapps. All rights reserved.
//
import Foundation
using System;
using System.Collections.Generic;
using System.Linq;
using CoreGraphics;
using UIKit;
namespace Kitta.Extensions
{
public enum KtDimension { Height, Width }
//
// UIView+LayoutConstraints.h
// UIView+LayoutConstraints
//
// Created by Dylan Gyesbreghs on 02/02/2018.
//
#import <PureLayout.h>
typedef NS_ENUM(NSInteger, ALAnchor) {
filename=$1
suffix=".p12"
filename=${filename%$suffix}
echo "Convert file: " ${filename};
openssl pkcs12 -in ${filename}.p12 -out ${filename}.pem -nodes -clcerts