This script sends an audio file to OpenAI for transcription and stores the result in a JSON file. It works on macOS and Linux and doesn't require programming knowledge.
| Requirement | Description |
When downloading a zip file from Figma Make you'll have a "working" React application. However a few things prevent it from actually being useful, we need to first of all make it properly use Tailwind. Why I'm writing these notes is because I chased this for a while without thinking of this and could not figure out why some Tailwind selectors did not exist.
I personally find it easier to use a devcontainer when working with Node etc based projects.
mkdir .devcontainerYou might be in a scenario where you purchased multiple tickets for a show with Ticketmaster and want to split the PDF.
This is not possible as the file is encrypted. However using Ghostscript we can reprocess the file and get a new PDF that you can split as you want.
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=output.pdf -dPDFSETTINGS=/prepress -f your-tickets.pdf
Note: depending on your jurisdiction this might not be legal. INAL.
The steps below fix it, basically we skip using clang. Check the paths for yourself if the gcc version is correct.
Installed GCC via Homebrew:
brew install gccSet environment variables to use GCC 14:
export CPLUS_INCLUDE_PATH="/opt/homebrew/Cellar/gcc/14.2.0/include/c++/14/"
If you ended up here because of the following error:
--grpc-gateway_out: 11:1: expected 'IDENT', found 'import'
And you noticed the generated Go code was missing the package name, it could be due to the way the go_package is declared.
This works for the go-grpc, if you want to generate it directly into a directory
option go_package = "pinger/";Greece Passenger Locator Form PDF Print
When attempting to print the provided PDF my printer gave this output
ERROR: undefined
OFFENDING COMMAND: New
STACK:
/AAAAAB+*Times
For some reason macOS reindexes a file if it was read or opened by another program, so cache dirs are heavy offenders. Can be checked with sudo fs_usage mdworker mds
A list to start with, you can add these paths by going to System Preferences then Spotlight and finally Privacy, clicking the + and then doing cmd+shift+g or programatically (see below).
My current list contains the following
sudo defaults read /System/Volumes/Data/.Spotlight-V100/VolumeConfiguration.plist Exclusions
NB: Change the /Users/yt to reflect your OWN user.
(
| #!/bin/bash | |
| # IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it! | |
| # IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS. | |
| # This script needs to be run from the volume you wish to use. | |
| # E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh | |
| # WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
| # sudo mount -uw / | |
| # Get active services: launchctl list | grep -v "\-\t0" | |
| # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents | |
| # Agents to disable |
This allows for showing your local taxrate (as is mandatory in most EU countries) on the store without needing to set the entire site to include taxes (which would also calculate taxes for outside-EU).
Trick is to take your price including VAT (e.g. €50): 50 / 1.19 = 42.01 and use this amount in the Inventory. Configure the tax-rules to set 19% where applicable (shipping from Germany to e.g. Netherlands requires 19% VAT anyway to a private person) and set to 0% to countries non-EU.
The cart will then reflect the correct pricing, and with this snippet (Settings -> Advanced -> Code Injection) inside the Footer will fix the storefront too.
NB: Be sure to disable AJAX Loading, this can be found in Design -> Site Styles because else it'll only work on Refresh and not initial load. This is a known bug in Squarespace.