StoryCode

vi.붙여넣기,paste.오류.밀려남.

Server 관리/Linux
반응형

긴 다수의 문장들을 붙여넣다보면 밀려나서 정렬이 깨지는 경우,

:set paste

:set nopaste

반응형

'Server 관리 > Linux' 카테고리의 다른 글

Command.병렬실행.명령  (0) 2023.01.24
crontab.실행이 잘 안될때  (0) 2023.01.07
bash.shell.script.$변수.bad substitution  (0) 2022.12.19
Centos6.GLIBC2.28.forDockerInstall  (0) 2022.05.16
SSH 보안 설정  (0) 2022.01.13

MSSQL.Client.MSSQL-TOOLS.SQLCMD.Ubuntu22 설치

Database 관리/MSSQL
반응형

# https://learn.microsoft.com/ko-kr/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver16#ubuntu18

 

nmap --script ssl-enum-ciphers 202.30.110.132 # Check 1433.TLSv1.0

1433/tcp open  ms-sql-s
| ssl-enum-ciphers:
|   TLSv1.0: # <============= 확인
|     ciphers:
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (ecdh_x25519) - A
|       TLS_DHE_RSA_WITH_AES_256_CBC_SHA (dh 2048) - A
|       TLS_DHE_RSA_WITH_AES_128_CBC_SHA (dh 2048) - A
|     compressors:
|       NULL
|     cipher preference: server
|     warnings:
|       Weak certificate signature: SHA1
|_  least strength: A
  vi /etc/ssl/openssl.cnf
    [system_default_sect]
    MinProtocol = TLSv1 #<=========== TLVv1
    CipherString = DEFAULT:@SECLEVEL=0 #<======= No Cipher
if ! [[ "18.04 20.04 22.04" == *"$(lsb_release -rs)"* ]];
then
    echo "Ubuntu $(lsb_release -rs) is not currently supported.";
    exit;
fi

sudo su
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -

curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list > /etc/apt/sources.list.d/mssql-release.list

exit
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
# optional: for bcp and sqlcmd
sudo ACCEPT_EULA=Y apt-get install -y mssql-tools18
echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc
source ~/.bashrc
# optional: for unixODBC development headers
sudo apt-get install -y unixodbc-dev

cd /opt/mssql-tools18/bin
./sqlcmd -C -S 123.456.789.012 -U userid -P password # -C 는 Error.Protocol 발생시 추가
    1> user master
    2> select @@ServiceName
    3> go
반응형

bash.shell.script.$변수.bad substitution

Server 관리/Linux
반응형

"${myvar }"에서 myvar 뒤에 빈칸때문에 발생하기도 한다.

반응형

'Server 관리 > Linux' 카테고리의 다른 글

crontab.실행이 잘 안될때  (0) 2023.01.07
vi.붙여넣기,paste.오류.밀려남.  (0) 2022.12.30
Centos6.GLIBC2.28.forDockerInstall  (0) 2022.05.16
SSH 보안 설정  (0) 2022.01.13
Centos, 센토스 server minimal 이후 추가 설치  (0) 2021.12.21

print().5 Ways

Python, 파이썬
반응형
No Way  
1 print(name + ' : ' + str(age))
2 print(name, ':', age)
3 print(f'{name} : {age}')
4 print('%s : %s' % (name, age))
5 print('{} : {}'.format(name, age))

 

 

반응형

'Python, 파이썬' 카테고리의 다른 글

..., :, Ellipsis  (0) 2023.09.21
Debugging.디버깅.breakpoint()  (0) 2023.09.20
print.format.text.lpad.rpad  (0) 2022.12.18
Ubuntu.pip3 설치  (0) 2022.09.27
python 버전 관리  (0) 2021.12.17

print.format.text.lpad.rpad

Python, 파이썬
반응형

print(f'{text}')

print(f'{text:#<20}') # rpad

print(f'{text:>20}') # lpad

print(f'{text:.^20}') # lrpad ( center text )

 

반응형

'Python, 파이썬' 카테고리의 다른 글

Debugging.디버깅.breakpoint()  (0) 2023.09.20
print().5 Ways  (0) 2022.12.18
Ubuntu.pip3 설치  (0) 2022.09.27
python 버전 관리  (0) 2021.12.17
유튜브 업로드  (0) 2021.04.06

Chrome.Console.elapsed.time.시간측정

JavaScript, ECMAScript
반응형

console.time('my time');

document.querySelector('a');

console.timeEnd('my time');

반응형

'JavaScript, ECMAScript' 카테고리의 다른 글

게시판.이미지.Image.Upload  (0) 2023.04.28
음성,Speak,Speech  (0) 2022.12.01
Chrome Browser Rendering FPS 측정  (0) 2022.11.20
Indexed DB  (0) 2022.08.03
디버깅.Debugging.VSC.VisualStudioCode.연동  (0) 2022.07.28

음성,Speak,Speech

JavaScript, ECMAScript
반응형

u = new SpeechSynthesisUtterance("우리는 말안하고 살수가 없나~");

window.speechSynthesis.speak(u);

반응형

'JavaScript, ECMAScript' 카테고리의 다른 글

게시판.이미지.Image.Upload  (0) 2023.04.28
Chrome.Console.elapsed.time.시간측정  (0) 2022.12.03
Chrome Browser Rendering FPS 측정  (0) 2022.11.20
Indexed DB  (0) 2022.08.03
디버깅.Debugging.VSC.VisualStudioCode.연동  (0) 2022.07.28