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
import requests | |
from urllib.parse import urlparse, parse_qs | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import threading | |
import jwt | |
from jwt import PyJWKClient | |
# Configuration | |
client_id = 'your_client_id' | |
client_secret = 'your_client_secret' |
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
Today @MooreCar and I spent an hour figuring this out. | |
This only works on the PowerBI Desktop Application (not web). | |
1) In the Planetscale Web UI, create a new read-only connection string (https://planetscale.com/docs/concepts/connection-strings) | |
- Selecting "Mysql CLI", note the host (-h), username (-u) and password (-p). | |
2) In the PowerBI Desktop App, install the Oracle MySQL connector (https://learn.microsoft.com/en-us/power-query/connectors/mysql-database). Note that at the time of this writing, only 8.0.26 is supported. | |
3) Create a new MySQL Database data source in the PowerBI Desktop app. | |
- Host: The host from (a) | |
- Database: You can put the name of your database here. In our case, "simpleaq". I don't believe it matters. | |
- You cannot simmply select a table and proceed. You will get an error like "target: typebot.-.primary: vttablet: rpc error: code = Aborted desc = caller id: oqcm30z7knpwnk7x7mwq: row count exceeded 100000 (CallerID: oqcm30z7knpwnk7x7mwq)" if you have more than 100,000 rows i |
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
# Since the 525 drivers, I noticed that, e.g.: | |
sudo ./NVIDIA-Linux-x86_64-525.105.17.run | |
# Has started failing with an error indicating that I should check /var/log/nvidia-installer.log | |
# Looking at those logs, I see an error indicating that the version of GCC being used doesn't match. | |
# In particular, the default version of cc at /usr/bin/cc is gcc-11, but gcc-12 is expected. | |
# This is easy to fix. | |
which gcc-12 |
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
// Convenience Declarations For Dependencies. | |
// 'Core' Is Configured In Libraries Section. | |
var Conversions = Core.Conversions; | |
var Debug = Core.Debug; | |
var Path2D = Core.Path2D; | |
var Point2D = Core.Point2D; | |
var Point3D = Core.Point3D; | |
var Matrix2D = Core.Matrix2D; | |
var Matrix3D = Core.Matrix3D; | |
var Mesh3D = Core.Mesh3D; |