Skip to content

Instantly share code, notes, and snippets.

View eugengi's full-sized avatar
🧪
In some shell or REPL

Eugene Mwangi eugengi

🧪
In some shell or REPL
View GitHub Profile
@eugengi
eugengi / 0-go-os-arch.md
Created September 5, 2024 19:22 — forked from asukakenji/0-go-os-arch.md
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
@eugengi
eugengi / terminal_emojis.md
Created June 28, 2024 06:38 — forked from nicolasdao/terminal_emojis.md
Terminal emojis. Keywords: terminal console symbol emoji emoticon icon
Emoji Name Text example
🚀 Rocket You're up
📦 Package Installing additional dependencies...
Hook Running completion hooks...
📄 Document Generating README.md...
🎉 Party Successfully created project hello-vue.
👉 Next Get started with the following commands:
Tick Task completed
Magic Assembling project...
@eugengi
eugengi / pep20_by_example.py
Created June 25, 2024 06:22 — forked from evandrix/pep20_by_example.py
PEP 20 (The Zen of Python) by example
#!/usr/bin/env python
"""
=====================================
PEP 20 (The Zen of Python) by example
=====================================
Usage: %prog
:Author: Hunter Blanks, hblanks@artifex.org / hblanks@monetate.com
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
@eugengi
eugengi / bash-template
Created June 20, 2024 14:11 — forked from renzok/bash-template
A template bash script based on google style guide with some little improvements
#!/bin/bash
# Here short description of this script
# This is just a template to be used for writing new bash scripts
###
# Based on Google Style Guide: https://google.github.io/styleguide/shell.xml
# General remarks
# * Executables should have no extension (strongly preferred) or a .sh extension.
# * Libraries must have a .sh extension and should not be executable
@eugengi
eugengi / zsh-virtualenv-setup.md
Created August 28, 2023 06:27 — forked from dixneuf19/zsh-virtualenv-setup.md
Setup python, pip, virtualenv and virtualwrapper, with zsh on a new machine
@eugengi
eugengi / docker-wsl2-memory-limits.md
Last active April 3, 2023 12:07 — forked from jctosta/docker-wsl2-memory-limits.md
You can limit docker-windows memory usage by adjusting some parameters in wsl2 configuration.

Limit WSL2 Memory Usage when using Docker for Windows

You can limit docker-windows memory usage by adjusting some parameters in wsl2 configuration.

First, close any instances of Docker Windows currently running and create a new file named .wslconfig in your user home directory, like C:\Users<username>:

[wsl2]
memory=4GB
processors=5