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
010F00B400000A01020304050607083B00 |
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
<table role="presentation" align="center" border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="#EDF0F3" | |
style="background-color:#edf0f3;table-layout:fixed"> | |
<tbody> | |
<tr> | |
<td align="center"> | |
<center style="width:100%"> | |
<table role="presentation" border="0" class="m_-8216574913864069663phoenix-email-container" | |
cellspacing="0" cellpadding="0" width="512" bgcolor="#FFFFFF" | |
style="background-color:#ffffff;margin:0 auto;max-width:512px;width:inherit"> | |
<tbody> |
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
// out put current directory tree | |
const fs = require('fs') | |
const path = require('path') | |
function outPageTitle() { | |
const appjson = fs.readFileSync('./app.json', 'utf8') | |
const appjsonObj = JSON.parse(appjson) | |
const pages = appjsonObj.pages.concat( | |
...appjsonObj.subPackages.map((item) => { |
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 axios = require('axios'); | |
class Base { | |
constructor(key, language, apiBase = null) { | |
this.key = key; | |
this.language = language; | |
this.currentKeyIndex = 0; | |
} | |
getKey(keyStr) { |
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 fs = require('fs') | |
const path = require('path') | |
const https = require('https') | |
const url = require('url') | |
// Function to fetch a file from a server and save it locally | |
async function fetchAndSaveFile(url, localFilePath) { | |
// mkdir -p localFilePath | |
const dirname = path.dirname(localFilePath) | |
if (!fs.existsSync(dirname)) { |
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 | |
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine | |
# Used to provide DDNS service for my home | |
# Needs the DNS record pre-creating on Cloudflare | |
# Proxy - uncomment and provide details if using a proxy | |
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport> | |
# Cloudflare zone is the zone which holds the record |
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 | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
# echo "Enter the first commit hash:" | |
# read commit1 | |
# echo "Enter the second commit hash:" | |
# read commit2 |
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 | |
max_log_entries=30 | |
# Get the list of branches | |
branches=$(git for-each-ref --sort='-committerdate:iso8601' --format '%(refname:short)' refs/heads/) | |
# Display branch list for user selection | |
PS3="Select two branches for file changes: " |
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 fs = require('fs') | |
const path = require('path') | |
function readDir(dir, extFilter) { | |
let fileList = [] | |
// Function to recursively read directories | |
function readDirectoryRecursive(directory) { | |
// Read the directory | |
fs.readdir(directory, (err, files) => { |
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
/*! | |
* | |
* ap/v1.25.9 | |
* Mon Jun 20 2022 08:37:45 GMT+0000 (Coordinated Universal Time) | |
* | |
*/ | |
var myApp = (function (modules) { | |
var moduleCache = {}; | |
function require(moduleId) { |