Skip to content

Instantly share code, notes, and snippets.

View shmatt05's full-sized avatar

mk shmatt05

  • Soomla
  • Tel Aviv, Israel
View GitHub Profile
<html>
<head>
<meta charset="UTF-8">
<?php
$debug=False;
set_time_limit(0);
$actionURL="/d3stryr-3stripes-dev.php";
?>
<title>d3stryr 3stripes</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
@shmatt05
shmatt05 / d3stryr-3stripes-atc-cs.php
Created October 15, 2016 22:01
Helper script for d3stryr-3stripes.php
<?php
set_time_limit(0);
$marketsList=[];
$marketsList['AT']='de_AT';
$marketsList['AU']='en_AU';
$marketsList['BE']='fr_BE';
$marketsList['BR']='pt_BR';
$marketsList['CA']='en_CA';
$marketsList['CL']='es_CL';
@shmatt05
shmatt05 / d3stryr-3stripes.php
Created October 15, 2016 22:01
All Day I Dream About Sleeping
<html>
<head>
<meta charset="UTF-8">
<?php $debug=False; set_time_limit(0); ?>
<title>d3stryr 3stripes</title>
<script>
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+d.toUTCString();
@shmatt05
shmatt05 / delete redis keys by pattern
Created April 2, 2015 07:44
Unix command for deleting all Redis keys that match a pattern (not for production)
# This is just for testing purposes
# Never use KEYS on production environments
redis-cli KEYS pattern | xargs redis-cli DEL