Skip to content

Instantly share code, notes, and snippets.

View fedir's full-sized avatar
🌤️
The sun is behind every cloud

Fedir RYKHTIK fedir

🌤️
The sun is behind every cloud
View GitHub Profile
@fedir
fedir / drupal-association-videos-ranked.md
Last active September 23, 2018 00:54
drupal-association-videos-ranked with https://github.com/fedir/yrank
@fedir
fedir / pokemon-trash-videos.md
Last active September 23, 2018 08:05
Videos from "Pokemon Trash" video channel
TITLE URL LIKES POSITIVE INTERESTINGNESS TOTAL INTERESTINGNESS GLOBAL BUZZ VIEWS DISLIKES COMMENTS
GopherCon 2018 Lightning Talk: Brad Fitzpatrick - The nuclear option, go test -run=InQemu https://www.youtube.com/watch?v=69Zy77O-BUM 60 0.0823 0.0878 733 729 0 4
GopherCon 2018 Lightning Talk: Matt Layher - Linux Netlink and Go in 7 Minutes or Less https://www.youtube.com/watch?v=tw-9fNygYE4 11 0.0701 0.0828 159 157 0 2
Gopher
@fedir
fedir / devoxx-france-2018-videos-rated-by-likes.md
Last active September 20, 2018 11:50
Devoxx France 2018 > Videos rated by likes
@fedir
fedir / gophercon-2018-videos-rated-by-likes.md
Last active May 25, 2020 00:01
GopherCon 2018 > Videos rated by likes
@fedir
fedir / politesse.md
Last active September 19, 2018 09:26
Formules de politesse > Relations professionnelles

Formules de politesse > Relations professionnelles

Signature

  • Avec mes remerciements, je vous prie de trouver ici, Madame, Mademoiselle, l'expression de mes sentiments distingués
  • Recevez, Madame, Monsieur, mes salutations distinguées
  • Cordialement,
  • Bien cordialement,
  • Bien à vous,
@fedir
fedir / http_request.go
Last active September 18, 2018 20:12
HTTP request in Go
func http_request (url string) ([]byte, int, error) {
var httpClient = &http.Client{Timeout: 10 * time.Second}
req, err := http.NewRequest("GET", url, nil)
if err != nil {
log.Fatal("Cannont prepare the HTTP request", err)
}
// Optional basic authentification
@fedir
fedir / init_viper_config.go
Created September 18, 2018 11:29
Init Viper configuration
package main
import (
"fmt"
"log"
"github.com/spf13/viper"
)
// Configuration structure for "viper" config management