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/bash | |
# Enhanced History Viewer v1.0 - Flexible Timestamp Formats | |
# Generated by Qwen2.5-Max | |
# Get the script name correctly for both sourced and executed contexts | |
SCRIPT_NAME=$(basename "${BASH_SOURCE[0]}") | |
# Function to display help message | |
show_help() { | |
echo "Usage: source $SCRIPT_NAME [OPTIONS]" |
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/bash | |
# Comprehensive Log Helper v2.3.0 - Quick View & Man Page Support | |
# Generated by Qwen2.5-Max | |
LOG_FILE="$HOME/admin.log" | |
VALID_LEVELS=("INFO" "WARN" "ERROR") | |
RED='\033[0;31m' | |
YELLOW='\033[1;33m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color |
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
/** | |
* Welcome to Cloudflare Workers! This is your first worker. | |
* | |
* - Run "npm run dev" in your terminal to start a development server | |
* - Open a browser tab at http://localhost:8787/ to see your worker in action | |
* - Run "npm run deploy" to publish your worker | |
* | |
* Learn more at https://developers.cloudflare.com/workers/ | |
*/ |
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/bash | |
# Script to delete all workflow runs for workflows with the status "disabled_manually" | |
# This script uses the --jq option of GitHub CLI to filter JSON data directly, | |
# avoiding the need to pipe through the jq command. | |
# Modified from: https://stackoverflow.com/a/67000032 | |
# Define your organization and repository | |
org=<your org> | |
repo=<your repo> |
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
# Custom bash completion function for 'gh repo clone' command | |
# | |
# Copyright (C) 2024 Chris K.Y. Fung (chriskyfung.github.io) | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# To use these routines: | |
# | |
# 1) Copy this file to somewhere (e.g. ~/.gh-repo-clone-completion.bash). | |
# 2) Add the following line to your .bashrc/.zshrc: |
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
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 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
# 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 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
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 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
<# | |
.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 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
<# | |
.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. |
NewerOlder