Stop spying on me:
launchctl unload /Library/LaunchAgents/com.paloaltonetworks.gp.pangp*
I want to use the VPN again:
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangp*
| using Microsoft.WindowsAzure.Storage.Blob; | |
| using Newtonsoft.Json; | |
| using Newtonsoft.Json.Linq; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Net.Http; | |
| using System.Threading.Tasks; | |
| using PNG.ContentHub.GifConversion.Utils; | |
| using PNG.ContentHub.GifConversion.Helpers; |
| { | |
| "query": { | |
| "bool": { | |
| "must": [ | |
| { | |
| "term": { | |
| "targetId": "123456" | |
| } | |
| } | |
| ], |
| <% @ Page Language="C#" %> | |
| <html> | |
| <head> | |
| <title>DNS test</title> | |
| </head> | |
| <body> | |
| <pre> | |
| <% | |
| Response.Write(Request.ServerVariables["HTTP_X_SITE_DEPLOYMENT_ID"]); |
| var scriptIdentifier = "8m_bVGGMxk-zBdlAMuQVWA"; // No M.Action entity needed, just use the script identifier directly | |
| var jsonData = { AssetId: assetId }; | |
| $.rest.post(`/api/scripts/${scriptIdentifier}/execute`, jsonData) | |
| .done(function () { | |
| options.messageBoard.addMessage({ | |
| text: "The script was invoked successfully!", level: "success" | |
| }); | |
| }) | |
| .fail(function (xhr) { |
| using Stylelabs.M.Sdk; | |
| var id = Context.TriggeringUserId.Value | |
| var client = await GetImpersonatedClientAsync(userId).ConfigureAwait(false); | |
| async Task<IMClient> GetImpersonatedClientAsync(long userId) | |
| { | |
| // Unfortunately for now, there is only one overload of the method which receives the username, not the Id | |
| // of the user you want to impersonate. Hence, we need to load the username |
| using Stylelabs.M.Sdk; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| // People should not be calling the endpoint of this Script directly. | |
| // It's meant to be "behind" of the automatised raw component. | |
| var destinationAssetIdString = Context.Data["destinationAssetId"]?.ToString(); | |
| var sourceAssetIdString = Context.Data["sourceAssetId"]?.ToString(); |