Skip to content

Instantly share code, notes, and snippets.

View amusleh-spotware-com's full-sized avatar
🏠
Working from home

Ahmad Noman Musleh amusleh-spotware-com

🏠
Working from home
  • Spotware
  • Istanbul, Turkey
View GitHub Profile
[Cmdletbinding()]
Param(
[Parameter(Mandatory = $true)][string]$managedIdentity,
[Parameter(Mandatory = $true)][string]$applicationName
)
$allApps = az ad app list | ConvertFrom-Json
$matchingApp = $allApps | Where-Object { $_.displayName -eq $applicationName }
if ($null -eq $matchingApp) {
@amusleh-spotware-com
amusleh-spotware-com / PathBot.cs
Last active June 2, 2022 07:49
A sample for getting file path of a cTrader indicator or cBot
using System;
using cAlgo.API;
using cAlgo.API.Internals;
using System.Reflection;
using System.IO;
namespace cAlgo.Robots
{
[Robot(AccessRights = AccessRights.FullAccess)]
public class PathBot : Robot
### Keybase proof
I hereby claim:
* I am afhacker on github.
* I am afhacker (https://keybase.io/afhacker) on keybase.
* I have a public key whose fingerprint is 96F9 1A4E F575 526B 0652 FB06 5E3A 24AE 0E94 6F44
To claim this, I am signing this object: