Skip to content

Instantly share code, notes, and snippets.

View suenot's full-sized avatar
🕸️
Deep

Eugen Soloviov suenot

🕸️
Deep
View GitHub Profile

update all in local git

git filter-branch --force --env-filter '
if [ "$GIT_AUTHOR_NAME" = "Your Old Name" ]; then
    GIT_AUTHOR_NAME="Your New Name"
    GIT_AUTHOR_EMAIL="[email protected]"
    GIT_COMMITTER_NAME="Your New Name"
    GIT_COMMITTER_EMAIL="[email protected]"
fi
' --tag-name-filter cat -- --all
mv ~/Library/Application\ Support/Ollama /Volumes/external/ollama
ln -s /Volumes/external/ollama ~/Library/Application\ Support/Ollama
brew install pyenv
pyenv install 3.12.8
pyenv versions
pip install virtualenv
virtualenv -p $(pyenv which python3.12) venv
source venv/bin/activate
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade setuptools-scm
python -m ensurepip --upgrade
@suenot
suenot / btop
Created August 8, 2024 15:31
btop
sudo apt update
sudo apt install snapd
sudo snap install btop
@suenot
suenot / create_faculty_ru.md
Last active August 7, 2024 18:20
create_faculty_ru.md
sudo ufw enable
sudo ufw deny proto tcp from any to any port 9443
sudo ufw deny proto udp from any to any port 9443
sudo ufw status
sudo ufw allow 3006
sudo ufw allow 3007
sudo apt update
sudo apt install -y git curl tmux docker.io docker-compose
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
sudo ufw allow 3006
sudo ufw allow 3007
sudo apt update
sudo apt install -y git curl tmux docker.io docker-compose
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
sudo ufw allow 3006
sudo ufw allow 3007
sudo apt update
sudo apt install -y git curl docker.io docker-compose
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
@suenot
suenot / Open Source License with Commercial Use Restrictions
Created April 23, 2024 13:48
Open Source License with Commercial Use Restrictions
**Open Source License with Commercial Use Restrictions**
**Version 1.0**
**Copyright (c) 2024 [Your Name]**
**Preamble**
This license is intended to be an Open Source license that allows for free use and modification of software for personal and non-commercial purposes. However, it also places restrictions on the use of the software for commercial purposes.