Skip to content

Instantly share code, notes, and snippets.

View dmtw's full-sized avatar

dmtw dmtw

  • Munich, Germany
View GitHub Profile
@plentz
plentz / nginx.conf
Last active February 27, 2025 14:27
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@joladev
joladev / nsfw.js
Created October 15, 2013 10:08
Example implementation of an AngularJS state service
angular.module('app.services')
.factory('Nsfw', function ($rootScope) {
'use strict';
var _nsfw = false;
var broadcastNsfw = function (nsfw) {
$rootScope.$broadcast('Nsfw.Update', nsfw);
};
var toggleNsfw = function () {