Scripts
Hey, Apollo graphql is pushing some crap and looks like it will be the defacto way to do it.
They are Graphql Foundation member, i still don't like it.
They are taking over
- The problem is that they have now basically a GitHub for graphs.
- REST is kinda dead at this point.
- Even recommending wrapping rest API with graphql (and it makes sense, fuck).
- They transformed this past weeks the tutorial section into a bullshit certification path.
- The tools are not standard for graphql but rather their take on it.
That's my rant.
Be part of the problem with me
I've been using Apollo studio for work, here we have an organization for us (remember me to invite you please).
They have an useful way to organize graphs, they started all of this, so now is about super-graph and a gateway.
We can try it out even to push json files really.
Bash scripts
Going back to basics i created a new repository.
I will be bringing a bunch of old scripts that i have on dead repos over GitHub, gitlab, even my dead laptops.
For now is just a script to create this blogs quickly
#!/usr/bin/env bash
TITLE=${1:-missing-title}
FILENAME=$(date -I)-$TITLE.md
cat <<EOT >> $FILENAME
---
slug: $TITLE
title: $TITLE
authors: dani
tags: [tag]
---
<!--truncate-->
EOT
vim $FILENAME
I have it as write.blog on .bash_aliases (also in the repo).
write.blog scripts
echo "gives you 2022-07-07-scripts.md"
This will give you a file with today's date, give it some title or it will put "missing-title.md" at the end.
change the authors and add yourself to the authors on docusaurus.
CLI
I found an old small project using oclif
So i created a new one using the last version and typescript.
You can clone it and try it out (don't pay attention to README.md).
It was printing my projects on a table (NodeJS vs Laravel).
git clone git@github.com:TitorJohn/daemon.git
cd daemon
yarn && yarn build
./bin/run repository list
Table output
│ daemon │ NodeJs │ OK │
│ duolingo │ NodeJs │ NO │
│ folkedev_cli-master │ NodeJs │ NO │
│ game │ NodeJs │ OK │
│ graph │ NodeJs │ NO │
│ journal │ NodeJs │ NO │
│ lets │ unknown │ NO │
│ node-minesweeper │ NodeJs │ OK │
│ oclif │ NodeJs │ OK │
│ rogueJS │ NodeJs │ OK │
│ rust │ unknown │ OK │
│ scripts │ unknown │ OK │
│ subtitles │ NodeJs │ OK │
│ tano │ NodeJs │ OK │
│ titor-docs │ NodeJs │ OK │
│ tools │ unknown │ NO │
bye
