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
| if status is-interactive | |
| # Export ghcr token from 1password to env for this session | |
| export GPR_NPM_INSTALL_TOKEN=$(op read "op://<vault>/<entry>/<field>") | |
| eval "$(starship init fish)" | |
| # Switch node version on entering a dir with .nvmrc | |
| function __nvm_cd_shim --on-variable PWD | |
| if test -e ./.nvmrc | |
| nvm use --silent |
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
| tap "uselagoon/lagoon-cli" | |
| brew "docker-compose" | |
| brew "fish" | |
| brew "fisher" | |
| brew "gh" | |
| brew "git-flow-next" | |
| brew "nvm" | |
| brew "starship" | |
| brew "uselagoon/lagoon-cli/lagoon" | |
| cask "1password" |
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
| export NODE_VERSION="22.11.0" \ | |
| && addgroup -g 1001 node \ | |
| && adduser -u 1001 -G node -s /bin/sh -D node \ | |
| && apk add --no-cache \ | |
| libstdc++ \ | |
| && apk add --no-cache --virtual .build-deps \ | |
| curl \ | |
| && ARCH= OPENSSL_ARCH='linux*' && alpineArch="$(apk --print-arch)" \ | |
| && case "${alpineArch##*-}" in \ | |
| x86_64) ARCH='x64' CHECKSUM="95e9a410b7ce732705493cd44496c8e77ccb11516c75c2ef794f19a9943d178c" OPENSSL_ARCH=linux-x86_64;; \ |
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
| # specify a directory to install | |
| cask_args appdir: '/Applications' | |
| # install packages | |
| tap "homebrew/bundle" | |
| tap "homebrew/cask" | |
| tap "github/gh" | |
| tap "amazeeio/lagoon-cli" | |
| tap "romkatv/powerlevel10k" |
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
| # specify a directory to install | |
| cask_args appdir: '/Applications' | |
| # install packages | |
| tap "homebrew/cask" | |
| tap "github/gh" | |
| tap "amazeeio/lagoon-cli" | |
| tap "romkatv/powerlevel10k" | |
| # Essential SDP tools |
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
| find . -name '.htaccess' | grep -v twig |
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
| pagetitle() { | |
| return this.$t('course.overview').toLowerCase().slice(0,1).toUpperCase() + this.$t('course.overview').toLowerCase().slice(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
| Handlebars.registerHelper('pagebuttons', function(totalMatching, currStart, query) { | |
| var q = query, | |
| out = "", | |
| pages = (parseInt(totalMatching / 10)) + 1, | |
| currPage = currStart <= 1 ? 1 : (currStart + 9) / 10, | |
| startPage = (currPage - 2) >= 1 ? (currPage === pages ? currPage - 2 : currPage - 1) : 1, | |
| endPage = (currPage + 2) <= pages ? (currPage === 1 ? currPage + 2 : currPage + 1) : pages, | |
| i; | |
| for (i = startPage; i <= endPage; i++) { |
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
| (?:[youtbe.com\/wahd\?])(?:\w+=[\w+,.-]+\&)*(?:v=)?(?<videoid>[a-zA-Z0-9\-\_]{6,60})(?:\&\w+=[\w+,.-]+)*$ |
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
| recordset.each do |entry| | |
| # Some other stuff | |
| # ... | |
| image_field = 'content' # 'description' in rss | |
| unless entry[image_field].nil? | |
| img = entry[image_field].match(/<img.+?src=[\"'](.+?)[\"'].*?>/) | |
| unless img.nil? | |
| item[:image] = raw.merge(img[1]).to_s |
NewerOlder