- MacOS
- Homebrew
- iTerm2
CLI tools for Xcode
| namespace Helpers | |
| { | |
| using System.Collections.Generic; | |
| using System.Net.Http; | |
| using System.Threading.Tasks; | |
| // More information about API - see https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide | |
| public class GoogleAnalyticsHelper | |
| { | |
| private readonly string endpoint = "http://www.google-analytics.com/collect"; |
| // Create a global Event Bus | |
| var EventBus = new Vue(); | |
| // Extend Vue component properties by exposing a getter for $eventbus | |
| Object.defineProperties(Vue.prototype, { | |
| $eventbus: { | |
| get: function () { | |
| return EventBus; | |
| } | |
| } |
| SELECT | |
| obj.NAME, | |
| SUM(reserved_page_count) * 8.0 / 1024 AS "Size (MB)" | |
| FROM sys.dm_db_partition_stats stat | |
| INNER JOIN sys.objects obj ON stat.object_id = obj.object_id | |
| GROUP BY obj.name | |
| ORDER BY "Size (MB)" DESC |
| #!/bin/bash | |
| # remove console warnings | |
| export DEBIAN_FRONTEND=noninteractive | |
| # install dotnet core | |
| curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
| sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg | |
| sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list' | |
| sudo add-apt-repository universe |
| # find which FXR versions are installed and delete old ones | |
| find /usr/local/share/dotnet/host/fxr -mindepth 1 -type d | sort | |
| sudo rm -rf /usr/local/share/dotnet/host/fxr/2.1.5 | |
| # find which SDKs versions are installed and delete old ones | |
| dotnet --list-sdks | |
| sudo rm -rf /usr/local/share/dotnet/sdk/2.1.5 | |
| # find which runtimes versions are installed and delete old ones | |
| dotnet --list-runtimes |
In order to fix disappeared Microsoft Outlook calendar categories on MacOS:
~/Library/Group Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles/Main Profile/Data/CategoriesComplete script: