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
remove mod4 = Super_L
add control = Super_L
remove control = Control_L
add mod4 = Control_L
{#
Source: http://dev.dbl-a.com/symfony-2-0/symfony2-and-twig-pagination/
Updated by: Simon Schick <simonsimcity@gmail.com>
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"
@irmantas
irmantas / validators.lt.yml
Created February 16, 2012 19:50
Symfony2 FOSUserBundle validators LT vertimas
fos_user:
username:
already_used: Varotojo vardas užimtas
blank: Įveskite varotojo vardą
short: Varotojo vardas per trumpas
long: Vartotojo vardas per ilgas
email:
already_used: Vartotojas tokiu el. pašto adresu jau registruotas
blank: Įveskite el. pašto adresą
short: El. pašto adresas per trumpas
@irmantas
irmantas / FOSUserBundle.lt.yml
Created February 16, 2012 19:45
Symfony2 FOSUserBundle LT vertimas
# Group
group:
edit:
submit: Atnaujinti grupę
show:
name: Grupės pavadinimas
new:
submit: Sukurti grupę
flash:
updated: Grupė buvo atnaujinta