I hereby claim:
- I am josue on github.
- I am josue (https://keybase.io/josue) on keybase.
- I have a public key ASCVJPZJPCusTI54250g5hLVI7r9RmihTv9m0EAjanvD0Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // Fetches random user profiles and outputs their emails. | |
| // | |
| // @author - Josue Rodriguez <[email protected]> | |
| // | |
| // @date - Aug 23, 2019 | |
| package main | |
| import ( | |
| "encoding/json" | |
| "flag" |
| #!/bin/bash | |
| function slackme { | |
| local MESSAGE=${1} | |
| if [ "${MESSAGE}" == "" ]; then | |
| echo "Missing first param: slackme {message}" | |
| return | |
| fi | |
| if [ "${SLACK_HOOK_URL}" == "" ]; then |
| { | |
| "host": "orchestrator:6777", | |
| "proto": "kairosnet.proto", | |
| "call": "kairosnet.Api.Detect", | |
| "n": 1000, | |
| "c": 50, | |
| "D": "data.json" | |
| } |
| /* | |
| go build for linux: | |
| env GOOS=linux go build -o /tmp/server server.go | |
| run with docker: | |
| docker run -it --rm --name test -v /tmp/server:/server -p 3000:80 -p 3001:6060 alpine /server | |
| run pprof debugger: | |
| go get github.com/google/pprof | |
| pprof --seconds 30 -http=:4444 /tmp/server http://localhost:3001/debug/pprof/profile |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) |
| package main | |
| import ( | |
| "flag" | |
| "time" | |
| "fmt" | |
| "strings" | |
| "net/http" | |
| "io/ioutil" | |
| "encoding/json" |
| import java.io.BufferedWriter; | |
| import java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| import java.io.OutputStreamWriter; | |
| import java.io.FileInputStream; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; | |
| import java.util.Base64; |
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| "strings" | |
| ) | |
| /* | |
| Returns a map array of all available headers. |
| #!/bin/bash | |
| URL="http://www.minocacorp.com/download/" | |
| VERSION=`curl -s ${URL} | egrep '/download/Minoca-pc-[0-9]+\.zip' | sed -E 's/.+\/download\/(.*-pc-[0-9]+)\.zip.+/\1/g'` | |
| ZIP="${VERSION}.zip" | |
| echo "- Downloading version: $VERSION" | |
| curl --progress-bar -o /tmp/$ZIP "$URL/$ZIP" |