Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/** | |
* This is a servlet that enables to download a package of a JCR subtree without | |
* having to create a package in the package manager. The package is | |
* created on the fly, and not saved to disk / the repository, so this is | |
* better suited to large content trees, but valuable also for quickly downloading | |
* a page. | |
* | |
* CAUTION: not suitable for production, only for internal testing systems! | |
* | |
* Usage with curl e.g. |
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
// see also https://platform.openai.com/playground?mode=complete | |
// command line example: | |
// node suggestCommand.js "Write a bash command line to do the following: log the last 3 git commits" | |
// Needs an API key in ~/.openaiapi , see https://beta.openai.com/docs/api-reference/authentication | |
// Idea for a shellscript calling that. You could also add things to the prompt there. | |
// #!/bin/bash | |
// node "$(dirname "$(readlink -f "$0")")/suggestCommand.js" "$*" | |
const axios = require('axios'); | |
const fs = require('fs'); |
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
/* jshint -W028 */ | |
// bookmarklets to summarize the shown webpage. | |
// replace XXXInsertAPIKeyHereXXX with your API key to use these bookmarklets. | |
// this summarizes the text on the page. (We might have to cut it down to 3000 words, because the API has a limit of 3000 words.) | |
javascript:(async () => { | |
var apikey = "XXXInsertAPIKeyHereXXX"; | |
const maxwordcount = 2500; | |
try { |
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
#!/usr/bin/env bash | |
# Demoscript erzeugt mit Github Copilot, vergleiche https://youtu.be/CMB1HEr5MnM | |
# Ist auch durchaus verwendbar. :-) | |
function usage() { | |
cat <<EOF | |
Verwendung: $0 [-h] [-l] [-v] [tag] | |
Führt einen Build / ein Deployment mit einem für das aktuelle Verzeichnis konfigurierten Befehle aus. | |
Der Script sucht nach einer Konfigurationsdatei mit dem Namen .deploycmds im aktuellen Verzeichnis |
OlderNewer