Skip to content

Instantly share code, notes, and snippets.

@karate
karate / search_features.sh
Last active August 17, 2017 07:32
Drupal feature finder
#!/usr/bin/bash
#
# Find which feature module tracks a certain Content Type or View
function usage {
echo "
Find which feature module tracks a certain content type or view
Usage:
./search_features.sh [-c] [-v] [-h] query
#!/bin/bash
#
# Run from the drupal root folder
# Usage: ./copy_from_static.sh [cc] [<static directory>]
# [cc] If the first argument is 'cc', drupal cache will be cleared after update
# [static directory] The directory to update and copy content from. Default: ../static
#
# Examples:
# ./copy_from_static.sh
# Updates ../static and copies files to website
@karate
karate / docker-logs.sh
Created October 3, 2025 10:18
docker logs with fzf
#/usr/bin/env bash
# Check if fzf is installed
if ! command -v fzf >/dev/null 2>&1
then
echo "fzf could not be found"
exit 1
fi
container=$(docker ps --format '{{.Names}}' | fzf)