Solved the problem with Attempt 2 with export LD_LIBRARY_PATH
## On-Premise
OS: Ubuntu 22.04.2
Golang Ver.: 1.21.0
GCC Ver.: 11.4.0
## Docker
| /** | |
| * Google Apps Script: Fetch TWD/USD Exchange Rate from Bank of Taiwan | |
| * | |
| * Description: Retrieves "Spot Buy" (Index 3) and "Spot Sell" (Index 13) | |
| * from BoT's historical CSV and returns the average value. | |
| * | |
| * Usage in Sheets: =GetTWDUSDSpotRate("2026/04/01") | |
| */ | |
| function GetTWDUSDSpotRate(inputDate) { |
| package main | |
| import ( | |
| "io" | |
| "log" | |
| "net" | |
| "os" | |
| "golang.org/x/crypto/ssh" | |
| ) |
| import sys | |
| from datetime import datetime | |
| from PySide6.QtWidgets import ( | |
| QApplication, | |
| QMainWindow, | |
| QWidget, | |
| QVBoxLayout, | |
| QHBoxLayout, | |
| QLabel, | |
| QLineEdit, |
| # -*- coding: utf-8 -*- | |
| ''' | |
| $ adb devices | |
| $ adb push /Users/macbook/.../* /sdcard/DCIM/Camera/ | |
| $ adb push /Users/macbook/.../*.JPG /sdcard/DCIM/Camera/ | |
| ''' | |
| ''' |
| // Just create a new bookmark and copy/paste the following script into the URL section | |
| // Usage: Once getting paid wall in medium, just click the bookemark to redirect the page | |
| javascript: (()=>{ let loc = window.location.href; let new_loc = "https://freedium.cfd/" + loc; window.location = new_loc;})(); |
| // ==UserScript== | |
| // @name ScreenCloud AWS: region dropdown cleanup | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @author wolf@screencloud.io | |
| // @include https://*.console.aws.amazon.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { |
| import polars as pl | |
| df = pl.DataFrame({ | |
| "epoch_seconds": [1648457740, 1648457740 + 10] | |
| }) | |
| # print(df) | |
| df = df.with_columns( | |
| pl.from_epoch("epoch_seconds", time_unit="s") |
| import cv2 | |
| import numpy as np | |
| # Set frame size | |
| frame_width = 1920 | |
| frame_height = 1080 | |
| # Create a VideoWriter object | |
| video_writer = cv2.VideoWriter('output_video.mp4', cv2.VideoWriter_fourcc(*'mp4v'), 30, (frame_width, frame_height)) |
| from datetime import datetime | |
| from fastapi import FastAPI | |
| from fastapi.responses import JSONResponse | |
| import uvicorn | |
| from apscheduler.schedulers.background import BackgroundScheduler | |
| ## Init | |
| app = FastAPI() | |
| scheduler = BackgroundScheduler() |