View map_struct.go
This file contains 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
package main | |
import ( | |
"database/sql" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"log" | |
"reflect" | |
"strings" |
View cache_redis.go
This file contains 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
package main | |
import ( | |
"context" | |
"encoding/json" | |
"log" | |
"time" | |
"github.com/go-redis/redis/v8" | |
) |
View Server.go
This file contains 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
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
) | |
type Server struct { | |
protocol string |
View main.go
This file contains 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
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
) | |
func handleConnection(conn net.Conn) { | |
// Handle incoming connection from Postfix |
View install-ctfreak.sh
This file contains 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 | |
## Install Ctfreak Server | |
## run as root | |
## https://ctfreak.com/ | |
## https://ctfreak.com/docs/install/linux | |
FQDN=task.linuxpro.com.br | |
DOMAIN=linuxpro.com.br | |
apt-get update |
View install-drone-server.sh
This file contains 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 | |
## Install Drone Server | |
# https://docs.drone.io/server/provider/github/ | |
# https://docs.drone.io/runner/exec/installation/linux/ | |
# https://samuelsson.dev/how-to-install-and-configure-drone-ci-on-a-self-hosted-server/ | |
# https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/ | |
# https://www.digitalocean.com/community/tutorials/how-to-use-certbot-standalone-mode-to-retrieve-let-s-encrypt-ssl-certificates-on-ubuntu-22-04 | |
COMPOSE=https://github.com/docker/compose/releases/latest/download/docker-compose-linux-x86_64 |
View get-jira-id.go
This file contains 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
package main | |
// go mod init get-jira-id | |
// gofmt -w main.go | |
// go build -ldflags="-s -w" | |
// upx --best --lzma get-jira-id | |
// ./get-jira-id --issue=feature/Pbo-784-epic | |
import ( | |
"flag" |
View insatll-glassfish.sh
This file contains 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 | |
## Install GlassFish 5 64Bits on Linux (CentOS 8) | |
## https://www.oracle.com/br/java/technologies/javase/javase8-archive-downloads.html | |
## https://stackoverflow.com/questions/50374321/why-cant-access-to-glassfish-admin-console-remotely | |
## https://stackoverflow.com/questions/41974198/glassfish-change-admin-password | |
## https://www.osradar.com/how-to-install-glassfish-5-on-rhel-and-centos-8/ | |
## https://linuxways.net/centos/how-to-install-glassfish-on-centos-8/ | |
## https://www.rosehosting.com/blog/how-to-install-glassfish-5-on-centos-7/ | |
## https://gist.github.com/sdmcraft/2c5abbdeccf37e1642e5 |
View install-nginx-pagespeed.sh
This file contains 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 | |
## Install PageSpeed Ubuntu 20.04 | |
## Run as root (sudo su) | |
## https://www.howtoforge.com/how-to-install-nginx-with-google-pagespeed-on-ubuntu-20-04/ | |
## https://www.linuxbabe.com/nginx/compile-the-latest-nginx-with-ngx_pagespeed-module-on-ubuntu | |
## https://www.techrepublic.com/article/how-to-install-the-latest-version-of-nginx-on-ubuntu-server-18-04/ | |
## https://www.tecmint.com/install-ngx_pagespeed-to-optimize-nginx-performance-on-ubuntu/ | |
## nginx -v |
NewerOlder