mkdir dumb-project && cd dumb-project
npm init -y
yarn add faunadb
docker run -p 8443:8443 fauna/faunadb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// testing against socat: | |
// socat -u TCP-LISTEN:5555,reuseaddr,fork STDOUT | |
package main | |
import ( | |
"fmt" | |
"net" | |
"time" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OpenAI/GPT version of https://gist.github.com/evbruno/13ba9181b64eeb063079d8d1146125b4 | |
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"os/signal" | |
"slices" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gemini version of https://gist.github.com/evbruno/13ba9181b64eeb063079d8d1146125b4 | |
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"os/exec" | |
"os/signal" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# learning go day 3 | |
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"os/signal" | |
"slices" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:lts | |
WORKDIR /app | |
RUN echo "const express = require('express')" > index.js | |
RUN echo "const app = express()" >> index.js | |
RUN echo "app.get('/', function (req, res) {" >> index.js | |
RUN echo "res.send('Hello World')" >> index.js | |
RUN echo "})" >> index.js | |
RUN echo "app.listen(3000)" >> index.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def subject = "job name" | |
Jenkins.instance.getAllItems(Job.class).each { job -> | |
if (job.toString().contains(subject)) { | |
println " > " + job.name | |
job.builds.each { build -> | |
println ' >> ' + build.number + ' > ' + build.result + ' > ' + build.getDescription() | |
// | |
//if (build.number < 100) build.delete() | |
//if (Result.SUCCESS != build.result) build.delete() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TICKERS=('alzr11' 'vrta11' 'knri11') | |
for t in "${TICKERS[@]}" | |
do | |
echo -n "$t " | |
curl --silent https://statusinvest.com.br/fundos-imobiliarios/$t | \ | |
grep '^<strong class="fw-700">' | sed 's/<strong class="fw-700">//g' | sed 's/<\/strong>//g' | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// eg: go run proxy.go -url http://localhost:8443 | |
package main | |
import ( | |
"fmt" | |
"log" | |
"flag" | |
//"bytes" | |
//"io/ioutil" | |
"net/http" |
NewerOlder