This file contains 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
$ FILE=/some/path/to/file.txt | |
################################### | |
### Remove matching suffix pattern | |
################################### | |
$ echo ${FILE%.*} # remove ext | |
/some/path/to/file | |
$ FILE=/some/path/to/file.txt.jpg.gpg # note various file exts |
This file contains 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
[client] | |
port = 3306 | |
socket = /var/lib/mysql/mysql.sock | |
[mysqld] | |
port = 3306 | |
server_id = 123456 | |
datadir = /var/lib/mysql | |
tmpdir = /var/lib/mysql |
This file contains 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 | |
#Harbor on Ubuntu 18.04 | |
#Prompt for the user to ask if the install should use the IP Address or Fully Qualified Domain Name of the Harbor Server | |
#PS3='Would you like to install Harbor based on IP or FQDN? ' | |
#select option in IP FQDN | |
#do | |
# case $option in | |
# IP) |
This is a SCRIPT-8 cassette.
This is a SCRIPT-8 cassette.
This is a SCRIPT-8 cassette.
This file contains 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
a.single-product { | |
position: relative; | |
overflow: hidden; | |
display: block; | |
} | |
a.single-product::before { | |
content: '售出'; | |
display: block; | |
background-color: #de2424; |
This file contains 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
// 在瀏覽器網址列輸入以下程式碼,或者是新增一個我的最愛項目,把網址的內容改為以下即可。 | |
// 搜尋currentEncoding=2,targetEncoding=1 (簡轉繁)反之(繁轉簡)請自行修改 | |
javascript:"use strict";var ts=document.createElement("script");ts.setAttribute("src","https://52.197.103.234/chinese_convert.js");var _document$getElements=document.getElementsByTagName("head"),head=_document$getElements[0];head.appendChild(ts),ts.onload=function(){currentEncoding=2,targetEncoding=1,translateBody()}; |
This file contains 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
// Example "姓名" (姓名) | |
// it can be used for placehoder of input | |
"姓名".charCodeAt(0) | |
> 22995 | |
"姓名".charCodeAt(1) | |
> 21517 | |
"姓名".charCodeAt(0).toString(16) | |
> "59d3" |
NewerOlder