Skip to content

Instantly share code, notes, and snippets.

View Zemistr's full-sized avatar
🦄

Martin Zeman Zemistr

🦄
View GitHub Profile
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Kontrolní seznam časosběru</title>
<style>
/* Prusa-inspired and modern color variables */
:root {
--prusa-red: #E30613;
@Zemistr
Zemistr / ssh-mysql-tunnel-test.php
Created November 15, 2017 11:57 — forked from petenelson/ssh-mysql-tunnel-test.php
WordPress: MySQL PDO command via SSH tunnel
<?php
/**
* Plugin Name: SSH Remote Test
*/
add_action( 'admin_init', 'ssh_remote_test', 1 );
function ssh_remote_test() {
@Zemistr
Zemistr / config.yml
Created September 29, 2016 13:58 — forked from K-Phoen/config.yml
Storing Symfony2 sessions in memcached
imports:
# ....
- { resource: services/session.yml }
framework:
# ....
session:
handler_id: session.handler.memcached
<?php
$changeParameters = [
"vyrobce" => "Canon",
"garance_tisku" => "5000 stran",
"kompatibilita" => "Canon XYZ"
];
$input = "Vysoce kvalitní toner určený pro laserové tiskárny[ [vyrobce]][ s garancí tisku [garance_tisku] při 5% pokrytí][ a kompatibilní s [kompatibilita]].";
/*
-> typ zapisu vztupního textu:
@Zemistr
Zemistr / is_serialized.php
Last active September 13, 2015 13:55 — forked from bueltge/is_serialized.php
PHP is_serialized() function.
<?php
/**
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
/**