Skip to content

Instantly share code, notes, and snippets.

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

Federico D'Eredità maxiride

😃
⛵🕶️😎🧑‍💻
  • Wildly Freelancing
View GitHub Profile
@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 April 9, 2024 18:54
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
}

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()
@adam-p
adam-p / Local PR test and merge.md
Last active February 5, 2024 19:39
Testing a pull request, then merging locally; and avoiding TOCTOU

It's not immediately obvious how to pull down the code for a PR and test it locally. But it's pretty easy. (This assumes you have a remote for the main repo named upstream.)

Getting the PR code

  1. Make note of the PR number. For example, Rod's latest is PR #37: Psiphon-Labs/psiphon-tunnel-core#37

  2. Fetch the PR's pseudo-branch (or bookmark or rev pointer whatever the word is), and give it a local branch name. Here we'll name it pr37:

$ git fetch upstream pull/37/head:pr37
@centic9
centic9 / userDefineLang_Dockerfile.xml
Last active February 23, 2024 09:28
notepad++ syntax highlighting for Dockerfiles, store at something like C:\Users\[user]\AppData\Roaming\Notepad++\userDefineLangs\userDefineLang_Dockerfile.xml
<NotepadPlus>
<UserLang name="Dockerfile" ext="Dockerfile" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="1" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="yes" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00# 01 02 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>