Skip to content

Instantly share code, notes, and snippets.

Avatar
🏀
Focusing

Faruk Garić farukgaric

🏀
Focusing
View GitHub Profile
@farukgaric
farukgaric / event_cancelled.html
Created Mar 25, 2020
Structured data: Cancelled event
View event_cancelled.html
<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 Mar 25, 2020
Structured data: Just normal scheduled event
View event_scheduled.html
<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 Nov 4, 2019
Simple php jwt response
View index.php
<?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();