Skip to content

Instantly share code, notes, and snippets.

View xnekv03's full-sized avatar
sometimes you eat the bar, and sometimes, well, the bar eats you

VojtaN xnekv03

sometimes you eat the bar, and sometimes, well, the bar eats you
View GitHub Profile
xnekv03 / sitemap.xml
Last active May 26, 2024 11:00
Sitemap for
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="" xmlns:xhtml="" xmlns:image="" xmlns:video="" xmlns:news="">
xnekv03 / MailtrapService.php
Last active September 5, 2023 06:23
implementace posílání šablon přes mailtrap v Laravelu
public function sendTemplate(string $templateUuid, string $toEmail, array $variables = []): bool
if (!filter_var($toEmail, FILTER_VALIDATE_EMAIL)) {
Log::error('invalid e-mail address provided ' . $toEmail);
return false;
$data = [
"from" => [
export COUNTER=0
mkdir -p filesrenamed
for f in CREDIT_RATING_PREV_*; do result=$(mv $f ${f/${f:0:19}/CREDITRATING_T3_}) ; ((COUNTER++)); done 2> /dev/null
# exit status
# v rámci toho for cyklu bych dal podmínku - napíšu to zvlášt ale ty to musíš dát do for
body {
margin: 0;
padding: 0;
background-color: lightblue;
height: 100vh;
#login .container #login-row #login-column #login-box {
margin-top: 120px;
max-width: 600px;
"url": "",
"name": "Nameday API",
"description": "Nameday API"
"url": "",
"name": "Appfactory",
"description": "Appfactory"
xnekv03 / verifyIC.php
Last active December 29, 2020 20:39 — forked from dg/verifyIC.php
Ověření rodného čísla a IČ
function verifyIC($ic)
// be liberal in what you receive
$ic = preg_replace('#\s+#', '', $ic);
// má požadovaný tvar?
if (!preg_match('#^\d{8}$#', $ic)) {
return FALSE;