Skip to content

Instantly share code, notes, and snippets.

@Wikinaut
Wikinaut / make-polaroid.sh
Last active June 1, 2018 19:05
Make a polaroid-style photo montage (make-polaroid)
#!/bin/bash
d=$(pwd)
lastDirectoryComponent=${d##*/}
title=$lastDirectoryComponent
if [ -n "$1" ]; then
title="$1 ($lastDirectoryComponent)"
@Wikinaut
Wikinaut / pagewatcher.sh
Last active June 7, 2018 13:56
pagewatcher.sh - MySimplePageWatcher - Watch a webpage for changes
#!/bin/bash
# Page watcher Cronscript
# initial 201804xx
if [ $# -lt 1 ] ; then
echo "pagewatcher watches an url and sends an e-mail in case of changes."
echo
echo "usage: pagewatcher.sh url [additional-mail-recipients] | clean"
echo
@Wikinaut
Wikinaut / make-nxm.bat
Created March 20, 2016 19:48
Make n x m: create an n x m stripe of an image (Windows version)
@ECHO OFF
REM Windows version
REM call make-nxm <image-filename> rows columms [postfilter-command]
IF (%1)==() GOTO HELP
IF (%2)==() GOTO HELP
IF (%3)==() GOTO HELP
SET POSTFILTER=%~4 %~5 %~6 %~7 %~8 %~9
IF (%4)==() SET POSTFILTER=-gaussian-blur 0.5x0.5
@Wikinaut
Wikinaut / make-nxm.sh
Last active June 1, 2018 18:29
Make n x m: create an n x m stripe of an image (Linux version)
#! /bin/bash
# LINUX convert \( aa.png aa.png aa.png aa.png aa.png +append \) \( aa.png aa.png aa.png aa.png aa.png +append \) -append -gaussian-blur 0.5x0.5 x.png
# call make-nxm <image-filename> rows columms [postfilter-command]
if [ $# -lt 3 ] ; then
echo
echo "Create a composed n x m image from a single image"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javasc
@Wikinaut
Wikinaut / build.gradle
Last active January 23, 2025 15:25
Generate fully-flavoured apk filename with app_name, versionName, versionCode, git hash
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.hugo'
apply from: '../config/quality.gradle'
import com.android.ddmlib.DdmPreferences
import java.util.concurrent.TimeUnit
// Copy the signing.properties.sample file to ~/.sign/signing.properties and adjust the values.