Skip to content

Instantly share code, notes, and snippets.

@MichaelSimons
MichaelSimons / RetrievingDockerImageSizes.md
Last active June 3, 2024 11:44
Retrieving Docker Image Sizes

Retrieving Docker Image Sizes

There are two metrics that are important to consider when discussing the size of Docker images.

  1. Compressed size - This is often referred to as the wire size. This affects how fast/slow images can be pulled from a registry. This impacts the first run experience on machines where images are not cached.
  2. Uncompressed size - This is often referred to as the size on disk. This affects how much local storage is required to support your Docker workloads.

The example commands shown below will work on Windows, MacOS, and Linux.

How to Measure the Compressed Size

@othyn
othyn / guide.md
Last active June 3, 2024 11:42
Fix horrendously bad macOS (12.3.1 tested) SMB (Samba) performance on Unraid

Intro

Out of the box, my SMB performance on macOS 12.3.1 would top out at around 20MB/s in short ~5 second bursts, which was absolutely horrendous, slow to navigate in Finder and slugish to interact with.

Since making these changes, I now get sustained ~80-100MB/s+ and instant Finder navigation which is superb and how things should be out-of-the-box (OOTB)!

May 2023 update: As of Ventura, the SMB issues were just horribly inconsistent and hard to maintain. Something in the combination of Unraid, macOS and SMB just doesn't play nice. I ended up binning NFS/SMB all together and heading to a locally hosted Nextcloud instance for file syncing, then using SFTP/Ansible Git flow for editing files within appdata.

Sources

@ppisarczyk
ppisarczyk / Programming_Languages_Extensions.json
Last active June 3, 2024 11:41 — forked from aymen-mouelhi/languages.json
Programming Languages and their File Extensions
[
{
"name":"ABAP",
"type":"programming",
"extensions":[
".abap"
]
},
{
"name":"AGS Script",
auto x = 42;
auto y = 2.71;
auto z = "hello";
auto f(auto&& x) {
return x + x;
}
auto x = f(21); // x == 42
auto y = f("hello"s); // y == "hellohello"
@rminderhoud
rminderhoud / powershell-web-server.ps1
Last active June 3, 2024 11:39 — forked from 19WAS85/powershell-web-server.ps1
A simple web server built with powershell.
# This is a super **SIMPLE** example of how to create a very basic powershell webserver
# 2019-05-18 UPDATE — Created by me and and evalued by @jakobii and the comunity.
# Http Server
$http = [System.Net.HttpListener]::new()
# Hostname and port to listen on
$http.Prefixes.Add("http://localhost:8080/")
# Start the Http Server
@chponte
chponte / gnu-toolchain.md
Last active June 3, 2024 11:38
Building a complete GNU toolchain, comprised of binutils + gcc + glibc
@sundowndev
sundowndev / GoogleDorking.md
Last active June 3, 2024 11:34
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@eiri
eiri / .curlrc
Created August 21, 2021 03:18
Adding a new node to CouchDB cluster primer
-s
-H "Content-Type: application/json"
-H "Accept: application/json"
-u admin:god
#EXTM3U url-tvg="https://iptvx.one/EPG"
#EXTINF:-1 group-title="Общие", Первый канал HD
http://live-okkotv.cdnvideo.ru/okkotv/1tv.smil/tracks-v1a1/mono.m3u8
#EXTINF:-1 group-title="Общие" tvg-id="pervy", Первый канал HD (Для зарубежья)
http://109.200.135.130:8080/ort_hd/index.m3u8
#EXTINF:-1 catchup="append" catchup-days="7" catchup-source="?offset=-${offset}&utcstart=${timestamp}" group-title="Общие" tvg-id="pervy", Первый канал (Архив)
#EXTVLCOPT:http-user-agent=WINK/1.40.1 (AndroidTV/9) HlsWinkPlayer
https://zabava-htlive.cdn.ngenix.net/hls/CH_1TVSD/variant.m3u8
#EXTINF:-1 group-title="Общие", Первый канал +2
http://213.59.128.165:8888/play/Pervij/index.m3u8