Skip to content

Instantly share code, notes, and snippets.

@kenchan0130
kenchan0130 / blur_clip_board_image.py
Last active August 7, 2019 07:47
Blur clip board image script for macOS
#!/usr/bin/env python
import objc
import sys
import os.path
import ctypes.util
import collections
from AppKit import NSPasteboard, NSImage, NSBitmapImageRep, NSPasteboardTypeTIFF
from Quartz.CoreGraphics import CGRectMake
@kenchan0130
kenchan0130 / terraform.log
Created January 15, 2021 09:06
Result of terraform providers lock -platform=darwin_amd64 -platform=linux_amd64
2021/01/15 17:57:27 [INFO] Terraform version: 0.14.2
2021/01/15 17:57:27 [INFO] Go runtime version: go1.15.2
2021/01/15 17:57:27 [INFO] CLI args: []string{"/Users/sample-user/usr/local/Cellar/tfenv/2.0.0/versions/0.14.2/terraform", "providers", "lock", "-platform=darwin_amd64", "-platform=linux_amd64"}
2021/01/15 17:57:27 [DEBUG] Attempting to open CLI config file: /Users/sample-user/.terraformrc
2021/01/15 17:57:27 Loading CLI configuration from /Users/sample-user/.terraformrc
2021/01/15 17:57:27 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021/01/15 17:57:27 [DEBUG] ignoring non-existing provider search directory /Users/sample-user/.terraform.d/plugins
2021/01/15 17:57:27 [DEBUG] ignoring non-existing provider search directory /Users/sample-user/Library/Application Support/io.terraform/plugins
2021/01/15 17:57:27 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2021/01/15 17:57:27 [INFO] CLI command args: []string{"pr
@kenchan0130
kenchan0130 / gist:419feafb075764db2924f2bf3c56d808
Created August 4, 2024 08:35
Error log when creating a client from API Schema of ZoomPhoneMasterAPISpec
I have noticed that your OpenAPI spec is incorrect in places.
The following is a log of where errors occurred in [ogen](https://github.com/ogen-go/ogen).
```
$ ogen -package zoomphone -target zoomphone -clean ZoomPhoneMasterAPISpec.json
- ZoomPhoneMasterAPISpec.json:55495:25 -> "tokenUrl" MUST be in the form of a URL: parse "": empty url
55492 | "flows": {
55493 | "authorizationCode": {
55494 | "authorizationUrl": "/",
→ 55495 | "tokenUrl": "",