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
// It took me few hours how to get this to work | |
// Have a service account in GCP which wanted to use Admin SDK with Google Workspace | |
// The service account needs to have the following role: `roles/iam.serviceAccountTokenCreator` | |
// You need to create a domain wide delegation for the service account client id | |
import ( | |
"google.golang.org/api/impersonate" | |
"google.golang.org/api/option" | |
"context" | |
) |
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
# This will close all views (files open in specific window) without asking to save them | |
# You can register it to a keyboard shorcut using this snippet | |
# {"keys": ["ctrl+shift+q"], "command": "close_without_saving"} | |
import sublime | |
import sublime_plugin | |
class CloseWithoutSaving(sublime_plugin.WindowCommand): | |
def run(self): | |
window = self.window |
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
{ | |
email my@email.com | |
} | |
my.host.com { | |
encode zstd gzip | |
log { | |
output stdout | |
} |
OlderNewer