Three simple steps:
- Go to /Library/LaunchAgents in Finder
- Delete whatever {xxx.plist} that you'd like to prevent from auto-starting
- Reboot your computer
credits goes to How to stop GlobalProtect VPN from auto-starting on the Mac
Three simple steps:
credits goes to How to stop GlobalProtect VPN from auto-starting on the Mac
C:\Program Files (x86)\Microsoft Azure Storage Explorer\StorageExplorer.exe |
Example of LINQ Select
and ToDictionary
with parallel execution of tasks
var dataSource = new List<object>() { "aaa" , "bbb" };
var tasks = dataSource.Select(async data => new { Key = data.ToString(), Value = await AsyncDoSomething(data.ToString()) });
var results = await Task.WhenAll(tasks);
Dictionary<string, int> dictionary = results.ToDictionary(pair => pair.Key, pair => pair.Value);
Adapted from this Stackoverflow answer.
Question: Which method performs better: .Any() vs .Count() > 0? (SO link)
Answer: In general .Any()
is more performant with better clarity of intention on IEnumerable<T>
. If you are starting with something that has a .Length
or .Count
(such as ICollection, IList, List, etc) - then this will be the fastest option.
Question: Using LINQ to remove elements from a List (SO link)
Answer: .RemoveAll()
from IList
or .Where()
will do the trick.
sudo gem install cocoapods -n /usr/local/bin
CocoaPods local cache location:
/Users/{user}/Library/Caches/CocoaPods/Pods/Release/AppCenterReactNativeShared/
https://hamidmosalla.com/2018/08/04/what-is-tpl-dataflow-in-net-and-when-should-we-use-it/
Task Parallel Library Dataflow https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/dataflow-task-parallel-library
TPL Dataflow tutorial https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/how-to-perform-action-when-a-dataflow-block-receives-data
Using Task.ContinueWith and TPL Dataflow to solve the pipeline problem https://gist.github.com/fresky/10632899
https://osxdaily.com/2019/07/20/how-delete-microsoft-autoupdate-mac/
sudo rm -f /Library/"Application Support"/Microsoft/MAU2.0/"Microsoft AutoUpdate.app"
sudo rm -f /Library/LaunchAgents/com.microsoft.update.agent.plist
sudo rm -f /Library/LaunchDaemons/com.microsoft.autoupdate.helper.plist
#!/usr/bin/env node | |
const https = require('node:https') | |
const JSONStream = require('JSONStream') | |
const JSONStreamWithDestroyTest = async () => { | |
const r = [] | |
for (let i = 0; i < 10; i++) { | |
r.push(new Promise((resolve, reject) => { | |
const start = Date.now() | |
const req = https.request(new URL('https://registry.npmjs.org/npm'), function (res) { |