-
Find the culprit sshfs process:
$ pgrep -lf sshfs
-
Kill it:
$ kill -9 <pid_of_sshfs_process>
-
sudo force unmount the "unavailable" directory:
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
absl-py==2.1.0 | |
accelerate==0.31.0 | |
aiohttp==3.9.5 | |
aiosignal==1.3.1 | |
alabaster==0.7.16 | |
annotated-types==0.7.0 | |
anyio==4.4.0 | |
argon2-cffi==23.1.0 | |
argon2-cffi-bindings==21.2.0 | |
array_record==0.5.1 |
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
# download | |
curl -O http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.6.2.tar.gz | |
tar -xvzf openfst-1.6.2.tar.gz | |
rm openfst-1.6.2.tar.gz | |
cd openfst-1.6.2 | |
./configure --enable-python | |
make | |
make install | |
# Test installtion |
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 talib | |
import pandas as pd | |
import glob | |
from tqdm import tqdm | |
def cal_wavetrend(df): | |
df['hlc3'] = (df['high']+df['low']+df['close'])/3 | |
df['esa'] = talib.EMA(df.hlc3, 10) | |
df['d'] = talib.EMA(abs(df.hlc3 - df.esa), 10) | |
df['ci'] = (df['hlc3'] - df['esa']) / (0.015*df['d']) |
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 flask import Flask, request, jsonify | |
from flask_bootstrap import Bootstrap | |
from flask_cors import CORS | |
import torch | |
import pickle | |
from infer_chunking import load_model, infer_sentence | |
task_er, model_er, is_cuda = load_model() | |
app = Flask(__name__) |
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 tqdm import tqdm | |
import requests | |
url = "http://www.ovh.net/files/10Mb.dat" #big file test | |
file_name = url.split('/')[-1] | |
# Streaming, so we can iterate over the response. | |
r = requests.get(url, stream=True) | |
# Total size in bytes. | |
total_size = int(r.headers.get('content-length', 0)) | |
block_size = 1024 #1 Kibibyte |
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 tqdm import tqdm as tqdm | |
from argparse import ArgumentParser | |
import requests | |
def download_file_from_google_drive(id, destination): | |
def get_confirm_token(response): | |
for key, value in response.cookies.items(): | |
if key.startswith('download_warning'): | |
return value |
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
アフガニスタン | |
アルバニア | |
アルジェリア | |
アンドラ | |
アンゴラ | |
アンチグア・バーブーダ | |
アルゼンチン | |
アルメニア | |
オーストラリア | |
オーストリア |