This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in $(dpkg -l | grep nvidia | awk '{print $2}'); do | |
echo "apt-mark hold $i" | |
sudo apt-mark hold $i | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 \ |
NewerOlder