접기
자세한 내용
# source: http://st-on-it.blogspot.com/2010/01/how-to-move-folders-between-git.html | |
# First of all you need to have a clean clone of the source repository so we didn't screw the things up. | |
git clone git://server.com/my-repo1.git | |
# After that you need to do some preparations on the source repository, nuking all the entries except the folder you need to move. Use the following command | |
git filter-branch --subdirectory-filter your_dir -- -- all | |
# This will nuke all the other entries and their history, creating a clean git repository that contains only data and history from the directory you need. If you need to move several folders, you have to collect them in a single directory using the git mv command. |
import time | |
import asyncssh | |
import asyncio | |
params = range(10) | |
async def run(): | |
async with asyncssh.connect("localhost", 8090, username="tester", password="t35t3r", known_hosts=None) as conn: | |
for param in params: | |
await conn.create_process(f"nohup very_very_long_run.sh {param} &") |
ssh pi@pi_ip_address "sudo sed -i 's/"\""au/au/' /etc/vim/vimrc" |
python3 -c 'from pathlib import Path; import yaml; print(yaml.safe_load(Path("/proc/cpuinfo").read_text().replace("\t", " ")).get("Serial"))' |
echo $(curl -s 'https://ident.me') |
자세한 내용
def retrieve_name(var): | |
callers_local_vars = inspect.currentframe().f_back.f_locals.items() | |
return [var_name for var_name, var_val in callers_local_vars if var_val is var][0] | |
def retrieve_names(var): | |
callers_local_vars = inspect.currentframe().f_back.f_locals.items() | |
return [var_name for var_name, var_val in callers_local_vars if var_val is var] | |
aaa="kkk" | |
bbb="kkk" |
Ubuntu 19.10에서 Visual Studio Code 사용 중 한영 전환키를 누르고 한글을 입력하려 했더니,
한글 입력이 안되고 영어만 계속 입력되는 현상을 발견했다. 그래서 인터넷을 검색해 봤더니
snap 형식의 Visual Studio Code를 설치한 경우에, Ubuntu의 입력기인 IBus와 충돌해서 일어나는
현상이라고 한다. 그런데 .deb
형식의 Visual Studio Code를 설치한 경우에는 그런 문제가
없다는 사실을 알게 되어, 설치해 봤더니 한글 입력이 정상적으로 이루어지는 것을
확인했다. 그래서 같은 문제를 겪는 사람들을 위해 이 해결법을 공유하고자 한다.
먼저 이미 설치되어 있는 snap 형식의 Visual Studio Code를 제거한다.