Skip to content

Instantly share code, notes, and snippets.

View maxiride's full-sized avatar
😃
⛵🕶️😎🧑‍💻

Federico D'Eredità maxiride

😃
⛵🕶️😎🧑‍💻
  • Wildly Freelancing
View GitHub Profile
@spyzhov
spyzhov / Dockerfile
Last active July 7, 2024 13:41
Build Golang application in Dockerfile, with private repositories in dependencies, without experimental features.
# NB! not for production!
# https://docs.docker.com/engine/reference/builder/#arg
# Warning: It is not recommended to use build-time variables for passing secrets like github keys, user credentials etc. Build-time variable values are visible to any user of the image with the docker history command.
FROM golang:1.13 as builder
# This argument should be defined as your personal access tokens, from: https://github.com/settings/tokens
ARG GITHUB_ACCESS_TOKEN
# Any kind of configurations:
ENV GO111MODULE=on
@bearloga
bearloga / sql-murder-mystery-solution.md
Created October 13, 2019 01:42
A walkthrough of the solution to SQL Murder Mystery by Northwestern University Knight Lab. Solution by Mikhail Popov (@bearloga)

Solution to SQL Murdery Mystery

A walkthrough of the solution to SQL Murder Mystery by Northwestern University Knight Lab. Solution by Mikhail Popov

Prompt

A crime has taken place and the detective needs your help. The detective gave you the crime scene report, but you somehow lost it. You vaguely remember that the crime was a ​murder​ that occurred sometime on ​Jan.15, 2018​ and that it took place in ​SQL City​. Start by retrieving the corresponding crime scene report from the police department’s database.

Witness reports

@detroitenglish
detroitenglish / Caddyfile
Last active October 14, 2019 18:30
Caddy Server via Docker for Pi-Hole on Raspberry Pi
# Copy this file to directory /etc/caddy
# i.e. as /etc/caddy/Caddyfile
:80 {
root /srv/pihole
errors stderr
proxy / 127.0.0.1:8012 {
transparent
@2xsaiko
2xsaiko / recipes.md
Last active June 10, 2018 14:16
Crystals - Seal recipes

Each block represents a slate.

Rain
Drop a water bucket in the center to activate.

[Water    ] [Water    ] [Water    ]
[Air      ] [Air      ] [Air      ]
[Distorted] [Distorted] [Distorted]

[Water    ] [Water    ] [Water    ]
import mods.foundry.Casting;
recipes.remove(<tconstruct:casting:*>);
recipes.remove(<tconstruct:smeltery_controller>);
Casting.addRecipe(<tconstruct:cast>.withTag({PartType: "tconstruct:binding"}), <liquid:liquidbrass> * 108, <foundry:mold:1>, <tconstruct:binding>.withTag({Material: "stone"}), 40);
Casting.addRecipe(<tconstruct:cast>.withTag({PartType: "tconstruct:wide_guard"}), <liquid:liquidbrass> * 108, <foundry:mold:1>, <tconstruct:wide_guard>.withTag({Material: "stone"}), 40);
Casting.addRecipe(<tconstruct:cast>.withTag({PartType: "tconstruct:knife_blade"}), <liquid:liquidbrass> * 108, <foundry:mold:1>, <tconstruct:knife_blade>.withTag({Material: "stone"}), 40);
Casting.addRecipe(<tconstruct:cast>.withTag({PartType: "tconstruct:tough_tool_rod"}), <liquid:liquidbrass> * 108, <foundry:mold:1>, <tconstruct:tough_tool_rod>.withTag({Material: "stone"}), 40);
Casting.addRecipe(<tconstruct:cast>.withTag({PartType: "tconstruct:arrow_head"}), <liquid:liquidbrass> * 108, <foundry:mold:1>, <tconstruct:arrow_head>
@asukakenji
asukakenji / 0-go-os-arch.md
Last active September 5, 2024 19:22
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
@silencesys
silencesys / commit-emoji.md
Last active March 5, 2021 08:45 — forked from pocotan001/commit-emoji.md
List of emoji for git commits.

Git Commit Message

All Git Commit Messages MUST meet with this Text Format:

:emoji: Subject
(Only One NewLine)
Message Body
(Only One NewLine)
Ref &lt;###&gt;
@creimers
creimers / apollo-angular1-query.js
Created March 7, 2017 14:35
a basic example of how to use an apollo query with variables and angular 1
queryJobs() {
const jobQuery = gql`
query($city: String) {
jobs(city: $city){
id
title
teaser
imageSmall
published
}
@DavidWells
DavidWells / aligning-images.md
Last active September 11, 2024 15:21
Guide to aligning images in github readme.md files. https://davidwells.io/snippets/how-to-align-images-in-markdown

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@filewalkwithme
filewalkwithme / main.go
Created February 7, 2015 21:50
Listening multiple ports on golang http servers
package main
import (
"net/http"
)
func main() {
finish := make(chan bool)
server8001 := http.NewServeMux()