Skip to content

Instantly share code, notes, and snippets.

@PxyUp
PxyUp / dev_to.json
Created October 30, 2024 18:34
DevTo
{
"item": {
"connector_config": {
"response_type": "json",
"url": "https://dev.to/api/articles?top=1&per_page=10",
"server_config": {
"method": "GET"
}
},
"model": {
@PxyUp
PxyUp / sales.md
Created October 30, 2024 18:22
Response
@PxyUp
PxyUp / sales.json
Created October 30, 2024 18:21
Steam sales
{
"references": {
"EuSales": {
"connector_config": {
"response_type": "HTML",
"url": "https://gg.deals/deals/?drm=1&minRating=0&platform=1&store=4",
"browser_config": {
"playwright": {
"timeout": 60000,
"wait": 10000,
@PxyUp
PxyUp / fitter_steam.json
Created October 27, 2024 00:58
Sales steam
{
"references": {
"EuSales": {
"connector_config": {
"response_type": "HTML",
"url": "https://gg.deals/deals/?drm=1&minRating=0&platform=1&store=4",
"browser_config": {
"playwright": {
"timeout": 60000,
"wait": 10000,
@PxyUp
PxyUp / config.json
Last active October 22, 2024 00:27
fitter_dev_to.json
{
"item": {
"connector_config": {
"response_type": "json",
"url": "https://dev.to/api/articles?top=1&per_page=10",
"server_config": {
"method": "GET"
}
},
"model": {
@PxyUp
PxyUp / tonconnect-manifest.json
Last active August 18, 2024 21:45
tonconnect-manifest.json
{"iconUrl":"http://localhost:8081/logo.png","name":"Ton Games","url":"http://localhost:8081"}
@PxyUp
PxyUp / config.json
Created February 1, 2024 02:59
Telegram json
{
"http_server": {
"port": 8080
},
"items": [
{
"name": "telegram",
"connector_config": {
"response_type": "HTML",
"url": "https://www.google.com/search?q=telegram+{{{FromInput=value}}}",
@PxyUp
PxyUp / marshal_test.go
Last active May 22, 2020 00:43
Unmarshal/Marshal github.com/golang/protobuf/ptypes/struct
package marshal
import (
"bytes"
"github.com/golang/protobuf/jsonpb"
structType "github.com/golang/protobuf/ptypes/struct"
"github.com/stretchr/testify/assert"
"testing"
)
@PxyUp
PxyUp / server.go
Last active December 16, 2019 11:24
server.go
package main
import (
"context"
"fmt"
"google.golang.org/grpc"
"net"
agentPb "github.com/squzy/squzy_generated/generated/agent/proto/v1"
"time"
)
@PxyUp
PxyUp / health.go
Created October 9, 2019 22:01
Health handler
package health
import (
"github.com/gin-gonic/gin"
"net/http"
)
func Health(appName string) func(c *gin.Context){
return func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{