Skip to content

Instantly share code, notes, and snippets.

View ma-he-sh's full-sized avatar
⚙️
Focusing

Mahesh Ranaweera ma-he-sh

⚙️
Focusing
View GitHub Profile
@ma-he-sh
ma-he-sh / gist:a7039fb667517354dbadd27c5a5214fd
Created June 19, 2025 16:49
Proxomox error on installer stuck at "Waiting for /dev to fully populate"
Cause of the issue; VGA/Graphic card driver not recognized;
Reference: Read: https://forum.level1techs.com/t/virtualization-workstation/196968
Solution is to add `nomodeset` to kernal boot commands; Ctrl + e on the proxomox boot menu and edit the grub settings.
https://www.oreilly.com/library/view/mastering-proxmox/9781788397605/9063c916-16f0-4c99-a139-3cc90c31d665.xhtml#:~:text=role%2C%20and%20more.-,Issue%20–%20fresh%20Proxmox%20install%20stuck%20with%20%2Fdev%20to%20be%20a,from%20the%20Proxmox%20boot%20menu
@ma-he-sh
ma-he-sh / installer.sh
Created May 22, 2025 14:16
Install docker and nvidia-container-tookit on Linux Mint 22
#!/bin/bash
set -e # Exit on any error
# Install docker
echo "=== [1/4] Updating APT and Installing Dependencies ==="
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
@ma-he-sh
ma-he-sh / Setup.md
Created May 22, 2025 04:04
Using OLLAMA on Mac :: Ollama MacOS expose on 0.0.0.0 on launch

Create a apple script with following content; use ScriptEditor

-- Launch Ollama with the environment variable
do shell script "export OLLAMA_HOST=http://0.0.0.0:11434; open -a Ollama"

goto Export > Set File Format as Application and save on Applications.

open System Settings > under Login Items & Extensions > add this application as a new launch item.

@ma-he-sh
ma-he-sh / settings.json
Created August 9, 2024 17:03
Zed editor personal config
{
// theme
"theme": "Rosé Pine Moon",
// keymap
"base_keymap": "SublimeText",
"vim_mode": true,
// toolbar
"toolbar": {
"breadcrumbs": false,
"quick_actions": false
@ma-he-sh
ma-he-sh / darkmode.gs
Last active April 1, 2023 17:18
DarkMode for google apps
function onOpen() {
var ui = DocumentApp.getUi();
var menu = ui.createMenu('Dark Mode');
menu.addItem('Enable Dark Mode', 'enableDarkMode');
menu.addItem('Disable Dark Mode', 'disableDarkMode');
menu.addToUi();
}
function enableDarkMode() {
@ma-he-sh
ma-he-sh / setup.md
Created November 17, 2022 06:06
Setting Up Realsense for ROS Noetic on M1 Mac using UTM
@ma-he-sh
ma-he-sh / installer.sh
Created August 9, 2022 04:46
Install docker and docker-compoe for RaspberryPI4
sudo apt update && sudo apt-get upgrade
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker ${USER}
sudo apt-get install libffi-dev libssl-dev
sudo apt install python3-dev
sudo apt-get install -y python3 python3-pip
sudo pip3 install docker-compose
sudo systemctl enable docker
# Install brew (https://brew.sh)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install vim amd Ultimate Vim Configuration
brew install vim git
git clone https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
# Update vimrc
cd ~/.vim_runtime && git pull --rebase && cd -
@ma-he-sh
ma-he-sh / init.vim
Last active January 30, 2021 14:24
neovim setup
call plug#begin()
Plug 'preservim/nerdtree' " NerdTree
Plug 'pangloss/vim-javascript' " JavaScript support
Plug 'leafgarland/typescript-vim' " TypeScript syntax
Plug 'maxmellon/vim-jsx-pretty' " JS and JSX syntax
Plug 'itchyny/lightline.vim' " Status
Plug 'Yggdroot/indentLine' " Indent Lines
Plug 'tpope/vim-fugitive' " Git Support
Plug 'airblade/vim-gitgutter' " Change Lines
@ma-he-sh
ma-he-sh / .antigenrc
Last active January 29, 2021 04:48
ZSH Setup
# Load oh-my-zsh library
antigen use oh-my-zsh
# Load bundles from the default repo (oh-my-zsh)
antigen bundle git
antigen bundle command-not-found
antigen bundle docker
antigen theme af-magic