Skip to content

Instantly share code, notes, and snippets.

# Defaults for ps-watcher initscript
# sourced by /etc/init.d/ps-watcher
# installed at /etc/default/ps-watcher by the maintainer scripts
# prevent startup without configuration file
# set the below varible to 1 in order to allow ps-watcher to start
startup=1
# Specify your configfile here
CONFIG="/etc/ps-watcher.conf"
@jgorinjac
jgorinjac / functions.php
Created October 31, 2016 22:44 — forked from vovafeldman/functions.php
Freemius - WordPress Head Cleanup
<?php
// Disable emoji.
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
// Cleanup RPC.
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wlwmanifest_link' );
// Cleanup oembed.
@jgorinjac
jgorinjac / .gitignore
Created October 20, 2016 01:22 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@jgorinjac
jgorinjac / stock-content.md
Created September 5, 2016 02:29 — forked from dypsilon/stock-content.md
Stock Content
@jgorinjac
jgorinjac / frontendDevlopmentBookmarks.md
Created September 5, 2016 01:34 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
(function() {
var CSSCriticalPath = function(w, d, opts) {
var opt = opts || {};
var css = {};
var pushCSS = function(r) {
if(!!css[r.selectorText] === false) css[r.selectorText] = {};
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/);
for(var i = 0; i < styles.length; i++) {
if(!!styles[i] === false) continue;
var pair = styles[i].split(": ");