Skip to content

Instantly share code, notes, and snippets.

@zeX514
zeX514 / clover_boot_flags.md
Created June 23, 2022 08:31 — forked from pjobson/clover_boot_flags.md
Clover Boot Flags

Clover Boot Flags

Flag Description
-v Verbose Mode
-x Safe Mode
-s Single User Mode
-no-zp Zone Postponing (use if hanging)
cpus=1 Single CPU Core Mode
-f No Kext Cache Mode (use if hanging)
@zeX514
zeX514 / fibo.go
Created March 15, 2022 12:32
GoLang Fibonacci with cache
package pkg
import (
"math/big"
)
var cache = make(map[int]*big.Int, 0)
// Fibo calc
func Fibo(n int) *big.Int {
@zeX514
zeX514 / docker-help.md
Created February 5, 2022 13:45 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@zeX514
zeX514 / async-defer-module.md
Created December 11, 2021 18:24 — forked from jakub-g/async-defer-module.md
async scripts, defer scripts, module scripts: explainer, comparison, and gotchas

<script> async, defer, async defer, module, nomodule, src, inline - the cheat sheet

With the addition of ES modules, there's now no fewer than 24 ways to load your JS code: (inline|not inline) x (defer|no defer) x (async|no async) x (type=text/javascript | type=module | nomodule) -- and each of them is subtly different.

This document is a comparison of various ways the <script> tags in HTML are processed depending on the attributes set.

If you ever wondered when to use inline <script async type="module"> and when <script nomodule defer src="...">, you're in the good place!

Note that this article is about <script>s inserted in the HTML; the behavior of <script>s inserted at runtime is slightly different - see Deep dive into the murky waters of script loading by Jake Archibald (2013)

@zeX514
zeX514 / dom.js
Created November 18, 2021 08:35 — forked from amantheroot/dom.js
JavaScript DOM Manipulation cheat sheet by Traversy Media
// EXAMINE THE DOCUMENT OBJECT //
// console.dir(document);
// console.log(document.domain);
// console.log(document.URL);
// console.log(document.title);
// //document.title = 123;
// console.log(document.doctype);
// console.log(document.head);
// console.log(document.body);