This file contains hidden or 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
import os | |
from pathlib import Path | |
from loguru import logger | |
import sys | |
from contextlib import contextmanager | |
from typing import Optional | |
class FolderLogManager: | |
def __init__(self, base_log_path: str = "logs/base.log"): | |
self.base_log_path = base_log_path |
This file contains hidden or 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
import subprocess | |
import sys | |
import os | |
import pytest | |
from pathlib import Path | |
class TestPythonFileExecution: | |
"""Test class for executing Python files in relative paths using pytest""" | |
This file contains hidden or 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
#!/usr/bin/env python3 | |
""" | |
Git Code Review Prompt Generator | |
Git λ³κ²½μ¬νμ λΆμνκ³ μ½λ 리뷰λ₯Ό μν ν둬ννΈλ₯Ό μλ μμ±νλ λꡬ | |
""" | |
import subprocess | |
import sys | |
import argparse | |
import os |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder