Skip to content

Instantly share code, notes, and snippets.

@yaroslav
yaroslav / nuke-google-keystone.sh
Created December 14, 2020 11:06
Nuke Google Keystone without removing Google Chrome
sudo rm -R ~/Library/Google/GoogleSoftwareUpdate/
sudo touch ~/Library/Google/GoogleSoftwareUpdate
sudo chmod 444 ~/Library/Google/GoogleSoftwareUpdate
sudo rm ~/Library/LaunchAgents/com.google.keystone.agent.plist
sudo rm ~/Library/LaunchAgents/com.google.keystone.xpcservice.plist
sudo rm ~/Library/Preferences/com.google.Keystone.Agent.plist
sudo rm -R ~/Library/Caches/com.google.Keystone*
# reboot.
# use brew cask to install and update google-chrome.
@adamjasinski
adamjasinski / TheoryWithDataDisposalAttribute.cs
Last active December 10, 2015 00:38
xUnit TheoryAttribute specialization with data disposal facility
using System;
using System.Collections.Generic;
using System.Linq;
using Xunit.Extensions;
using Xunit.Sdk;
namespace Prototypes.Xunit.Extensions;
{
/// <summary>
/// Theory that disposes data items after finishing the execution.
@OmerMor
OmerMor / FastArraySerializer.cs
Last active November 26, 2021 05:33
A hack to temporarily view a float array as a byte array and vice versa, in O(1) - without mem copy. License: FreeBSD
/*
Copyright (c) 2013, Omer Mor
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,