Skip to content

Instantly share code, notes, and snippets.

@paul-asvb
paul-asvb / install.sh
Last active December 19, 2023 19:05
privategpt
echo "hello test"

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
@paul-asvb
paul-asvb / install-all-for-basic-gitlab-runner.sh
Last active October 12, 2018 16:54
install-all-for-basic-gitlab-runner.sh
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-386
sudo chmod +x /usr/local/bin/gitlab-runner
curl -sSL https://get.docker.com/ | sh
sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
# Needs fresh login to work
sudo usermod -aG docker $USER
# works immediately
sudo chmod 666 /var/run/docker.sock
sudo apt-get update && sudo apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo touch /etc/apt/sources.list.d/kubernetes.list
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64
sudo chmod +x /usr/local/bin/gitlab-runner
sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
@paul-asvb
paul-asvb / install-pip-ubuntu-16-04.sh
Last active May 11, 2018 16:06
python3-install-pip-ubuntu-16-04.sh
curl -O https://bootstrap.pypa.io/get-pip.py get-pip.py
python3 get-pip.py
#!/usr/bin/env bash
current_path=$(pwd)
docker run -it --rm -v $current_path/neuro:/home/neuro/nipype_tutorial -p 80:8888 miykael/nipype_tutorial jupyter notebook