name: flux-oci-migrator description: Use this agent when the user needs to migrate Flux HelmRepository resources to OCIRepository resources for Helm chart storage. This includes:\n\n\nContext: User wants to migrate their cert-manager HelmRepository to use an OCI registry.\nuser: "I need to migrate cert-manager from the jetstack HelmRepository to use ghcr.io/cert-manager/charts as an OCI source"\nassistant: "I'll use the flux-oci-migrator agent to help you migrate from HelmRepository to OCIRepository for cert-manager."\n\n\n\n\nContext: User mentions they want to convert multiple HelmRepositories to OCI format.\nuser: "Can you help me convert all my HelmRepositories in the observability namespace to use OCI registries? The new registry is registry.example.com/charts"\nassistant: "I'll launch the flux-oci-migrator agent to migrate your observability HelmRepositories to OCIRepository resources using registry.example.com/charts."\n
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
| .section.presentations.pageContents[] | {title: .startTime, week: .week, url: "http://delivery.streaming.edu:1935/echo/_definst_/\( .thumbnails[0] | capture("https://delivery.streaming.edu/echo/(?<datecode>[0-9]+[0-9]+/[0-9])").datecode)/\(.uuid)/mp4:audio-vga-streamable.m4v/playlist.m3u8"} | "ffmpeg -i '\(.url)' -bsf:a aac_adtstoasc -acodec copy -c copy week-\(.week)-\(.title | scan("[0-9]{4}-[0-9]{2}-[0-9]{2}")).mp4" |
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
| tell application "System Events" | |
| if not (exists process "OmniOutliner") then | |
| do shell script "open -a \"OmniOutliner\"" | |
| end if | |
| end tell | |
| tell application "Skim" | |
| set all_notes to every note of front document | |
| set pdf_name to (name of front document) |
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
| #!/usr/bin/env python | |
| # ReadingListCatcher | |
| # - A script for exporting Safari Reading List items to Markdown and Pinboard | |
| # Brett Terpstra 2015 | |
| # Uses code from <https://gist.github.com/robmathers/5995026> | |
| # Requires Python pinboard lib for Pinboard.in import: | |
| # `easy_install pinboard` or `pip install pinboard` | |
| import plistlib | |
| from shutil import copy | |
| import subprocess |
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 | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |
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 | |
| wget -q -O - "http://downforeveryoneorjustme.com/$1" | grep -E '.*class="domain"' | sed 's/<a href.*>\(.*\)<\/a>/\1/' | sed 's/<\/span>//' |
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 | |
| find $1 -mindepth 1 -maxdepth 1 -type d | while read -r dir | |
| do | |
| pushd "$dir" | |
| echo $dir | |
| if [[ -d ".git" ]]; then | |
| git pull | |
| fi | |
| if [[ -d ".hg" ]]; then | |
| hg pull |
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
| --- Utilities.php.orig 2013-01-17 13:50:22.892638237 +1100 | |
| +++ Utilities.php 2013-01-17 13:49:42.712169200 +1100 | |
| @@ -355,7 +355,7 @@ | |
| /* We use a very strict regex to parse the timestamp. */ | |
| if(preg_match('/^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)' . | |
| - 'T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.\\d+)?$/D', | |
| + 'T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.\\d+)?(Z)?$/D', | |
| $time, $matches) == 0) { | |
| throw new Exception( |
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
| void list_generator(int (*process)(Record, string[]), string options[], string success, string failure){ | |
| bool _recordcount = 0; | |
| Record processing[recordcount]; | |
| for (int i=0; i <= recordcount; i++){ | |
| if ((*process)(records[i], options) > 0){ | |
| processing[++_recordcount] = records[i]; | |
| } | |
| } | |
| if (_recordcount > 0){ | |
| cout << success; |
NewerOlder