Skip to content

Instantly share code, notes, and snippets.

View Kyungpyo-Kim's full-sized avatar
😁

Kyungpyo Kim Kyungpyo-Kim

😁
View GitHub Profile
@Kyungpyo-Kim
Kyungpyo-Kim / download.py
Created May 12, 2024 15:24 — forked from JunhongXu/download.py
A Python script downloading all ICLR and NIPS papers from openreview.net
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
import requests
import os
def download_all_papers(base_url, save_dir, driver_path):
driver = webdriver.Chrome(driver_path)
@Kyungpyo-Kim
Kyungpyo-Kim / nvidia_driver_hold.sh
Created October 12, 2023 06:41
script for holding nvidia drivers version using apt-mark
#!/bin/bash
for i in $(dpkg -l | grep nvidia | awk '{print $2}'); do
echo "apt-mark hold $i"
sudo apt-mark hold $i
done
@Kyungpyo-Kim
Kyungpyo-Kim / tmux.conf
Created April 21, 2023 10:22
byobu setting for MacOS
sudo nano /usr/share/byobu/keybindings/f-keys.tmux
# Change
bind-key -n C-F2 -> bind-key -n C-H
bind-key -n S-F2 -> bind-key -n C-N
@Kyungpyo-Kim
Kyungpyo-Kim / docker_exec.sh
Created March 28, 2023 02:04
docker execution function
# function for executing bash in docker container
function de() {
if [ $# -eq 0 ]; then
echo "Usage: de <container_name>"
return
fi
docker exec -it $1 /bin/bash
}
@Kyungpyo-Kim
Kyungpyo-Kim / .tmux.conf
Created March 12, 2023 06:41 — forked from v-yarotsky/.tmux.conf
Mac OS X tmux config
### INSTALLATION NOTES ###
# 1. Install Homebrew (https://github.com/mxcl/homebrew)
# 2. brew install zsh
# 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh)
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace
# 5. Install iTerm2
# 6. In iTerm2 preferences for your profile set:
# Character Encoding: Unicode (UTF-8)
# Report Terminal Type: xterm-256color
# 7. Put itunesartist and itunestrack into PATH
# enable mouse
set -g mouse on
# change prefix to ctrl + a
set-option -g prefix C-a
# color scheme
set -g default-terminal "xterm"
set -g default-terminal "xterm-256color"
version: "3.5"
services:
brain_dev:
image: git.acelab.ai:8070/brain:${branch}_${tag}_${code_name}_${architecture}
container_name: brain_dev
volumes:
- ~/git:/home/acelab/git
- ~/ws:/home/acelab/ws
- ~/data:/home/acelab/data
touch .env
echo branch=master >> .env
echo tag=v0.1.5 >> .env
echo code_name=`lsb_release -c --short` >> .env
echo architecture=`uname -m` >> .env
echo brain_dev_ip=192.168.100.103 >> .env
echo license_device=/dev/`ls /dev/disk/by-partlabel/a1_driver_license -al | sed 's|.*../../||'` >> .env
echo display=$DISPLAY >> .env
cat .env
version: "3.5"
services:
master_core:
container_name: master_core
image: git.acelab.ai:8070/brain:${branch}_${tag}_${code_name}_${architecture}
user: root
environment:
ROS_DISTRO: "melodic"
ports:
# install opencv3
apt-get -qq update && apt-get install -y --no-install-recommends \
unzip \
doxygen \
file \
gfortran \
gnupg \
gstreamer1.0-plugins-good \
imagemagick \
libatk-adaptor \