-
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 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 importCalendarEventsToSheet() { | |
//Set the calendar ID and text to search for | |
var calendarId = '[email protected]'; | |
var searchText = 'your_search_text'; | |
// Get calendar events | |
var events = getCalendarEvents(calendarId, searchText); | |
//Write event data to the spreadsheet | |
writeEventsToSheet(events); |
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 the posh-git module that provides Git integration, including autocomplete functionality | |
# See http://dahlbyk.github.io/posh-git/ for details. | |
Import-Module posh-git | |
# Generate the autocompletion script for GitHub CLI | |
# See https://cli.github.com/manual/gh_completion for details. | |
Invoke-Expression -Command $(gh completion -s powershell | Out-String) |
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 bitnami/git:latest | |
LABEL maintainer="@chriskyfung" | |
RUN apt update && apt install -y \ | |
curl \ | |
gpg | |
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \ | |
| gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg; | |
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \ | |
| tee /etc/apt/sources.list.d/github-cli.list > /dev/null |
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
<# | |
.SYNOPSIS | |
Resize YouTube thumbnails down to 30% in theBrain Notes | |
.DESCRIPTION | |
Append `#$width=30p$` to the image address within the Markdown files | |
.PARAMETER None | |
.INPUTS |
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
<# | |
.SYNOPSIS | |
Pull Android App data from the internal storage of | |
a device via Android Debug Bridge (adb). | |
.DESCRIPTION | |
The Adb-PullAppData.ps1 script uses interavtive prompts to guide you pull app data | |
from (/sdcard/Android/data/$APPNAME) to the local machine. |
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
#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 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 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 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 |
NewerOlder