Skip to content

Instantly share code, notes, and snippets.

View Jedt3D's full-sized avatar

Worajedt Sitthidumrong Jedt3D

  • Skoode Skill Co.,Ltd.
  • Bangkok, Thailand
View GitHub Profile
To solve the issue, I had to run the following commands in the terminal:
cd path/to/the/directory/where/you/put/the/app
sudo codesign --force --deep --sign - fpcupdeluxe-aarch64-darwin-cocoa.app
xattr -cr fpcupdeluxe-aarch64-darwin-cocoa.app
Fix my issue on Intel, macOS Sonoma + fpcupdate v2.4.0dp
@Jedt3D
Jedt3D / SetupUbuntu4Delphi22.sh
Created December 28, 2022 10:26 — forked from jimmckeeth/SetupUbuntu4Delphi22.sh
This script automates the setup of Ubuntu for Delphi 11.2 Alexandria
#!/bin/bash
#
# Download and execute with the following:
# curl -L https://embt.co/SetupUbuntu4Delphi22 | bash
#
echo "Updating the local package directory"
sudo apt update
echo "Upgrading any outdated pacakges"
sudo apt full-upgrade -y
echo "Install new packages necessary for Delphi & FMXLinux"
@Jedt3D
Jedt3D / index.html
Created November 8, 2020 17:59
try_css
<h1 onclick="sayHi()">hello</h1>
<p>
<a href="https://codepen.io/wrj/pen/abZRvba">
link</a>
</p>
@Jedt3D
Jedt3D / MongoDB + OpenBlueDragon for GridFS
Created October 15, 2012 18:20
MongoDB + OpenBlueDragon for GridFS
// --------------------------------------------------------------------------------- function testAddRemoveFindOne(){ MongoRegister( name="mongo", server="127.0.0.1", db="openbd" ); var id = MongoGridfsSave( "mongo", "filebucket", ExpandPath("MongoDatabase.cfc"), "mongodatabase.cfc", "text/plain", "4f6e7d23c243305d41cd748c", {custom1:1, custom2:"age"} ); var f = MongoGridfsFindOne(datasource="mongo", bucket="filebucket", _id=id); assertEquals( f._id, "4f6e7d23c243305d41cd748c" ); assertEquals( f.filename, "mongodatabase.cfc" ); assertEquals( f.contentType, "text/plain" ); assertTrue( f.length > 0 ); assertEquals( f.metadata.custom1, 1 ); assertEquals( f.metadata.custom2, "age" ); // Delete it from the database MongoGridfsRemove( datasource="mongo", bucket="filebucket", _id=id ); f = MongoGridfsFindOne(datasource="mongo", bucket="filebucket", _id=id); assertTrue( StructCount(f) == 0 ); } // --------------------------------------------------------------------------------- function testAddFindRemove(){ MongoReg