Skip to content

Instantly share code, notes, and snippets.

View indysigner's full-sized avatar

Markus Seyfferth indysigner

View GitHub Profile
@markjaquith
markjaquith / nginx.conf
Last active December 25, 2022 15:55
My WordPress Nginx setup
upstream phpfpm {
server unix:/var/run/php5-fpm.sock;
}
upstream hhvm {
server unix:/var/run/hhvm/hhvm.sock;
}
# SSL
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
@bjornjohansen
bjornjohansen / sitemap-crawler.php
Last active August 14, 2023 18:19
Basic sitemap crawler to warm up a full page cache
#!/usr/bin/php
<?php
/**
* @license http://www.wtfpl.net/txt/copying/ WTFPL
*/
date_default_timezone_set( 'UTC' );
$sitemaps = array(
@DioVayne
DioVayne / randomize-content.js
Last active February 18, 2016 13:28
Randomize content and frustrate your design!
// ==UserScript==
// @name Randomize content
// @namespace https://www.blokblok.nl/
// @version 0.4
// @description Frustrate your design!
// @author Dio Vayne
// @match *://*/*
// @grant none
// ==/UserScript==
@Banhawy
Banhawy / getStatusCode.js
Created February 19, 2021 00:08
A Google Sheets app script that takes a url and returns the resulting status code from requesting that url
function getStatusCode(url) {
var url_trimmed = url.trim();
// Check if script cache has a cached status code for the given url
var cache = CacheService.getScriptCache();
var result = cache.get(url_trimmed);
// If value is not in cache/or cache is expired fetch a new request to the url
if (!result) {
var options = {