原创 postgresql 表的導出與導入數據
#!/bin/bash set -e set -x # 導出數據 export PGPASSWORD='db user passwd' psql -h host -U user -d dbname -c "\copy ( se
原创 html郵件內容兼容主流郵箱的編寫規則
郵件分類: 第一類,郵件內容佈局在整個郵箱的某個div中,如gmail、hotmai、sohu等。 第二類,郵件內容佈局在獨立的iframe中,如163、sina等。 Html編寫規則: 不寫style標籤,僅用內聯樣式,不
原创 vue 內部使用axios需注意this的使用
三種寫法 以下有三種寫法,注意 第一種 的坑!!!其餘兩種任意採用一種皆可。 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <titl
原创 flex 佈局骰子
dice.scss .main { width: 100%; height: 100%; display: flex; -webkit-display: flex; flex-directi
原创 ubuntu 設置時區
sudo timedatectl set-timezone Asia/Shanghai
原创 shell echo -e
man echo ECHO(1) User Commands
原创 AttributeError: module 'pytesseract' has no attribute 'image_to_string'
問題 $ python3 pytesseract.py Traceback (most recent call last): File "pytesseract.py", line 1, in <module> imp
原创 postgresql psql查看/修改 服務端與客戶端的編碼
查看編碼 (show) test=# \encoding SQL_ASCII test=# show client_encoding; client_encoding ----------------- SQL_ASCII
原创 mac os zcat: can't stat:
Question: mac os zcat: can’t stat: $ zcat test.gz zcat: can’t stat: test.gz (test.gz.Z): No such file or director
原创 ls sort by time
linux man ls -l (The lowercase letter ``ell''.) List in long format. (See below.) A total sum for all the f
原创 GET vs. POST
HTTP POST requests supply additional data from the client (browser) to the server in the message body. In contrast,
原创 Laravel Phpunit Test
Create php test unit case php artisan make:test GetPosTest —unit vim tests/Unit/GetPosTest.php <?php namespace Te
原创 git 倉庫遷移(all branches and tags)
方式1: git clone --bare old.git cd old.git git push --mirror new.git 方式2: git clone --mirror old.git cd old.git git
原创 git clone ssh 方式無法使用
問題 git clone [email protected]:test123.git Cloning into 'test123'... ssh_exchange_identification: read: Connection reset
原创 bash: /usr/bin/curl: Argument list too long
Problem exec curl alert “bash: /usr/bin/curl: Argument list too long” image=base64 test.jpg curl -X POST -F 'image=