This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uninstalls all Native Instruments Plugins on Windows | |
# ==================================================== | |
# NI plugins can quickly get a bit out of hand, as there are so many of it. The officiall uninstall | |
# instructions are to do it manually via program manager, this does the same but speeds up the | |
# process slightly. | |
# Note that this simply calls all the uninstallers after you confirmed it. Meaning you still have to | |
# click through the uninstallers, but at least not manually start them. | |
$uninstallKeys = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | |
$uninstallKeys += Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Checks if a field accessor string like "properties.validated" is valid | |
* within nested case classes, e.g.: | |
* | |
* case class User(val properties: UserProperties) | |
* case class UserProperties(val validated: Boolean) | |
* | |
* In the above example, create an accessor object by calling | |
* | |
* val acs = accessors[User] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Checks if a field accessor string like "properties.validated" is valid | |
* within nested case classes, e.g.: | |
* | |
* case class User(val properties: UserProperties) | |
* case class UserProperties(val validated: Boolean) | |
* | |
* In the above example, valid[User]("properties.validated") would yield true. | |
* | |
* This is useful for compile time checking when doing MongoDB queries |