Skip to content

Instantly share code, notes, and snippets.

View vardhanapoorv's full-sized avatar
🦀
🏗️

Apoorv Vardhan vardhanapoorv

🦀
🏗️
View GitHub Profile
@vardhanapoorv
vardhanapoorv / troubleshoot-build.md
Created January 9, 2024 17:05
Troubleshoot building MariaDB on MacOS (M2) from source

I followed this https://mariadb.com/kb/en/Build_Environment_Setup_for_Mac/ and then https://mariadb.com/kb/en/generic-build-instructions/.

Encountered few errors along the way. Below are the issues with the fixes that worked for me -

    • Issue:Bison error
    • Fix: Ran brew install bison to upgrade bison version. Cleaned up build folder and re-ran build.
    • Issue: pcre2.h missing
    • Fix: Ran brew install pcre2 to install the dependency. Created a symbolic link - ln -s /opt/homebrew/Cellar/pcre2/10.42/include/pcre2.h \ /Library/Developer/CommandLineTools/usr/include/pcre2.h.
    • Issue: unknown type name 'malloc_statistics_t'
    • Fix: Since the usage is in some statistics, can ignore that code. Quick clean hack suggested by someone -

Schema

type User {
    id: ID!
    user_name: String @search(by: [trigram, hash])
    user_handle: String @search(by: [hash])
    authored: [Tweet] @hasInverse(field: author)
}
@vardhanapoorv
vardhanapoorv / Trainsdata.js
Created January 3, 2020 07:56
London Tube train data
const StationsIDMapping = [
{
line: "metropolitan",
stationid: "940GZZLUALD",
station: "Aldgate Underground Station"
},
{
line: "metropolitan",
stationid: "940GZZLUAMS",
station: "Amersham Underground Station"
function HelloWorld(props) {
const lines = [
{ name: "metropolitan" },
{ name: "central" },
{ name: "waterloo-city" },
{ name: "jubilee" },
{ name: "victoria" },
{ name: "bakerloo" },
{ name: "hammersmith-city" },
{ name: "circle" },