-
custom-HTML-for-rendering-Algolia-search-results.html
-
Exclude-specific-pages-from-Indexing-by-WP-Search-with-Algolia.php
-
Rewrite-URLs-for-WP-Search-with-Algolia.php
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
#Requires -RunAsAdministrator | |
Try { | |
# Disable all Virtual Ethernet Adapters except the Virtual Ethernet Adapter for BlueStacks | |
Get-NetAdapter -Name "vEthernet *" | where Name -inotmatch ‘BluestacksNxt’ | Disable-NetAdapter -Confirm:$false | |
# Ensure the Virtual Ethernet Adapter for BlueStacks is active | |
Enable-NetAdapter -Name "vEthernet (BluestacksNxt)" | |
# Disable Large Send Offload (LSO) for all Virtual Ethernet Adapters. Learn more: https://learn.microsoft.com/en-us/windows-hardware/drivers/network/performance-in-network-adapters#supporting-large-send-offload-lso |
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
<?php | |
// Function to add additional URLs to the URL queue | |
function add_additional_urls( $url_queue ) { | |
// Array of additional URLs to add | |
$additional_urls = array( | |
'/ads.txt', | |
'/_redirects', | |
// Add your URL paths below: | |
// '/en/category/category1/page/2/', | |
// '/en/category/category1/page/3/', |
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
version: '3.9' | |
services: | |
wordpress: | |
image: 'wordpress:latest' # Use the latest WordPress image | |
depends_on: | |
- "db" # Ensures that the db service is started before WordPress | |
env_file: .env # Load environment variables from an external file | |
environment: | |
WORDPRESS_DB_HOST: db # Database host, uses the service name 'db' | |
WORDPRESS_DB_NAME: '${MYSQL_DATABASE}' # Database name, loaded from environment |
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
# source file: https://gist.github.com/chriskyfung/e4c863699223206c23a05eebb89faa13 | |
# last update at 2021-07-17T19:36:05+00:00 | |
from datetime import datetime | |
from facebook_scraper import get_posts | |
import urllib | |
# Parameters | |
FBPAGE_ID = 'medium' # e.g. The name of target facebook page | |
NUMOFPAGES = 3 # How many posts to scrape |
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
/* | |
This file is the Google Apps Script for the Google Sheet called "Calendar_Inspector_for_Todoist_Log". | |
The main usage is to scan and compare the events on Google Calendar with the Todoist records | |
available from IFTTT log file. | |
*/ | |
// Create menu items in the Google Sheet UI | |
function onOpen() { | |
var ui = SpreadsheetApp.getUi(); |
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
# 導入 google.colab 的 drive 模組,在虛擬機中掛載 Google Drive 為路徑 '/gdrive'。 | |
from google.colab import drive | |
drive.mount('/gdrive') | |
# 將當前目錄更改為雲端硬碟的根目錄 | |
%cd /gdrive/My Drive/ | |
# 卸載 Google Drive 實例 | |
drive.flush_and_unmount() |
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
""" | |
Simple python script to upload a file to Trello. | |
This script is a demo - done to show how to do it - it doesn't have | |
much practical purpose as it requires the use of a number of tokens | |
and identifiers which you can only get programmatically or by visiting | |
the website (in which case you may as well upload the attachment directly.) | |
You should read the Trello API docs prior to using this: | |
https://trello.com/docs/gettingstarted/index.html |
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/sh | |
#title :gulp-build.sh | |
#description :This script will run GULP build if the gulpfile.js or any .js files are commited to change. | |
#author :@chriskyfung | |
#date :2021-06-02 | |
#version :1.0 | |
#usage :Run this script with Git Bash on Windows or Bash shell on Unix/Linux | |
#prerequisite :Installed NVM with Node.js 10.13.1 | |
#============================================================================== |
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
// ==UserScript== | |
// @name My Favorite Notion Template Highlighter | |
// @namespace https://chriskyfung.github.io/ | |
// @version 0.1 | |
// @description Highlight my favorite items on the Notion Template Gallery | |
// @author @chriskyfung | |
// @match https://www.notion.so/Notion-Template-Gallery-* | |
// @grant none | |
// ==/UserScript== |