Skip to content

Instantly share code, notes, and snippets.

View maestre3d's full-sized avatar
🌟
The star that burns twice as bright burns half as long

A. Ruiz maestre3d

🌟
The star that burns twice as bright burns half as long
View GitHub Profile
@maestre3d
maestre3d / 0-go-os-arch.md
Created July 27, 2022 09:14 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active November 14, 2024 08:31
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@warpfork
warpfork / performance-measuring.md
Last active August 29, 2024 09:05
golang performance & benchmarking notes
@maestre3d
maestre3d / pagination.go
Last active November 23, 2021 00:36
Index-based SQL pagination
package foo
import (
"context"
"net/http"
"strconv"
)
// PaginateParams Paginate required params
type PaginateParams struct {
package main
import (
"context"
"flag"
"log"
"os"
"os/signal"
"strings"
"sync"
@Harold2017
Harold2017 / github_actions_golang.md
Created September 16, 2019 09:56
github actions golang, build, test, codecov

build

name: build
on: [push]
jobs:

  build:
    name: Build
    runs-on: ubuntu-latest
@xenogenesi
xenogenesi / Makefile
Last active November 19, 2021 03:28
create self signed certificates
DOMAIN ?= mydomain.com
COUNTRY := IT
STATE := IT
COMPANY := Evil Corp.
# credits to: https://gist.github.com/fntlnz/cf14feb5a46b2eda428e000157447309
# usage:
@panta
panta / logging.go
Last active October 28, 2024 18:56
zerolog with file log rotation (lumberjack) and console output
package logging
import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"gopkg.in/natefinch/lumberjack.v2"
"os"
"path"
"io"
)

How we incorporate next and cloudfront (2018-04-21)

Feel free to contact me at robert.balicki@gmail.com or tweet at me @statisticsftw

This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!

It assumes some knowledge of AWS.

Goals

@schollz
schollz / files.sh
Last active July 30, 2023 00:19
Go upload/recieve files via POST
#! /bin/bash
for n in {1..100}; do
dd if=/dev/urandom of=file$( printf %d "$n" ).bin bs=1 count=$(( RANDOM + 1024 ))
done