Skip to content

Instantly share code, notes, and snippets.

View hofmannsven's full-sized avatar

Sven hofmannsven

View GitHub Profile
hofmannsven /
Created April 2, 2020 18:16 — forked from cvan/
get ttf, woff, woff2 from Google Fonts


curl ''


curl '' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'User-Agent: AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116'


hofmannsven /
Last active November 2, 2022 14:56 — forked from gthln/gist:8401080
Install PHP Composer on Managed Hosting at Domainfactory.

Install Composer on Managed Hosting at Domainfactory

Step 1:

Log in to your Managed Hosting Server via SSH. Create your .bashrc:

touch .bashrc
hofmannsven /
Last active February 6, 2023 03:18 — forked from sergejmueller/index.html
Nginx proxy configuration for Google Analytics

Google Analytics Nginx Proxy

Google PageSpeed Insights flags browser caching of Google Analytics:

Leverage browser caching

Set up a proxy in your Nginx configuration file to address this issue.


// add ie conditional html5 shim to header
function _s_add_ie_html5_shim () {
echo '<!--[if lt IE 9]>';
echo '<script src="' . get_template_directory_uri() . '/js/html5.js"></script>';
echo '<![endif]-->';
add_action('wp_head', '_s_add_ie_html5_shim');
Plugin Name: R Debug
Description: Set of dump helpers for debug.
Author: Andrey "Rarst" Savchenko
Author URI:
License: MIT