roles/iam.serviceAccountUser
roles/artifactregistry.writerroles/run.developer
| # Extracted using: $ unzip -p lib/pycharm.jar com/jetbrains/python/PyBundle.properties | grep -B1 INSP.NAME | grep '^#' | sed 's|Inspection||g' | sed -e 's|#\s\{,1\}|# noinspection |' | |
| # noinspection PyPep8 | |
| # noinspection PyPep8Naming | |
| # noinspection PyTypeChecker | |
| # noinspection PyAbstractClass | |
| # noinspection PyArgumentEqualDefault | |
| # noinspection PyArgumentList | |
| # noinspection PyAssignmentToLoopOrWithParameter | |
| # noinspection PyAttributeOutsideInit |
@Jandalf I recently had to reset my System Integrity Protection settings (csrutil clear) and once again ran into this issue, where my Razer device was not recognized.
I have upgraded to macOS Big Sur 11.1, and I can confirm that the solutions by @avaddon and @rdabban, which had worked for me on 11.0, no longer work.
Manually loading the kernel extension (the kextload command) will display the error code 27 "Extension with identifiers com.razer.common.razerhid not approved to load. Please approve using System Preferences.", but no pop-up or "Allow" option would appear anywhere on the System Preferences.
Adding the Razer TeamID with the /usr/sbin/spctl kext-consent add R2H967U7J8 command showed me a pop-up, but with no "Allow" option, and no option to allow the kernel extension would appear in the System Preferences, so no good.
I finally managed to make it work by temporarily disabling System Integrity Protection (SIP), as follows:
| # Add Docker's official GPG key: | |
| sudo apt-get update | |
| sudo apt-get install ca-certificates curl | |
| sudo install -m 0755 -d /etc/apt/keyrings | |
| sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
| sudo chmod a+r /etc/apt/keyrings/docker.asc | |
| # Add the repository to Apt sources: | |
| echo \ | |
| "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ |
| act -s MY_SECRET="$(< secret.txt)" |
| # Rename files recursively | |
| Get-ChildItem -File -Recurse | % { Rename-Item -Path $_.PSPath -NewName $_.Name.replace(".pth",".pt")} | |
| # Copy to clipboard | |
| cat file.txt | clip Sort | |
| # fish-like autosuggestions | |
| Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck | |
| # The next can be set in the PoSH profile: `notepad $profile` | |
| Import-Module PSReadLine |
| # Most of the code is taken directly from [this StackOverflow answer](https://stackoverflow.com/a/60080531/4868562). | |
| import click | |
| import os | |
| import shutil | |
| import sys | |
| import tensorflow as tf | |
| from pathlib import Path | |
| from tensorflow.core.util.event_pb2 import Event |
# for all header sizes# and the anchor name-) if they are multi-wordExample
[click on this link](#multi-word-header)| # Fix Dropbox access denied Mac OS | |
| sudo chflags -R nouchg ~/Dropbox ~/.dropbox ~/.dropbox-master | |
| sudo chown "$USER" "$HOME" | |
| sudo chown -R "$USER" ~/Dropbox ~/.dropbox | |
| sudo chmod -RN ~/.dropbox ~/Dropbox | |
| chmod -R u+rw ~/Dropbox ~/.dropbox |
| class NumpyArrayField(models.TextField): | |
| description = "A field to store numpy 1-d arrays as json strings. Requires Pandas." | |
| def __init__(self, *args, **kwargs): | |
| """ | |
| Instance the field. | |
| :param kwargs: max_length - the maximum array length | |
| """ | |
| super(NumpyArrayField, self).__init__(*args, **kwargs) |