Skip to content

Instantly share code, notes, and snippets.

@irmantas
irmantas / script-template.sh
Created December 15, 2020 13:11 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
trap cleanup SIGINT SIGTERM ERR EXIT
usage() {
cat <<EOF
{#
Source: http://dev.dbl-a.com/symfony-2-0/symfony2-and-twig-pagination/
Updated by: Simon Schick <[email protected]>
Parameters:
* currentFilters (array) : associative array that contains the current route-arguments
* currentPage (int) : the current page you are in
* paginationPath (string) : the route name to use for links
* showAlwaysFirstAndLast (bool) : Always show first and last link (just disabled)
* lastPage (int) : represents the total number of existing pages
@irmantas
irmantas / gist:7671830
Last active December 29, 2015 12:39 — forked from istepanov/gist:3950977
#!/usr/bin/sh
rm -rf "$HOME/Library/Preferences/WebIde80"
rm -rf "$HOME/Library/Application Support/WebIde80"
rm -rf "$HOME/Library/Logs/WebIde80"
rm -rf "$HOME/Library/Caches/WebIde80"