Skip to content

Instantly share code, notes, and snippets.

View nanox's full-sized avatar
🏣
Remote

Jose Leonardo Alvarez nanox

🏣
Remote
View GitHub Profile
@nanox
nanox / NotepadPlus-UDL-Dockerfile.md
Created July 5, 2025 04:41 — forked from Sieboldianus/README.md
Notepad++ syntax highlighting for Dockerfiles (Dark version)

Notepad++ syntax highlighting for Dockerfiles (Dark version)

Store userDefineLang_DockerfileDark.xml at %AppData%\Roaming\Notepad++\userDefineLangs\userDefineLang_DockerfileDark.xml and select Language > Dockerfile in Notepad++.

This color theme is specifically compatible with VS2015-Dark-Npp Theme.

Automatically apply style

@nanox
nanox / docker-api-port.md
Created July 4, 2025 17:58 — forked from styblope/docker-api-port.md
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    

I'm not the author the blog post and this gist is a simply a note on my usage based on the original post, https://boxofcables.dev/kvm-optimized-custom-kernel-wsl2-2022/.

I also changed the code that extract the latest to a concrete linux kernel version.

First start with openSUSE Tumbleweed distro and commands below can be used to build the custom kernel and set it to be used for WSL2 distros.

# prepare build deps
sudo zypper -n up
# original from the post
@nanox
nanox / Recompile-your-WSL2-kernel.md
Last active July 4, 2025 01:28 — forked from cerebrate/README.md
Recompile your WSL2 kernel - support for snaps, apparmor, lxc, etc.

WARNING

THIS GIST IS EXTREMELY OBSOLETE. DO NOT FOLLOW THESE INSTRUCTIONS. SERIOUSLY.

IF YOU IGNORE THE ABOVE WARNING, YOU AGREE IN ADVANCE THAT YOU DIDN'T GET THESE INSTRUCTIONS FROM ME, THAT I WARNED YOU, AND THAT I RESERVE THE RIGHT TO POINT AND LAUGH MOCKINGLY IF AND WHEN SOMETHING BREAKS HORRIBLY.

I'll do a write-up of current custom-kernel procedures over on Random Bytes ( https://randombytes.substack.com/ ) one day soon.

NOTE

@nanox
nanox / Compile-Mainline-Kernel-5.11-from-WSL2.md
Last active July 4, 2025 01:26 — forked from oleksis/Compile Mainline Kernel (5.15.0) from WSL2.md
Steps for compile Mainline Kernel Linux using WSL2

Compile Mainline Kernel for WSL2

Steps for compile Kernel Linux 5.11.0 💕 Valentine's Day Edition 💕

Actual Kernel

$ uname -a
Linux DESKTOP-ID 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 GNU/Linux

Work Dir linux

@nanox
nanox / docker-installer-win.ps1
Created July 2, 2025 02:13
How to Setup Docker on Windows Server
# Variables
$dockerFolder = ".\docker" # Binaries location
$installPath = "$env:ProgramFiles\Docker" # Installation directory
$dockerdPath = "$installPath\dockerd.exe"
$dockerServiceName = "docker"
$paths = $env:psmodulePath.Split(';')
$modulePath = Join-Path $paths[0] "DockerMsftProvider"
if (!(Test-Path $modulePath)) {
New-Item -Path $modulePath -ItemType Directory
@nanox
nanox / docker-in-windows.md
Created July 1, 2025 21:48 — forked from gorshkov-leonid/docker-in-windows.md
Docker in Windows without Docker Desktop
@nanox
nanox / openshift-console-on-microshift.md
Last active July 1, 2025 05:51 — forked from adelton/README.md
OpenShift Console on MicroShift

OpenShift Console on MicroShift

On MicroShift 4.13 installed on RHEL 9.2 using Installing and configuring MicroShift clusters product documentation, OpenShift Console can be enabled on port :9000 by fetching the files from this gist and then running

# oc create serviceaccount -n kube-system openshift-console
# bash openshift-console.eval | oc create -f -
@nanox
nanox / hcp-rosa.md
Created June 26, 2025 06:54 — forked from rcarrata/hcp-rosa.md
Hosted Control Planes for ROSA HCP

HyperShift

  • Set environment variables
CLUSTER_NAME="rosa-hcp-rcs"
PREFIX_NAME="hcp-rcs"
REGION="us-east-1"
VERSION="4.14.9"
USER=rcarrata
@nanox
nanox / BoringSSL_on_Windows
Created June 25, 2025 02:22 — forked from sgnn7/BoringCrypto_Windows_DLL
Build BoringCrypto / BoringSSL DLL on Windows 10
PS ...\boringssl> mkdir build
PS ...\boringssl> cd build
PS ...\boringssl> # Create build_boringssl.ps1
PS ...\boringssl\build> powershell -executionpolicy bypass -File .\build_boringssl.ps1
...
DLL is at ...\boringssl\build\outx64\ssl\ssl.dll