Skip to content

Instantly share code, notes, and snippets.

@sahal
sahal / imagemagick-thumbs-index.sh
Created August 8, 2024 12:29 — forked from stekan/imagemagick-thumbs-index.sh
Generate Thumbnail-Index with ImageMagick
#!/bin/bash
file_extension="${1:-png}"
> index.html
[ -d thumbs ] || mkdir thumbs
echo "Generating Thumbnails..."
for f in *.${file_extension}; do
magick convert "${f%.*}.${file_extension}" -strip -thumbnail 200x100 "thumbs/${f%.*}.png" &> /dev/null
@sahal
sahal / jenkins-dump-credentials.groovy
Last active August 13, 2020 19:18 — forked from jbouse/jenkins-dump-credentials.groovy
Dump jenkins credentials - use in script console
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.plugins.credentials.impl.*
import org.jenkinsci.plugins.plaincredentials.impl.*
domain = Domain.global()
store = SystemCredentialsProvider.getInstance().getStore()
for (credential in store.getCredentials(domain)) {
@sahal
sahal / hook.rb
Created June 29, 2016 13:07 — forked from tache/hook.rb
Hook for letsencrypt.sh to do DNS challenges
#!/usr/bin/env ruby
require 'aws-sdk'
require 'pry'
require 'awesome_print'
require 'domainatrix'
# ------------------------------------------------------------------------------
# Credentials
# ------------------------------------------------------------------------------