Skip to content

Instantly share code, notes, and snippets.

View oleksis's full-sized avatar
💭
Be Happy!

Oleksis Fraga Menéndez oleksis

💭
Be Happy!
View GitHub Profile
@oleksis
oleksis / bpdevs-devcontainer-jekyll-python.md
Last active January 28, 2024 03:21
How Can I Contribute to the Black Python Developers Website using a development containers?

How Can I Contribute to the Black Python Developers Website?

This guide shows you how to contribute to the Black Python Developers website using a development containers. A dev container is a Docker container that provides a full-featured development environment for your project. By using a dev container, you can avoid installing and configuring software on your local machine, and you can ensure that your development environment is consistent and reproducible.

This guide assumes that you have:

@oleksis
oleksis / Lagrange_interpolation.md
Created September 13, 2023 04:06
Lagrange interpolation from Pascal to Python

Pascal

image

var F,L:real;
	i,j,n: integer;
	x:array[1..101] of real;
	y:array[1..101] of real;
@oleksis
oleksis / Docker_Desktop_npipe.md
Last active September 11, 2023 03:41
Docker Desktop named pipe something went wrong
@oleksis
oleksis / Realtek_8812BU_Wireless_USB_Linux.md
Created August 21, 2023 04:24
Compile drivers WiFi5 for Dual Band AC 1300Mbps USB3.0 Adapter
@oleksis
oleksis / Fedora-WSL2.md
Last active March 21, 2024 18:12
Fedora 38 on WSL2 using PowerShell

Fedora 38 x86_64 on WSL2 using PowerShell

Download and import the Fedora base container (Powershell)

$DownloadURL = "https://kojipkgs.fedoraproject.org//packages/Fedora-Container-Base/38/20230801.0/images/Fedora-Container-Base-38-20230801.0.x86_64.tar.xz"
$OutputFile = "$env:USERPROFILE\Downloads\Fedora-Container-Base-38-20230801.0.x86_64.tar.xz"
Invoke-WebRequest -Uri $DownloadURL -OutFile $OutputFile

# Extract the downloaded tarball and move the root file system to the appropriate location
# winget install --id 7zip.7zip
@oleksis
oleksis / customize-Python-REPL-start_up.md
Last active July 29, 2023 06:02
Customize the Python REPL on start-up

image

pythonrc file

~/.pythonrc

import subprocess
import sys

try:
@oleksis
oleksis / GoolRC_X1_RC_drone_ZX-384R_Gear_Cogwheel.md
Last active July 12, 2023 02:05
How to replace the Gear Cogwheel to the Motor

GoolRC X1 RC drone ZX-384R

How to replace the Gear Cogwheel to the Motor

GoolRC X1 RC Amazon

Specifications:

  • Item: RC Drone
  • Material: ABS
  • Motor: Brushed motor
  • Frequency: 2.4Ghz
@oleksis
oleksis / Dockerfile
Last active July 18, 2024 07:16
Rancher Desktop, K3s and Traefik ingress controller
FROM nginx:alpine
COPY . /usr/share/nginx/html
@oleksis
oleksis / Comparison-Python-Launcher-Windows-Unix.md
Created April 22, 2023 15:03
Comparison between Python Launcher for Windows and Unix
Feature Python Launcher for Windows Python Launcher for Unix
Platform Windows Unix-like operating systems
Selecting Python version Based on shebang lines, file extensions, command-line options, using environment variables or configuration files (.ini) Based on shebang lines, using PY_PYTHON environment variables, specifying a specific version or in the the PATH environment variable
Virtual environments Can be used Can be used
Conda environments Not supported Can be used
Interactive mode Available Available
Launching scripts From command line or file explorer From command line
Cross-platform support Not applicable Yes
Install Python on demand Available (via installer)[^1][^2] Not available
@oleksis
oleksis / wsl2- Linux-6.3.md
Last active April 7, 2023 18:43
WSL2 and Custom Linux/x86 Kernel >= v6.3-rc4

WSL2 and Custom Linux/x86 Kernel v6.3-rc4

Follow the Custom Linux/x86 Kernel Configuration for compile the Linux kernel source >= v6.3-rc4 getting this errors:

wsl -d Ubuntu Output:

Catastrophic failure
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/E_UNEXPECTED
Catastrophic failure