Skip to content

Instantly share code, notes, and snippets.

@ysyyork
ysyyork / zephyr_docker_env_ubuntu_22.04_env_setup.sh
Created July 31, 2023 12:27
Zephyr test ubuntu 22.04 env setup
# 1. Install docker engine
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
@ysyyork
ysyyork / zephyr_nrf5340_zephyr_test_env_setup.sh
Last active July 12, 2023 11:45
zephyr nrf5340 zephyr test
# 1. Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.profile
# 2. Install pyenv
brew install pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
echo 'eval "$(pyenv init -)"' >> ~/.profile
@ysyyork
ysyyork / Install NVIDIA Driver and CUDA.md
Last active October 20, 2018 01:22 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@ysyyork
ysyyork / # opencv3 - 2017-04-03_20-51-13.txt
Created April 4, 2017 01:45
opencv3 (homebrew/science/opencv3) on macOS 10.12.1 - Homebrew build logs
Homebrew build logs for homebrew/science/opencv3 on macOS 10.12.1
Build date: 2017-04-03 20:51:13
@ysyyork
ysyyork / deploy.rb
Created August 28, 2016 20:24 — forked from bkutil/deploy.rb
Start and Stop tasks for resque workers and resque scheduler with capistrano deploy hook (without God)
after "deploy:symlink", "deploy:restart_workers"
after "deploy:restart_workers", "deploy:restart_scheduler"
##
# Rake helper task.
# http://pastie.org/255489
# http://geminstallthat.wordpress.com/2008/01/27/rake-tasks-through-capistrano/
# http://ananelson.com/said/on/2007/12/30/remote-rake-tasks-with-capistrano/
def run_remote_rake(rake_cmd)
rake_args = ENV['RAKE_ARGS'].to_s.split(',')