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
#!/bin/bash | |
###################################################################### | |
# Description: This script installs a Ricoh printer on macOS using lpadmin. | |
# Usage: Intended for use within a Jamf policy. | |
# | |
# DISCLAIMER: Use at your own risk. The author is not responsible | |
# for any issues or damages resulting from the use of this script. | |
# | |
# NOTES: |
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
@echo off | |
:: 安裝 Chocolatey | |
where choco >nul 2>nul | |
if %errorlevel% neq 0 ( | |
echo Installing Chocolatey... | |
powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" | |
:: 重新載入 PATH 變數 | |
for /f "tokens=2 delims==" %%A in ('setx /m Path') do ( |
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
server { | |
server_name order.ocard.co d.ocard.co; | |
root /var/www/order.ocard.co; | |
index index.html index.php; | |
listen 443 ssl; | |
ssl_certificate /etc/nginx/ssl/ocard.co.chained.crt; | |
ssl_certificate_key /etc/nginx/ssl/ocard.co.key; |
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
<head> | |
<meta name="viewport" content="width=device-width"> | |
<title>LINE MUSIC22</title> | |
<link rel="shortcut icon" type="image/x-icon" href="https://vos.line-scdn.net/music-img/favicon.png" /> | |
<meta property="og:title" content="LINE MUSIC" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:url" content="https://music-tw.line.me/" /> | |
<meta property="og:image" content="https://vos.line-scdn.net/music-img/icon167Pt%403x.png" /> | |
<meta property="og:site_name" content="LINE MUSIC" /> | |
<meta property="og:description" content="Enjoy Music on LINE" /> |
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
function mask_cell($cell) { | |
$cell_array = explode(' ', $cell); | |
$length = count($cell_array); | |
$masked = ''; | |
for ($i = 0; $i < count($cell_array); $i++) { | |
if ($i != ($length - 2)) { | |
$masked .= $cell_array[$i]; | |
} else { | |
$masked .= str_repeat('·', strlen($cell_array[$i])); |
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
var csvArray = []; | |
this.exportOrders.forEach(function(order, index) { | |
var csvEntry = [order.id, order.card.from , order.card.to, order.card.content]; | |
csvArray.push(csvEntry); | |
}); | |
// http://papaparse.com | |
var csvString = Papa.unparse({ | |
fields: ['訂單編號', '卡片 From', '卡片 To', '內容'], |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Test</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.2/photoswipe.min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.2/default-skin/default-skin.min.css"> | |
<link rel="stylesheet" href="./css/style.css"> | |
</head> |
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
/wp-json/wc/v1/orders?filter[meta_query][0][key]=_shipping_date&filter[meta_query][0][value][0]=2017/01/01&filter[meta_query][0][value][1]=2017/01/31&filter[meta_query][0][compare]=BETWEEN |
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
// 重開機 | |
sudo reboot | |
// 設定檔測試 | |
sudo nginx -t | |
// 重啟 nginx | |
sudo systemctl reload nginx | |
// 重啟 PHP FPM |
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
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); |
NewerOlder