Skip to content

Instantly share code, notes, and snippets.

View zeroidentidad's full-sized avatar
:shipit:
00:00 [ᴢᴇʀᴏ]~ go run .

フ乇丂ひ丂 zeroidentidad

:shipit:
00:00 [ᴢᴇʀᴏ]~ go run .
View GitHub Profile
@zeroidentidad
zeroidentidad / bash-colors.md
Created March 13, 2024 02:13 — forked from JBlond/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple

Go Stdlib Interfaces (Selected)

This is not an exhaustive list of all interfaces in Go's standard library. I only list those I think are important. Interfaces defined in frequently used packages (like io, fmt) are included. Interfaces that have significant importance are also included.

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

@zeroidentidad
zeroidentidad / gist:d18a263885c5f82a33b8622e623e5542
Created September 23, 2022 19:14 — forked from alexedwards/gist:dc3145c8e2e6d2fd6cd9
Example of working with Go's database/sql and NULL fields
CREATE TABLE books (
isbn char(14) NOT NULL,
title varchar(255),
author varchar(255),
price decimal(5,2)
);
INSERT INTO books (isbn, title, author, price) VALUES
('978-1503261969', 'Emma', 'Jayne Austen', 9.44),
('978-1514274873', 'Journal of a Soldier', NULL, 5.49),
@zeroidentidad
zeroidentidad / sendMail.go
Created August 30, 2021 18:43 — forked from narukoshin/sendMail.go
Send SMTP email with Go
package main
import (
"crypto/tls"
"errors"
"log"
"net"
"net/smtp"
"strings"
)
@zeroidentidad
zeroidentidad / mass_git_updater.py
Created June 30, 2021 15:08 — forked from lggomez/mass_git_updater.py
[Python] Mass git updater
__author__ = "lggomez"
__copyright__ = "Copyright 2017"
__credits__ = ["Luis Gomez"]
__license__ = "MIT"
__version__ = "0.3"
__maintainer__ = "lggomez"
__status__ = "Production"
import argparse
import os