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
// Constant variables | |
const notionToken = "XXXXX"; | |
const safeToken = "XXXXX"; | |
function doGet(e) { | |
const ics = HtmlService.createTemplateFromFile('ics'); | |
if (e.parameter.token != safeToken) { | |
return ContentService.createTextOutput("Access Denied!"); | |
} |
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
lane :test do | options | | |
apk_downloader(json_key: "./[email protected]", package_name: "m.zhgchg.li", version_code:1000, export_file_path: "./zhgchgli.apk") | |
end |
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
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
const express = require('express'); | |
const cors = require('cors'); | |
const app = express(); | |
admin.initializeApp(); | |
app.use(cors({ origin: true })); | |
// Distributed counters Like Post |
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
from mitmproxy import http | |
def request(flow: http.HTTPFlow) -> None: | |
# pretty_host takes the "Host" header of the request into account, | |
# which is useful in transparent mode where we usually only have the IP | |
# otherwise. | |
# 請求參數設定 Example: | |
flow.request.headers['User-Agent'] = 'MitmProxy' | |
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
import CallKit | |
// | |
//...... | |
// | |
if #available(iOS 10.0, *) { | |
CXCallDirectoryManager.sharedInstance.getEnabledStatusForExtension(withIdentifier: "這裡輸入call directory extension的bundle identifier", completionHandler: { (status, error) in | |
if status == .enabled { | |
//啟用中 | |
} else if status == .disabled { | |
//未啟用 |