Skip to content

Instantly share code, notes, and snippets.

View farukgaric's full-sized avatar
🏀
Focusing

Faruk Garić farukgaric

🏀
Focusing
View GitHub Profile
@farukgaric
farukgaric / event_cancelled.html
Created March 25, 2020 18:34
Structured data: Cancelled event
<html>
<head>
<title>The Adventures of Kira and Morrison</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "The Adventures of Kira and Morrison",
"startDate": "2025-07-21T19:00",
"endDate": "2025-07-21T23:00",
@farukgaric
farukgaric / event_scheduled.html
Created March 25, 2020 18:32
Structured data: Just normal scheduled event
<html>
<head>
<title>The Adventures of Kira and Morrison</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "The Adventures of Kira and Morrison",
"startDate": "2025-07-21T19:00",
"endDate": "2025-07-21T23:00",
@farukgaric
farukgaric / index.php
Created November 4, 2019 07:45
Simple php jwt response
<?php
if(!isset($_POST['username']) && !isset($_POST['password']) && empty($_POST['username'] && empty($_POST['password']))){
header("HTTP/1.1 401 Unauthorized");
exit;
}
if($_POST['username'] == 'admin' && $_POST['password'] == "admin123"){
// clear the old headers
header_remove();