Skip to content

Instantly share code, notes, and snippets.

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

VojtaN xnekv03

:shipit:
sometimes you eat the bar, and sometimes, well, the bar eats you
View GitHub Profile
@xnekv03
xnekv03 / sitemap.xml
Last active May 26, 2024 11:00
Sitemap for Podvodnabazaru.cz
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
<url>
<loc>https://podvodnabazaru.cz/database/list</loc>
<lastmod>2024-05-25T00:00:00+02:00</lastmod>
<changefreq>yearly</changefreq>
<priority>0.1</priority>
</url>
<url>
<loc>https://podvodnabazaru.cz/create</loc>
@xnekv03
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" => [
#!/bin/sh
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 https://pubs.opengroup.org/onlinepubs/7908799/xcu/mv.html
# 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": "https://api.abalin.net",
"name": "Nameday API",
"description": "Nameday API"
},
{
"url": "https://appfactory.cz",
"name": "Appfactory",
"description": "Appfactory"
@xnekv03
xnekv03 / verifyIC.php
Last active December 29, 2020 20:39 — forked from dg/verifyIC.php
Ověření rodného čísla a IČ
<?php
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;