Skip to content

Instantly share code, notes, and snippets.

View nyroDev's full-sized avatar

Nyro nyroDev

View GitHub Profile
@nyroDev
nyroDev / proc
Created September 4, 2019 18:47
Apparmor missing tunables/proc on debian 10
# ------------------------------------------------------------------
#
# Copyright (C) 2006 Novell/SUSE
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License published by the Free Software Foundation.
#
# ------------------------------------------------------------------
@nyroDev
nyroDev / sw.js
Last active February 15, 2020 19:43
Service Worker with centralized listeners
import SWHandler from './sw/SWHandler.mjs';
import AuthHandler from './sw/Handler/AuthHandler.mjs';
import DemoHandler from './sw/Handler/DemoHandler.mjs';
import CacheHandler from './sw/Handler/CacheHandler.mjs';
const swHandler = new SWHandler(self);
swHandler.addHandler(new AuthHandler(), 'auth');
swHandler.addHandler(new DemoHandler());
@nyroDev
nyroDev / sites-availables_elasticsearch.conf
Last active August 29, 2015 14:20
ElasticSearch protected behind nginx, different protection for index (or _plugin)
#/etc/nginx/sites-availables/elasticsearch.conf
server {
# We're using the port 9292 to access elasticsearch
listen 9292;
listen [::]:9292;
server_name example.com;
expires off;