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
| exports.on_backend_call = function(ctx) { | |
| const name = (ctx.request.query.name && ctx.request.query.name[0]) | |
| ? ctx.request.query.name[0].toLowerCase() | |
| : 'pikachu'; | |
| let pokemon = 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
| gh repo list --fork --json nameWithOwner -L 100 -q '.[].nameWithOwner' | xargs -I {} gh repo delete {} --yes |
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
| # Clever Tools Installer for Windows | |
| # This script downloads and installs Clever Tools in a configurable directory. | |
| # Usage: .\clever-install.ps1 [install_dir] | |
| param( | |
| [string]$InstallDir = "$env:USERPROFILE\.clever" | |
| ) | |
| Write-Host "Clever Tools Installer" -ForegroundColor Green | |
| Write-Host "Target install directory: $InstallDir" |
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 bash | |
| # Clever Tools Installer for Linux & macOS | |
| # This script downloads and installs Clever Tools in a configurable directory. | |
| # Usage: ./clever-install.sh [install_dir] | |
| set -e | |
| # Colors for UX | |
| CYAN='\033[0;36m' | |
| 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
| #! /bin/bash | |
| pushd ~ | |
| find Documents -type f -name Cargo.toml -exec cargo clean --manifest-path {} \; 2>&1 | grep Removed | |
| popd |
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 bash | |
| # | |
| # Configuration | |
| # | |
| # Colors | |
| readonly CYAN='\033[36m' | |
| readonly GREEN='\033[32m' | |
| readonly GRAY='\033[90m' |
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 | |
| # Install Volta | |
| curl https://get.volta.sh | bash | |
| ${HOME}/.volta/bin/volta setup | |
| exec ${SHELL} | |
| # Install Clever Tools and other package managers | |
| npm i -g clever-tools bun pnpm yarn |
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
| # frozen_string_literal: true | |
| require 'socket' | |
| def format_response(response) | |
| response | |
| .gsub(/^[+*:]/, '') | |
| .gsub(/, \+/, ', ') | |
| end |
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 | |
| key="${INDEXNOW_KEY}" | |
| domain=your.domain.com | |
| url_array=() | |
| url_list_json=$(printf ', "%s"' "${url_array[@]}") | |
| url_list_json="[ ${url_list_json:2} ]" |
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 | |
| # For this script you'll need gcc, gzip make, qemu, tar, wget | |
| # Learn more on my blog: https://labs.davlgd.fr/posts/2024-05-whats-a-minimal-linux/ | |
| # Get and compile the kernel | |
| wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.8.8.tar.xz | |
| tar xf linux-6.8.8.tar.xz | |
| cd linux-6.8.8/ |
NewerOlder