View Fastfile
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: "./xxx@xxx.iam.gserviceaccount.com.json", package_name: "m.zhgchg.li", version_code:1000, export_file_path: "./zhgchgli.apk") | |
end |
View index.js
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 |
View redirect.py
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' | |
View call_directory_extension_1.swift
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 { | |
//未啟用 |