Skip to content

Instantly share code, notes, and snippets.

View sergey-fritzler's full-sized avatar

Sergey Fritzler sergey-fritzler

  • Düsseldorf
  • 21:04 (UTC +02:00)
View GitHub Profile
@sergey-fritzler
sergey-fritzler / clear_cache.sh
Created August 31, 2016 09:24
Clear Gambio shop cache
#!/bin/bash
dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
echo "Clear cache"
rm -rf $dir/cache/*
rm -rf $dir/templates_c/*
@sergey-fritzler
sergey-fritzler / in_range.php
Last active August 31, 2016 09:28
Checks if a value exists in an range
<?php
/**
* Checks if a value exists in an range
*
* @param int $value
* @param int $min
* @param int $max
* @return bool
*/